diff options
author | Marcin Junczys-Dowmunt <junczys@amu.edu.pl> | 2017-03-24 21:25:44 +0300 |
---|---|---|
committer | Marcin Junczys-Dowmunt <junczys@amu.edu.pl> | 2017-03-24 21:25:44 +0300 |
commit | 731169005bd92f955f669cd1af4fc9030cff14b5 (patch) | |
tree | 1625f5b77cc1e4d608b04671c86e6fc153c3c122 /examples/training | |
parent | bae7cd9a107db896f629d4c160a1193a1a25d43d (diff) |
added final eval
Diffstat (limited to 'examples/training')
-rwxr-xr-x | examples/training/run-me.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/examples/training/run-me.sh b/examples/training/run-me.sh index 2c97c501..9665a914 100755 --- a/examples/training/run-me.sh +++ b/examples/training/run-me.sh @@ -45,7 +45,7 @@ then --dim-vocabs 32000 32000 \ --mini-batch 80 \ --layer-normalization \ - --after-batches 90000 \ + --after-batches 10000 \ --valid-freq 10000 --save-freq 30000 --disp-freq 1000 \ --valid-sets data/newsdev2016.bpe.ro data/newsdev2016.bpe.en \ --valid-metrics cross-entropy valid-script \ @@ -54,3 +54,10 @@ then 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 +fi + +./mosesdecoder/scripts/generic/multi-bleu.perl data/newtest2016.en < data/newtest2016.bpe.ro.output.postprocessed.dev |