原文:http://mp.weixin.qq.com/s/sqa-Ca2oXhvcPHJKg9PuVg import spacy nlp = spacy.load("en_core_web_sm") doc = nlp("The big grey dog ate all of the chocalate,but fortunately he wasn't sick!") # 利用空格分开 print(doc.text.split()) # 利用token的.orth
pip3 install -U spacy -i http://pypi.douban.com/simple --trusted-host pypi.douban.com python3 -m spacy download en 在终端里输一下就完事了 # import stanfordnlp # nlp = stanfordnlp.Pipeline() # doc = nlp("Barack Obama was born in Hawaii. He was elected president