mosesdecoder/mert/example/memcheck_extractor.sh

17 lines
443 B
Bash
Raw Normal View History

2011-11-14 15:17:58 +04:00
#!/bin/sh
extractor=../extractor
VALGRIND_OPTS="--leak-check=full --leak-resolution=high \
--show-reachable=yes --track-origins=yes"
VALGRIND="valgrind $VALGRIND_OPTS"
2011-11-15 05:17:00 +04:00
for datafile in NBEST REF.0 REF.1 REF.2; do
if ! [ -f $datafile ]; then
echo "Error: $datafile does not exist."
exit 1
fi
done
2011-11-14 15:17:58 +04:00
$VALGRIND $extractor --nbest NBEST --reference REF.0,REF.1,REF.2 \
--ffile FEATSTAT --scfile SCORESTAT --sctype BLEU