diff options
author | Marcin Junczys-Dowmunt <junczys@amu.edu.pl> | 2017-03-24 22:34:09 +0300 |
---|---|---|
committer | Marcin Junczys-Dowmunt <junczys@amu.edu.pl> | 2017-03-24 22:34:09 +0300 |
commit | e78c5dde25184af7bcbe1dc7f99315840b538dc0 (patch) | |
tree | deb115a5362e759951142303169845ce342ef094 /examples/training/scripts | |
parent | d0d7010e87f765032857fde71cd1e970f35c01db (diff) |
changed scripts
Diffstat (limited to 'examples/training/scripts')
-rwxr-xr-x | examples/training/scripts/validate.sh | 4 |
1 files changed, 2 insertions, 2 deletions
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 |