nearest_neighbors: Compute k nearest neighbours from multiple seed words (by...

Description Usage Arguments Value

View source: R/dictools.R

Description

Compute k nearest neighbours from multiple seed words (by iterating over seed words and taking k words with max similarity)

Usage

1
nearest_neighbors(ft_model, words, k = 1000, k_per_word = k)

Arguments

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

Value

ordered list of neighbour words with similarities


vanatteveldt/lexpander documentation built on Jan. 21, 2022, 7:18 p.m.