From 24c8234871a05e7ca71147d630738139acc0d5e9 Mon Sep 17 00:00:00 2001 From: ting830812 Date: Wed, 3 Feb 2021 17:36:00 +0800 Subject: [PATCH] Fix wrong answer filename while evaluating RE --- relation-extraction/README.md | 2 +- relation-extraction/scripts/re_eval_10cv.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/relation-extraction/README.md b/relation-extraction/README.md index a906622..ae1e2ea 100644 --- a/relation-extraction/README.md +++ b/relation-extraction/README.md @@ -40,7 +40,7 @@ python run_re.py \ ## Evaluation ```bash -python ./scripts/re_eval.py --output_path=${SAVE_DIR}/${ENTITY}/test_results.txt --answer_path=${DATA_DIR}/test_original.tsv +python ./scripts/re_eval.py --output_path=${SAVE_DIR}/${ENTITY}/test_results.txt --answer_path=${DATA_DIR}/test.tsv ``` To evaluate the prediction, please use `scripts/re_eval.py` file. For an example running script for 10-cv experiment, please task a look at `run_re_10cv.sh` and `scripts/re_eval_10cv.sh`. diff --git a/relation-extraction/scripts/re_eval_10cv.sh b/relation-extraction/scripts/re_eval_10cv.sh index 3ae6354..65a82b0 100644 --- a/relation-extraction/scripts/re_eval_10cv.sh +++ b/relation-extraction/scripts/re_eval_10cv.sh @@ -7,5 +7,5 @@ do echo "***** " $DATA " test score " $SPLIT " *****" python scripts/re_eval.py \ --output_path=./output/$ENTITY/test_results.txt \ - --answer_path=../datasets/RE/$DATA/$SPLIT/test_original.tsv + --answer_path=../datasets/RE/$DATA/$SPLIT/test.tsv done