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

test_tsv_decode.sh « input-tsv « interface « tests - github.com/marian-nmt/marian-regression-tests.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e3464b08b1ad5d97ac292fddccac86a55def53d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

#####################################################################
# SUMMARY: Translate a single-source input with --tsv option enabled
# TAGS: multi-source transformer sentencepiece tsv
#####################################################################

# Exit on error
set -e

# Remove old artifacts
rm -f decode.out

# Run Marian
$MRT_MARIAN/marian-decoder -c $MRT_MODELS/rnn-spm/decode.yml -b 6 --tsv -i decode.txt -o decode.out
# Compare outputs
$MRT_TOOLS/diff.sh decode.out decode.expected > decode.diff

# Exit with success code
exit 0