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

test_word_scores_mini_batch_1.sh « scores « scorer « tests - github.com/marian-nmt/marian-regression-tests.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b9ee3301c3d7eec40fbefc3c9c10b8e17016c13c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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