Skip to content

Commit

Permalink
[scripts] debug_lexicon.sh: Fix bug introduced in kaldi-asr#2763.
Browse files Browse the repository at this point in the history
  • Loading branch information
danpovey committed Oct 6, 2018
1 parent c0e34f8 commit 24485f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion egs/wsj/s5/steps/cleanup/debug_lexicon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ if [ $stage -le 8 ]; then

# filter out those utteraces which only appea in phone_processed.ctm but not in word_processed.ctm
cat $dir/phone_mapped.ctm | awk '{printf("%s-%s %010.0f PHONE %s\n", $1, $2, 1000*($3+(0.5*$4)), $5);}' | \
awk 'NR==FNR{a[$1] = 1; next} {if($1 in a) print $0}' $dir/word_processed.ctm - \
awk 'NR==FNR{a[$1] = 1; next} {if($1 in a) print $0}' $dir/word_processed.ctm - | \
sort > $dir/phone_processed.ctm

# merge-sort both ctm's
Expand Down

0 comments on commit 24485f5

Please sign in to comment.