Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

spacy print word in vocab

import spacy

# load your spaCy model here
nlp = spacy.load("en_core_web_sm") 

words = set(nlp.vocab.strings) 

for word in words:
  print(word)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #spacy #print #word #vocab
ADD COMMENT
Topic
Name
3+4 =