📜  spacy print word in vocab - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:03.981000             🧑  作者: Mango

代码示例1
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)