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

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

# Exit on error
set -e

# Test code goes here
rm -f soft.nbest.out soft.nbest.raw.out
$MRT_MARIAN/build/marian-decoder -c $MRT_MODELS/wmt16_systems/marian.en-de.yml --mini-batch 5 -b 3 --n-best --alignment soft < text.in > soft.nbest.out
$MRT_TOOLS/diff-nums.py -s , -p 0.0001 soft.nbest.out soft.nbest.expected > soft.nbest.diff

# Exit with success code
exit 0