Resource cmudict not found. Please use the NLTK Downloader to obtain the resource:

Traceback (most recent call last): File
“/home/oxwod/anaconda3/envs/python35/lib/python3.5/site-packages/nltk/corpus/util.py”,
line 86, in __load
root = nltk.data.find(‘{}/{}’.format(self.subdir, zip_name)) File
“/home/oxwod/anaconda3/envs/python35/lib/python3.5/site-packages/nltk/data.py”,
line 701, in find
raise LookupError(resource_not_found) LookupError:


 Resource cmudict not found.
 Please use the NLTK Downloader to obtain the resource:

  >>> import nltk
  >>> nltk.download('cmudict')

I encountered the above problem when using DeepVoice3_pytorch.
In fact, some things are not downloaded.
Enter the python console and enter

import nltk
nltk.download()

Then click download in the pop-up box and
the portal will be ok.
Insert image description here

Guess you like

Origin blog.csdn.net/qq_51116518/article/details/135211687