Description Usage Arguments Value
Compute k nearest neighbours from multiple seed words (by iterating over seed words and taking k words with max similarity)
1 | nearest_neighbors(ft_model, words, k = 1000, k_per_word = k)
|
ft_model |
a fastTextR model |
words |
a character vector of words |
k_per_word |
the number of neighbours to get per seed word |
k_total |
the number of neighbours to return |
ordered list of neighbour words with similarities
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.