2017-03-02 24 views
2

我是Ubuntu和Python的新手,並且在練習Python的Spacy庫。我正在關注使用nlp模塊的Spacy庫this tutorial。因此,我必須安裝它,但是當我使用下面的命令pip install nlp沒有找到匹配的分佈

pip install nlp 

然後給出了以下結果:

Collecting nlp 
    Could not find a version that satisfies the requirement nlp (from versions:) 
No matching distribution found for nlp 

我搜索,但沒有找到任何解決方案到現在。

+2

NLP = spacy.load( '恩')? –

+0

嘗試更新你的點子? – SashaZd

回答

1

您需要使用這樣的:

import spacy 
nlp = spacy.load('en') 
1

這是你需要安裝的spacy模塊。

pip install spacy 

然後你可以使用它的NLP:

import spacy 
nlp = spacy.load('en') 
doc = nlp(u"Apples and oranges are similar. Boots and hippos aren't.") 
相關問題