diff options
Diffstat (limited to 'tests/scorer/scores/test_word_scores.sh')
-rw-r--r-- | tests/scorer/scores/test_word_scores.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/scorer/scores/test_word_scores.sh b/tests/scorer/scores/test_word_scores.sh new file mode 100644 index 0000000..302f8df --- /dev/null +++ b/tests/scorer/scores/test_word_scores.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +# Exit on error +set -e + +# Run scorer +$MRT_MARIAN/marian-scorer -c $MRT_MODELS/wmt16_systems/marian.en-de.scorer.yml --mini-batch 32 \ + -t $(pwd)/text.in $(pwd)/text.b3.out --word-scores > word_scores.out + +# Compare scores +$MRT_TOOLS/diff-nums.py word_scores.out word_scores.expected -p 0.0003 -o word_scores.diff + +# Exit with success code +exit 0 |