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')[source]¶
卡耐基梅隆發音詞典 [Weide, 1998] (CMUDict) 資料集。
- 引數:
root (str or Path) – 資料集所在或下載到的目錄路徑。
exclude_punctuations (bool, optional) – 啟用時,排除標點的發音,例如 !EXCLAMATION-POINT 和 #HASH-MARK。
download (bool, optional) – 如果在 root 路徑找不到資料集時是否下載。(預設值:
False)。url (str, optional) – 下載詞典的 URL。(預設值:
"http://svn.code.sf.net/p/cmusphinx/code/trunk/cmudict/cmudict-0.7b")url_symbols (str, optional) – 下載符號列表的 URL。(預設值:
"http://svn.code.sf.net/p/cmusphinx/code/trunk/cmudict/cmudict-0.7b.symbols")