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

github.com/marian-nmt/marian-regression-tests.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Grundkiewicz <rgrundki@exseed.ed.ac.uk>2018-03-30 17:53:19 +0300
committerRoman Grundkiewicz <rgrundki@exseed.ed.ac.uk>2018-03-30 17:53:19 +0300
commit36f9f0cbcfc6e1ee9e2a665b670e69f0f7d5bb6a (patch)
tree4b8067c932090e3f180125c3022f19222e5c8ae0 /tests/training/weights/test_word_weighting_with_ones.sh
parente33ecc255d68524314d9d52958416d6be69a34f6 (diff)
Fix possibly error-prone vocab.{xx,yy}.yml
Diffstat (limited to 'tests/training/weights/test_word_weighting_with_ones.sh')
-rw-r--r--tests/training/weights/test_word_weighting_with_ones.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/training/weights/test_word_weighting_with_ones.sh b/tests/training/weights/test_word_weighting_with_ones.sh
index 082032e..cfd9b33 100644
--- a/tests/training/weights/test_word_weighting_with_ones.sh
+++ b/tests/training/weights/test_word_weighting_with_ones.sh
@@ -7,6 +7,9 @@ set -e
rm -rf word_noweights* word_ones*
mkdir -p word_noweights word_ones
+test -e vocab.de.yml || $MRT_MARIAN/build/marian-vocab < $MRT_DATA/europarl.de-en/corpus.bpe.de > vocab.de.yml
+test -e vocab.en.yml || $MRT_MARIAN/build/marian-vocab < $MRT_DATA/europarl.de-en/corpus.bpe.en > vocab.en.yml
+
$MRT_MARIAN/build/marian \
--seed 1111 --no-shuffle --dim-emb 128 --dim-rnn 256 -o sgd \
-m word_noweights/model.npz -t $MRT_DATA/europarl.de-en/toy.bpe.{de,en} -v vocab.{de,en}.yml \