cnndm_eval.sh 219 字节
Newer Older
M
Meiyim 已提交
1 2 3 4 5 6 7 8 9
set -x
(($#!=2)) && echo "Usage predict_file label_file" && exit -1

PRED=$1
PREFIX=$2

python pyrouge_set_rouge_path.py `pwd`/file2rouge/
python cnndm/eval.py --pred ${PRED} \
  --gold ${PREFIX} --trunc_len 100 --perl