Gensim w2v
W2VEmbedding
Bases: AbstractEmbeddingModel
Class for embedding models using Word2Vec model.
Source code in src/embedding/gensim_w2v.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
|
get_embedding(text)
Returns the embedding of the text.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
text |
str
|
|
required |
Returns:
Type | Description |
---|---|
ndarray
|
|
Source code in src/embedding/gensim_w2v.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
|