Skip to content

Commit aa17817

Browse files
Fix variable name (#4815)
Fix "glossaries_opt" variable name at line number 39. It's misspelled due to which words in the glossaries weren't reserved while creating BPE.
1 parent be22248 commit aa17817

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

egs/wsj/s5/utils/subword/prepare_subword_text.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ grep -q $separator $word_text && echo "$0: Error, word text file contains separa
3636
glossaries_opt=
3737
[ -z $glossaires ] && glossaries_opt="--glossaries $glossaries"
3838
cut -d ' ' -f2- $word_text | \
39-
utils/lang/bpe/apply_bpe.py -c $pair_code --separator $separator $glossaires_opt > ${word_text}.sub
39+
utils/lang/bpe/apply_bpe.py -c $pair_code --separator $separator $glossaries_opt > ${word_text}.sub
4040
if [ $word_text == $subword_text ]; then
4141
mv $word_text ${word_text}.old
4242
cut -d ' ' -f1 ${word_text}.old | paste -d ' ' - ${word_text}.sub > $subword_text

0 commit comments

Comments
 (0)