Description
Word Embeddings lookup annotator that maps tokens to vectors.
How to use
model = WordEmbeddingsModel.pretrained("embeddings_scielo_150d","es","clinical/models")\
.setInputCols(["document","token"])\
.setOutputCol("word_embeddings")
val model = WordEmbeddingsModel.pretrained("embeddings_scielo_150d","es","clinical/models")
.setInputCols("document","token")
.setOutputCol("word_embeddings")
import nlu
nlu.load("es.embed.scielo.150d").predict("""Put your text here.""")
Results
Word2Vec feature vectors based on embeddings_scielo_150d
.
Model Information
Name: | embeddings_scielo_150d |
Type: | WordEmbeddingsModel |
Compatibility: | Spark NLP 2.5.0+ |
License: | Licensed |
Edition: | Official |
Input labels: | [document, token] |
Output labels: | [word_embeddings] |
Language: | es |
Dimension: | 150.0 |
Data Source
Trained on Scielo Articles https://zenodo.org/record/3744326#.XtViinVKh_U