Spacy bert
BERTEmbedding
Bases: AbstractEmbeddingModel
Class for embedding models using BERT.
Source code in src/embedding/spacy_bert.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
|
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/spacy_bert.py
16 17 18 19 20 21 22 23 24 |
|