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

test_scores.sh « scores « scorer « tests - github.com/marian-nmt/marian-regression-tests.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 540e102983142a64b5edbb0701883506b6cc94a5 (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/build/marian-scorer -c $MRT_MODELS/wmt16_systems/marian.en-de.scorer.yml \
  -t $(pwd)/scores.src.in $(pwd)/scores.trg.in > scores.out

# Compare scores
$MRT_TOOLS/diff-nums.py scores.out scores.expected -p 0.0003 -o scores.diff

# Exit with success code
exit 0