错误:没有名为numpy.core.multiarray的模块。已安装Maxent tree bank pos标记器型号

错误:没有名为numpy.core.multiarray的模块。已安装Maxent tree bank pos标记器型号,numpy,pos-tagger,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 = nl

这是我的节目:

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
回溯(最近一次呼叫最后一次):
文件“PosTag.py”,第8行,在
txttoken=nltk.pos_标记(标记2)
文件“C:\Python27\lib\site packages\nltk-2.0.4-py2.7.egg\nltk\tag\ \uuuuuu init\uuuuuuu.py”,第99行,在pos\u标记中
标记器=负载(\u位置\u标记器)
加载文件“C:\Python27\lib\site packages\nltk-2.0.4-py2.7.egg\nltk\data.py”,第605行
resource\u val=pickle.load(_open(resource\u url))
ImportError:没有名为numpy.core.multiarray的模块
我只是在python cmd上使用
nltk.download()

这些型号已经安装。但是我还是有错误


NLTK下载模式。已安装Maxent tree bank pos标记器型号。punkt型号已安装

您能否
导入numpy
?此问题已在此处得到回答。。。。你只需要安装numpy