CMUDict¶
- class torchaudio.datasets.CMUDict(root: Union[str, Path], exclude_punctuations: bool = True, *, download: bool = False, url: str = 'http://svn.code.sf.net/p/cmusphinx/code/trunk/cmudict/cmudict-0.7b', url_symbols: str = 'http://svn.code.sf.net/p/cmusphinx/code/trunk/cmudict/cmudict-0.7b.symbols')[源代码]¶
CMU 发音词典 [Weide, 1998] (CMUDict) 数据集。
- 参数
root (str 或 Path) – 数据集所在或下载到的目录路径。
exclude_punctuations (bool, 可选) – 启用时,排除标点符号的发音,例如 !EXCLAMATION-POINT 和 #HASH-MARK。
download (bool, 可选) – 如果在 root 路径找不到数据集,是否下载它。(默认:
False
)。url (str, 可选) – 下载词典的 URL。(默认:
"http://svn.code.sf.net/p/cmusphinx/code/trunk/cmudict/cmudict-0.7b"
)url_symbols (str, 可选) – 下载符号列表的 URL。(默认:
"http://svn.code.sf.net/p/cmusphinx/code/trunk/cmudict/cmudict-0.7b.symbols"
)