ft_nearest_neighbors: Get Nearest Neighbors

View source: R/fasttext.R

ft_nearest_neighborsR Documentation

Get Nearest Neighbors

Description

TODO

Usage

ft_nearest_neighbors(model, word, k = 10L)

Arguments

model

an object inheriting from "fasttext".

word

a character string giving the word.

k

an integer giving the number of nearest neighbors to be returned.

Value

.

Examples

## Not run: 
ft_nearest_neighbors(model, "enviroment", k = 6L)

## End(Not run)

fastTextR documentation built on Oct. 31, 2022, 9:06 a.m.