download_pretrained_files¶
- torchaudio.models.decoder.download_pretrained_files(model: str) PretrainedFiles [原始碼]¶
檢索用於
ctc_decoder()
的預訓練資料檔案。- 參數:
model (str) – 要下載的預訓練語言模型。有效值為:
"librispeech-3-gram"
、"librispeech-4-gram"
和"librispeech"
。- 返回:
具有以下屬性的物件
lm
: 對應於已下載語言模型的路徑,如果模型未與語言模型關聯,則為None
lexicon
: 對應於已下載詞彙檔案的路徑tokens
: 對應於已下載符記檔案的路徑
- 使用
download_pretrained_files
的教學