python - NLTK pos_tag ImportError from mtrand import * -


when run code error (below):

import nltk sentence = """at 8 o'clock on thursday morning""" tokens = nltk.word_tokenize(sentence) nltk.pos_tag(tokens) 

the traceback is:

traceback (most recent call last):   file "<pyshell#5>", line 1, in <module>     nltk.pos_tag(tokens)   file "c:\python27\lib\site-packages\nltk\tag\__init__.py", line 99, in pos_tag     tagger = load(_pos_tagger)   file "c:\python27\lib\site-packages\nltk\data.py", line 605, in load     resource_val = pickle.load(_open(resource_url))   file "c:\python27\lib\site-packages\numpy\__init__.py", line 171, in <module>     import random   file "c:\python27\lib\site-packages\numpy\random\__init__.py", line 99, in <module>     mtrand import * importerror: dll load failed: application has failed start because side-by-    side configuration incorrect. please see application event log or use command-line sxstrace.exe tool more detail. 

i'm running python 2.7.4 64-bit w/ idle , have numpy-1.7.1 64-bit installed on windows 7.

what's going on mtrand import? help.


Comments

Popular posts from this blog

Pull out data related to my apps from Android Play Store and iOS App Store -

Change php variable from jquery value using ajax (same page) -

How can I fetch data from a web server in an android application? -