typo fixes

This commit is contained in:
Fangjun Kuang 2023-06-05 15:44:25 +08:00
parent e7095777ca
commit 929c61747e
3 changed files with 6 additions and 4 deletions

View File

@ -64,7 +64,9 @@ def get_args():
"--perturb-speed",
type=str2bool,
default=False,
help="""Perturb speed with factor 0.9 and 1.1 on train subset.""",
help="""True to enable speed perturb with factors 0.9 and 1.1 on
the train subset. False (by default) to disable speed perturb.
""",
)
return parser.parse_args()

View File

@ -30,7 +30,7 @@ def main():
for w in words:
word_set.add(w)
# Note: reserved* should be keep in sync with ./local/prepare_lang_bpe.py
# Note: reserved* should be kept in sync with ./local/prepare_lang_bpe.py
reserved1 = ["<eps>", "!SIL", "<SPOKEN_NOISE>", "<UNK>"]
reserved2 = ["#0", "<s>", "</s>"]

View File

@ -89,14 +89,14 @@ fi
if [ $stage -le 2 ] && [ $stop_stage -ge 2 ]; then
log "Stage 2: Prepare must-c $version manifest for target language $tgt_lang"
mkdir -p data/manifests/$version
if [ ! -e data/manifests/$version/.done ]; then
if [ ! -e data/manifests/$version/.${tgt_lang}.manifests.done ]; then
lhotse prepare must-c \
-j $nj \
--tgt-lang $tgt_lang \
$dl_dir/must-c/$version/ \
data/manifests/$version/
touch data/manifests/$version/.done
touch data/manifests/$version/.${tgt_lang}.manifests.done
fi
fi