Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/marian-regression-tests.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/scorer/scores/test_word_scores_mini_batch_1.sh')
-rw-r--r--tests/scorer/scores/test_word_scores_mini_batch_1.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/scorer/scores/test_word_scores_mini_batch_1.sh b/tests/scorer/scores/test_word_scores_mini_batch_1.sh
new file mode 100644
index 0000000..b9ee330
--- /dev/null
+++ b/tests/scorer/scores/test_word_scores_mini_batch_1.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)/text.in $(pwd)/text.b3.out --word-scores --mini-batch 1 > word_scores_b1.out
+
+# Compare scores
+$MRT_TOOLS/diff-nums.py word_scores_b1.out word_scores.expected -p 0.0003 -o word_scores_b1.diff
+
+# Exit with success code
+exit 0