diff options
Diffstat (limited to 'tests/scorer/scores/test_scores_normalized.sh')
-rw-r--r-- | tests/scorer/scores/test_scores_normalized.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/scorer/scores/test_scores_normalized.sh b/tests/scorer/scores/test_scores_normalized.sh new file mode 100644 index 0000000..43788fb --- /dev/null +++ b/tests/scorer/scores/test_scores_normalized.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 \ + -t $(pwd)/scores.src.in $(pwd)/scores.trg.in --normalize > nrm_scores.out + +# Compare scores +$MRT_TOOLS/diff-nums.py nrm_scores.out nrm_scores.expected -p 0.0003 -o nrm_scores.diff + +# Exit with success code +exit 0 |