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

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

# Exit on error
set -e

rm -f novocab_scorer.log

echo "this is a test ." > file.in
echo "das ist ein test ." > file.out

# Test code goes here
$MRT_MARIAN/build/marian-scorer -m $MRT_MODELS/wmt16_systems/en-de/model.npz \
    --type amun --dim-emb 500 --dim-vocabs 85000 85000 \
    -t file.in file.out > novocab_scorer.log 2>&1 || true

test -e novocab_scorer.log
grep -q "Scoring, but vocabularies are not given" novocab_scorer.log

# Exit with success code
exit 0