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]¶
CMU 發音字典 [Weide, 1998] (CMUDict) 資料集。
- 參數:
root ( str 或 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"
)