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

test_scorer_soft_align.sh « align « scorer « tests - github.com/marian-nmt/marian-regression-tests.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: faf90a515040f2e95bbc3b40dc38b97cae39fa32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

# Exit on error
set -e

# Run scorer
$MRT_MARIAN/build/marian-scorer -c $MRT_MODELS/wmt16_systems/marian.en-de.yml -m $MRT_MODELS/wmt16_systems/en-de/model.npz \
  -t $(pwd)/text.src.in $(pwd)/text.trg.in --alignment soft --mini-batch 16 \
  | sed 's/^.* ||| //' > soft.out

# Compare scores
$MRT_TOOLS/diff-floats.py -s , soft.out soft.expected > soft.diff

# Exit with success code
exit 0