You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Like this example, the models generate word vectors that could calculate word meaning by arithmetic operations for other vectors.
Features
The following models to capture the word vectors are supported in wego:
Word2Vec: Distributed Representations of Words and Phrases and their Compositionality [pdf]
GloVe: Global Vectors for Word Representation [pdf]
LexVec: Matrix Factorization using Window Sampling and Negative Sampling for Improved Word Representations [pdf]
Also, wego provides nearest neighbor search tools that calculate the distances between word vectors and find the nearest words for the target word. "near" for word vectors means "similar" for words.
Please see the Usage section if you want to know how to use these for more details.
Usage:
wego [flags]
wego [command]
Available Commands:
console Console to investigate word vectors
glove GloVe: Global Vectors for Word Representation
help Help about any command
lexvec Lexvec: Matrix Factorization using Window Sampling and Negative Sampling for Improved Word Representations
query Query similar words
word2vec Word2Vec: Continuous Bag-of-Words and Skip-gram model
word2vec, glove and lexvec executes the workflow to generate word vectors:
Build a dictionary for vocabularies and count word frequencies by scanning a given corpus.
Start training. The execution time depends on the size of the corpus, the hyperparameters (flags), and so on.
Save the words and their vectors as a text file.
query and console are the commands which are related to nearest neighbor searching for the trained word vectors.
query outputs similar words against a given word using sing word vectors which are generated by the above models.
wego does not reproduce word vectors between each trial because it adopts HogWild! algorithm which updates the parameters (in this case word vector) async.
console is for REPL mode to calculate the basic arithmetic operations (+ and -) for word vectors.
Go SDK
It can define the hyper parameters for models by functional options.