Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

word embedding python

# installation
$ pip install spacy
$ python -m spacy download en_core_web_leg

# Python minimal script
import spacy 
nlp = spacy.load("en_core_web_lg") # the pretrained model
doc = nlp("Here is my sentence!")
print(doc[0].vector) # print the embedder of the first word (index 0)
 
PREVIOUS NEXT
Tagged: #word #embedding #python
ADD COMMENT
Topic
Name
5+5 =