1

I am getting the following error when trying to import simplify_wsj_tag:

 File "parser-test2.py", line 2, in <module>
    from nltk.tag.simplify import simplify_wsj_tag
ImportError: No module named simplify

The code is very simple:

import nltk
from nltk.tag.simplify import simplify_wsj_tag

I have nltk installed so I'm not sure why this error is coming up.

cs95
  • 379,657
  • 97
  • 704
  • 746
James
  • 509
  • 5
  • 14
  • Open an interpreter, type `nltk.download()`. When the GUI opens up look for simplify and download it. – cs95 Jun 22 '17 at 05:01
  • You might want to check the import basics (like including `__init__.py` in your directories) here: https://stackoverflow.com/questions/7587457/importerror-no-module-named-python?rq=1 – SimpleBeat Jun 22 '17 at 05:02
  • @Coldspeed I was not able to find Simplify or tag in the NLTK Downloader – James Jun 22 '17 at 05:06

1 Answers1

3

It used to be in NLTK 2.0, not in the newer version 3.2.4. See the docs here.

Also, look at this as well - https://stackoverflow.com/a/26980638/7595755.

Shiva
  • 459
  • 4
  • 15