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 June 22, 2024, 7:16 p.m.