diff options
author | Marcin Junczys-Dowmunt <junczys@amu.edu.pl> | 2017-03-24 22:48:18 +0300 |
---|---|---|
committer | Marcin Junczys-Dowmunt <junczys@amu.edu.pl> | 2017-03-24 22:48:18 +0300 |
commit | 73596bb556254dc44ed3747068bca9f6f1854f5f (patch) | |
tree | 58e245b47f184a298576f0c6291b33152319df48 /examples/training/scripts | |
parent | 8ef77b54f14e96d3ad021c536008e70375a95afa (diff) |
valid script
Diffstat (limited to 'examples/training/scripts')
-rwxr-xr-x | examples/training/scripts/validate.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/training/scripts/validate.sh b/examples/training/scripts/validate.sh index 7c60a487..a61c5310 100755 --- a/examples/training/scripts/validate.sh +++ b/examples/training/scripts/validate.sh @@ -9,9 +9,8 @@ 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 + | sed 's/\@\@ //g' | ./mosesdecoder/scripts/recaser/detruecase.perl > $dev.output.postprocessed ## get BLEU -BLEU=`./mosesdecoder/scripts/generic/multi-bleu.perl $ref < $dev.output.postprocessed | cut -f 3 -d ' ' | cut -f 1 -d ','` +./mosesdecoder/scripts/generic/multi-bleu.perl $ref < $dev.output.postprocessed | cut -f 3 -d ' ' | cut -f 1 -d ',' -echo $BLEU |