NLTK ImportError:DLL加载失败:%1不是有效的Win32应用程序

时间:2013-12-04 16:29:02

标签: python python-3.x nltk

import nltk
text = nltk.word_tokenize("And now for something completely different")
nltk.pos_tag(text)
print(text)

使用上面的代码,我得到以下错误,显然是在尝试使用pos_tag函数时。  我有Python3 32bit,我从http://nltk.org/nltk3-alpha/安装了NLTK - exe链接。

Traceback (most recent call last):

  File "C:\Python33\code\frenchPluralize.py", line 15, in <module>

    nltk.pos_tag(text)

  File "C:\Python33\lib\site-packages\nltk\tag\__init__.py", line 99, in pos_tag

    tagger = load(_POS_TAGGER)

  File "C:\Python33\lib\site-packages\nltk\data.py", line 773, in load

    resource_val = pickle.load(opened_resource)

  File "C:\Python33\lib\site-packages\numpy\__init__.py", line 137, in <module>

    from . import add_newdocs

  File "C:\Python33\lib\site-packages\numpy\add_newdocs.py", line 9, in <module>

    from numpy.lib import add_newdoc

  File "C:\Python33\lib\site-packages\numpy\lib\__init__.py", line 4, in <module>

    from .type_check import *

  File "C:\Python33\lib\site-packages\numpy\lib\type_check.py", line 8, in <module>

    import numpy.core.numeric as _nx

  File "C:\Python33\lib\site-packages\numpy\core\__init__.py", line 5, in <module>

    from . import multiarray

ImportError: DLL load failed: %1 ni veljaven program Win32.

0 个答案:

没有答案