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

Commit

Permalink
fixed minor bug in get_ende_bleu.sh (#685)
Browse files Browse the repository at this point in the history
  • Loading branch information
duyvuleo authored and rsepassi committed Apr 5, 2018
1 parent a47631f commit 7d1c9ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensor2tensor/utils/get_ende_bleu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ perl $mosesdecoder/scripts/tokenizer/tokenizer.perl -l de < $decodes_file > $dec
# 'Also, for historical reasons, we split compound words, e.g.,
# "rich-text format" --> rich ##AT##-##AT## text format."'
perl -ple 's{(\S)-(\S)}{$1 ##AT##-##AT## $2}g' < $tok_gold_targets > $tok_gold_targets.atat
perl -ple 's{(\S)-(\S)}{$1 ##AT##-##AT## $2}g' < $decodes_file.tok > $decodes_file.atat
perl -ple 's{(\S)-(\S)}{$1 ##AT##-##AT## $2}g' < $decodes_file.tok > $decodes_file.tok.atat

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

0 comments on commit 7d1c9ea

Please sign in to comment.