Word Embeddings
Ordinary Word Embeddings.
Constructors
Link copied to clipboard
public WordEmbeddings WordEmbeddings( Path filePath, Integer dimensions, Character delimiter)
Content copied to clipboard
Types
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Vocabulary, word to embedded space
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final List<Pair<String, Float>> nearestNeighbours( NDArray<Float, D1> vector, Set<String> inSet, Set<String> outSet, Integer N)
Content copied to clipboard
Find N closest terms in the vocab to the given vector, using only words from the in-set (if defined) and excluding all words from the out-set (if non-empty). Although you can, it doesn't make much sense to define both in and out sets.
Link copied to clipboard
Link copied to clipboard
public List<NDArray<Float, D1>> traverseVectorsOrNull(List<String> words)
Content copied to clipboard