We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4fb201 commit fd6aabbCopy full SHA for fd6aabb
egs/wsj/s5/utils/lang/adjust_unk_graph.sh
@@ -35,4 +35,4 @@ cp -r $graphdir_in/{disambig_tid.int,num_pdfs,phones,phones.txt,words.txt} $grap
35
oov_id=`echo $oov_word | utils/sym2int.pl $graphdir_in/words.txt`
36
[ -z $oov_id ] && echo "adjust_unk_graph.sh: the specified oov symbol $oov_word is out of the vocabulary." && exit 1;
37
fstprint $graphdir_in/HCLG.fst | awk -v oov=$oov_id -v unk_scale=$unk_scale '{if($4==oov) $5=$5-log(unk_scale);print $0}' | \
38
- fstcompile > $graphdir_out/HCLG.fst || exit 1;
+ fstcompile | fstconvert --fst_type=const > $graphdir_out/HCLG.fst || exit 1;
0 commit comments