ImportError:No module named Numpy

Joined
Feb 19, 2017
Messages
1
Reaction score
0
Python 3.5.3 (v3.5.3:1880cb95a742, Jan 16 2017, 15:51:26) [MSC v.1900 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> import nltk
>>> sentence="I am a teacher"
>>> tokens = nltk.word_tokenize(sentence)
>>> tokens
['I', 'am', 'a', 'teacher']
>>> tagged = nltk.pos_tag(tokens)
Traceback (most recent call last):
File "<pyshell#4>", line 1, in <module>
tagged = nltk.pos_tag(tokens)
File "C:\Users\Hnin Hnin\AppData\Local\Programs\Python\Python35-32\Lib\site-packages\nltk\tag\__init__.py", line 103, in pos_tag
tagger = load(_POS_TAGGER)
File "C:\Users\Hnin Hnin\AppData\Local\Programs\Python\Python35-32\Lib\site-packages\nltk\data.py", line 786, in load
resource_val = pickle.load(opened_resource)
ImportError: No module named 'numpy'
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top