mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-03 06:04:18 +00:00
do a small change for prepare.sh
This commit is contained in:
parent
b68ddb03f4
commit
10ebd9f388
@ -136,8 +136,8 @@ if [ $stage -le 6 ] && [ $stop_stage -ge 6 ]; then
|
|||||||
|
|
||||||
if [ ! -f $lang_dir/transcript_words.txt ]; then
|
if [ ! -f $lang_dir/transcript_words.txt ]; then
|
||||||
log "Generate data for BPE training"
|
log "Generate data for BPE training"
|
||||||
cat data/lang_phone/train.text | cut -d " " -f 2-
|
cat data/lang_phone/train.text |
|
||||||
> $lang_dir/transcript_words.txt
|
cut -d " " -f 2- > $lang_dir/transcript_words.txt
|
||||||
# remove the <unk> for transcript_words.txt
|
# remove the <unk> for transcript_words.txt
|
||||||
sed -i 's/ <unk>//g' $lang_dir/transcript_words.txt
|
sed -i 's/ <unk>//g' $lang_dir/transcript_words.txt
|
||||||
sed -i 's/<unk> //g' $lang_dir/transcript_words.txt
|
sed -i 's/<unk> //g' $lang_dir/transcript_words.txt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user