Learn R Programming

fastTextR (version 2.1.0)

ft_nearest_neighbors: Get Nearest Neighbors

Description

TODO

Usage

ft_nearest_neighbors(model, word, k = 10L)

Value

.

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.

Examples

Run this code
if (FALSE) {
ft_nearest_neighbors(model, "enviroment", k = 6L)
}

Run the code above in your browser using DataLab