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

github.com/marian-nmt/marian.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xexamples/training/run-me.sh7
-rwxr-xr-xexamples/training/scripts/validate.sh4
2 files changed, 6 insertions, 5 deletions
diff --git a/examples/training/run-me.sh b/examples/training/run-me.sh
index 9665a914..b64f4b9e 100755
--- a/examples/training/run-me.sh
+++ b/examples/training/run-me.sh
@@ -56,8 +56,9 @@ fi
if [ ! -e "data/newstest2016.bpe.ro.output.postprocessed.dev" ]
then
- cat data/newstest2016.bpe.ro | ../../build/amun -c model/model.npz.amun.yml -b 12 -n --mini-batch 100 --maxi-batch 1000 \
- | sed 's/\@\@ //g' | mosesdecoder/scripts/recaser/detruecase.perl > data/newstest2016.bpe.ro.output.postprocessed.dev
+ cat data/newstest2016.bpe.ro \
+ | ../../build/amun -c model/model.npz.amun.yml -b 12 -n --mini-batch 100 --maxi-batch 1000 \
+ | sed 's/\@\@ //g' | mosesdecoder/scripts/recaser/detruecase.perl > data/newstest2016.bpe.ro.output.postprocessed
fi
-./mosesdecoder/scripts/generic/multi-bleu.perl data/newtest2016.en < data/newtest2016.bpe.ro.output.postprocessed.dev
+./mosesdecoder/scripts/generic/multi-bleu.perl data/newtest2016.en < data/newtest2016.bpe.ro.output.postprocessed
diff --git a/examples/training/scripts/validate.sh b/examples/training/scripts/validate.sh
index 992689de..7c60a487 100755
--- a/examples/training/scripts/validate.sh
+++ b/examples/training/scripts/validate.sh
@@ -9,9 +9,9 @@ ref=data/newsdev2016.tok.en
# decode
cat $dev | ../../build/amun -c $prefix.dev.npz.amun.yml -b 12 -n --mini-batch 10 --maxi-batch 100 2>/dev/null \
- | sed 's/\@\@ //g' | mosesdecoder/scripts/recaser/detruecase.perl > $dev.output.postprocessed.dev
+ | sed 's/\@\@ //g' | mosesdecoder/scripts/recaser/detruecase.perl > $dev.output.postprocessed
## get BLEU
-BLEU=`./mosesdecoder/scripts/generic/multi-bleu.perl $ref < $dev.output.postprocessed.dev | cut -f 3 -d ' ' | cut -f 1 -d ','`
+BLEU=`./mosesdecoder/scripts/generic/multi-bleu.perl $ref < $dev.output.postprocessed | cut -f 3 -d ' ' | cut -f 1 -d ','`
echo $BLEU