Fix style issues.

This commit is contained in:
Fangjun Kuang 2021-10-18 14:58:07 +08:00
parent f383666c40
commit 00dac43130
4 changed files with 8 additions and 5 deletions

View File

@ -4,8 +4,9 @@ statistics=true
max-line-length = 80 max-line-length = 80
per-file-ignores = per-file-ignores =
# line too long # line too long
egs/librispeech/ASR/conformer_ctc/conformer.py: E501, egs/librispeech/ASR/*/conformer.py: E501,
exclude = exclude =
.git, .git,
**/data/** **/data/**,
icefall/shared/make_kn_lm.py

View File

@ -203,7 +203,8 @@ def get_params() -> AttributeDict:
"warm_step": 80000, "warm_step": 80000,
"use_pruned_intersect": False, "use_pruned_intersect": False,
"den_scale": 1.0, "den_scale": 1.0,
"use_ali_until": 13000, # use alignments before this number of batches # use alignments before this number of batches
"use_ali_until": 13000,
} }
) )

View File

@ -203,7 +203,8 @@ def get_params() -> AttributeDict:
"warm_step": 80000, "warm_step": 80000,
"use_pruned_intersect": False, "use_pruned_intersect": False,
"den_scale": 1.0, "den_scale": 1.0,
"use_ali_until": 13000, # use alignments before this number of batches # use alignments before this number of batches
"use_ali_until": 13000,
} }
) )

View File

@ -26,8 +26,8 @@ import os
import shutil import shutil
import sys import sys
from pathlib import Path from pathlib import Path
from typing import List
import k2
import sentencepiece as spm import sentencepiece as spm
from icefall.lexicon import UniqLexicon from icefall.lexicon import UniqLexicon