python - Why shows error "import nltk"? -


i trying build web crawler using python , i'v got following error when executed.

import sys import math import re collections import ordereddict, defaultdict import os import nltk //this line shows error import pickle xml.dom import minidom xml.dom import empty_namespace import nltk  //this line shows error nltk.stem.porter import porterstemmer import time`enter code here` 

how overcome problem?

first can check whether nltk have installed or not. otherwise can download here.

nltk download link

in ubuntu, can try followng one:

sudo apt-get install python-nltk 

Comments

Popular posts from this blog

How to provide Authorization & Authentication using Asp.net, C#? -

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

How to use Authorization & Authentication in Asp.net, C#? -