To train baseline model:
- Go into folder
baseline model
- Install requirements
- run
python main.py --dataset_path "data/crest_1_2_13.xlsx"
orpython main.py --dataset_path "data/semeval_t8.xlsx"
To fine-tune BERT model:
- Go into folder
BERT-Relation-Extraction
- Install requirements
- run
python main_task.py --task "semeval" --num_classes 19 --train 1 --infer 1
orpython main_task.py --task "crest" --num_classes 3 --train 1 --infer 1
Bonus:
- See folder
Stanford-NLP-Bonus
- Install requirements
- Start notebook