错误:没有名为numpy.core.multiarray的模块。已安装Maxent树库pos-tagger模型

时间:2014-08-08 06:27:26

标签: numpy pos-tagger

这是我的计划:

import nltk
text = "Rabbit is eating"
token2 = nltk.word_tokenize(text)
print token2
txttoken = nltk.pos_tag(token2)
print txttoken

这是我得到的错误:

Traceback (most recent call last):
  File "PosTag.py", line 8, in <module>

   txttoken = nltk.pos_tag(token2)

 File "C:\Python27\lib\site-packages\nltk-2.0.4-py2.7.egg\nltk\tag\__init__.py", line 99, in pos_tag
    tagger = load(_POS_TAGGER)

  File "C:\Python27\lib\site-packages\nltk-2.0.4-py2.7.egg\nltk\data.py", line 605, in load
    resource_val = pickle.load(_open(resource_url))

ImportError: No module named numpy.core.multiarray

我只是在python cmd上查看nltk.download() ..

已安装这些型号。但我仍然得到错误..

NLTK下载器型号。安装了Maxent树库pos-tagger模型。 punkt模型已安装

0 个答案:

没有答案