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

简介: 这篇文章介绍了在使用DeepVoice3_pytorch时遇到的“Resource cmudict not found”错误,以及如何通过NLTK Downloader下载缺失的cmudict资源来解决该问题。

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')

DeepVoice3_pytorch的时候遇到如上问题。
其实是有些东西没有下载
进入python console,输入

import nltk
nltk.download()

然后在弹框中点击download就ok了
传送门
在这里插入图片描述

相关文章
|
5月前
|
自然语言处理 Python
【Python】已解决:Resource punkt not found. Please use the NLTK Downloader to obtain the resource:
【Python】已解决:Resource punkt not found. Please use the NLTK Downloader to obtain the resource:
524 1
Failed to load resource:9090/searchvideolist?mysearch%E8%B0%B7%E6%AD%8C:1
Failed to load resource:9090/searchvideolist?mysearch%E8%B0%B7%E6%AD%8C:1
|
5月前
|
自然语言处理 Python
【Python】已解决:Resource stopwords not found. Please use the NLTK Downloader to obtain the resource:
【Python】已解决:Resource stopwords not found. Please use the NLTK Downloader to obtain the resource:
319 0
|
5月前
|
自然语言处理 Java 开发工具
【Python】已解决Resource averaged_perceptron_tagger not found. Please use the NLTK Downloader to obtain t
【Python】已解决Resource averaged_perceptron_tagger not found. Please use the NLTK Downloader to obtain t
224 0
|
自然语言处理 Python
Resource punkt not found. Please use the NLTK Downloader to obtain the resource错误解决方案
Resource punkt not found. Please use the NLTK Downloader to obtain the resource错误解决方案
988 0
Resource punkt not found. Please use the NLTK Downloader to obtain the resource错误解决方案
|
前端开发 数据库
Failed to load response dataNo data found for resource with given identifier
Failed to load response dataNo data found for resource with given identifier
1688 0
【PicGo+OSS】解决报错The request signature we calculated does not match the signature you provided.Check..
【PicGo+OSS】解决报错The request signature we calculated does not match the signature you provided.Check..
1626 0
【PicGo+OSS】解决报错The request signature we calculated does not match the signature you provided.Check..
|
Linux
Error: automake: Failed to download resource “m4“
Error: automake: Failed to download resource “m4“
258 0