Find synonyms of the vector representation of a word, possibly including any words in the model vocabulary whose vector respresentation is the supplied vector.
Find synonyms of the vector representation of a word, possibly including any words in the model vocabulary whose vector respresentation is the supplied vector.
vector representation of a word
number of synonyms to find
array of (word, cosineSimilarity)
Find synonyms of a word; do not include the word itself in results.
Find synonyms of a word; do not include the word itself in results.
a word
number of synonyms to find
array of (word, cosineSimilarity)
Current version of model save/load format.
Current version of model save/load format.
Returns a map of words to their vector representations.
Returns a map of words to their vector representations.
Save this model to the given path.
Save this model to the given path.
This saves:
The model may be loaded using Loader.load
.
Spark context used to save model data.
Path specifying the directory in which to save this model. If the directory already exists, this method throws an exception.
Transforms a word to its vector representation
Transforms a word to its vector representation
a word
vector representation of word
Word2Vec model