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

test_scorer_align_batch_1.sh « align « scorer « tests - github.com/marian-nmt/marian-regression-tests.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4d0069ffc7cc8a4950acca62b482a5ff79bc4fc3 (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.scorer.yml \
  -t $(pwd)/text.src.in $(pwd)/text.trg.in --alignment --mini-batch 1 \
  | sed 's/^.* ||| //' > align.b1.out

# Compare scores
diff align.b1.out align.expected > align.b1.diff

# Exit with success code
exit 0