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