Solution:
In your code, simply append a path for nltk before you import nltk.
For example:
sys.path.append("/usr/local/lib/python2.7/site-packages/nltk-2.0b8-py2.7.egg/")
import nltk
The path /usr/local/lib/python2.7/site-packages/nltk-2.0b8-py2.7.egg/ is where the folder "nltk" located.
No comments:
Post a Comment