Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion relation-extraction/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
2 changes: 1 addition & 1 deletion relation-extraction/scripts/re_eval_10cv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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