Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

spacy access vocabulary

# credit to the Stack Overflow user in the source link
import spacy
nlp = spacy.load("en_core_web_sm") # or some other model, check spaCy docs
vocabulary = list(nlp.vocab.strings)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #spacy #access #vocabulary
ADD COMMENT
Topic
Name
7+8 =