Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small fix to mitigate overflow in Convolution.cc #2992

Merged
merged 4 commits into from
Jan 16, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
minor change to handle cases where <s> is appears in text
  • Loading branch information
Chun-Chieh Chang committed Oct 1, 2018
commit 36c2f527ead957d1637c1aa8b15bc69a1a2bf24c
4 changes: 2 additions & 2 deletions egs/wsj/s5/utils/build_const_arpa_lm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ mkdir -p $new_lang
cp -r $old_lang/* $new_lang

unk=`cat $new_lang/oov.int`
bos=`grep -w "<s>" $new_lang/words.txt | awk '{print $2}'`
eos=`grep "</s>" $new_lang/words.txt | awk '{print $2}'`
bos=`grep "^<s>\s" $new_lang/words.txt | awk '{print $2}'`
eos=`grep "^</s>\s" $new_lang/words.txt | awk '{print $2}'`
if [[ -z $bos || -z $eos ]]; then
echo "$0: <s> and </s> symbols are not in $new_lang/words.txt"
exit 1
Expand Down