mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-09 01:52:41 +00:00
Update prepare.sh (#1422)
fix the bug in line 251: 1、 del the additional blank 2、correct the spell error of "new_vocab_size"
This commit is contained in:
parent
10a234709c
commit
702d4f5914
@ -248,7 +248,7 @@ if [ $stage -le 10 ] && [ $stop_stage -ge 10 ]; then
|
|||||||
| jq '.supervisions[].text' | sed 's/"//;s/\\//g;s/"$//' > data/punc_texts
|
| jq '.supervisions[].text' | sed 's/"//;s/\\//g;s/"$//' > data/punc_texts
|
||||||
fi
|
fi
|
||||||
for vocab_size in ${vocab_sizes[@]}; do
|
for vocab_size in ${vocab_sizes[@]}; do
|
||||||
new_vacab_size = $(($vocab_size + 256))
|
new_vocab_size=$(($vocab_size + 256))
|
||||||
lang_dir=data/lang_punc_bpe_${new_vocab_size}
|
lang_dir=data/lang_punc_bpe_${new_vocab_size}
|
||||||
mkdir -p $lang_dir
|
mkdir -p $lang_dir
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user