distance

public final List<Pair<String, Float>> distance(List<String> input, Integer N)

Find the N closest terms in the vocab to the input word(s).

Return

The N closest terms in the vocab to the input word(s) and their associated cosine similarity scores.

Parameters

input

The input word(s).

N

The maximum number of terms to return (default to 40).