diff options
Diffstat (limited to 'examples/training/scripts/validate.sh')
-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 |