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

test_scorer_align_nbest.sh « align « scorer « tests - github.com/marian-nmt/marian-regression-tests.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 69b419cf22c78d6f0257fc4339688a21e228757e (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.yml -m $MRT_MODELS/wmt16_systems/en-de/model.npz \
  -t $(pwd)/text.src.in $(pwd)/nbest.trg.in --alignment --mini-batch 16 --n-best > nbest.out

# Compare n-best lists
$MRT_TOOLS/diff-floats.py -p 0.0001 nbest.out nbest.expected > nbest.diff

# Exit with success code
exit 0