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
per-file-ignores =
# line too long
egs/librispeech/ASR/conformer_ctc/conformer.py: E501,
egs/librispeech/ASR/*/conformer.py: E501,
exclude =
.git,
**/data/**
**/data/**,
icefall/shared/make_kn_lm.py

View File

@ -203,7 +203,8 @@ def get_params() -> AttributeDict:
"warm_step": 80000,
"use_pruned_intersect": False,
"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,
"use_pruned_intersect": False,
"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 sys
from pathlib import Path
from typing import List
import k2
import sentencepiece as spm
from icefall.lexicon import UniqLexicon