qbiocode.apps.quvine.embedding.word2vec module#
Summary#
Functions:
Train Word2Vec embeddings from a compiled corpus. |
Reference#
- corpus_to_embedding(corpus, nodes, vector_size=64, window=5, sg=1, negative=10, min_count=0, workers=8, epochs=100)[source]#
Train Word2Vec embeddings from a compiled corpus.
corpus: List[List[str]] or List[List[int]] nodes: List[str] or List[int]
- Raises:
QuvineDependencyError – If gensim is not installed. The message names the [quvine] extra and the command that installs it.