Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

Commit 7d1c9ea

Browse files
duyvuleorsepassi
authored andcommitted
fixed minor bug in get_ende_bleu.sh (#685)
1 parent a47631f commit 7d1c9ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensor2tensor/utils/get_ende_bleu.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ perl $mosesdecoder/scripts/tokenizer/tokenizer.perl -l de < $decodes_file > $dec
1313
# 'Also, for historical reasons, we split compound words, e.g.,
1414
# "rich-text format" --> rich ##AT##-##AT## text format."'
1515
perl -ple 's{(\S)-(\S)}{$1 ##AT##-##AT## $2}g' < $tok_gold_targets > $tok_gold_targets.atat
16-
perl -ple 's{(\S)-(\S)}{$1 ##AT##-##AT## $2}g' < $decodes_file.tok > $decodes_file.atat
16+
perl -ple 's{(\S)-(\S)}{$1 ##AT##-##AT## $2}g' < $decodes_file.tok > $decodes_file.tok.atat
1717

1818
# Get BLEU.
1919
perl $mosesdecoder/scripts/generic/multi-bleu.perl $tok_gold_targets.atat < $decodes_file.tok.atat

0 commit comments

Comments
 (0)