The source linkage of git:https://github.com/thunlp/FewRel
- OS:Ubuntu 20.04
- Python version:3.7
- Dependencies:
- torch==1.10
- transformers
- numpy
- tqdm
-
clone:
git clone git:https://github.com/thunlp/FewRel.git cd yourproject
-
create environment&activate:
python3 -m venv venv source venv/bin/activate
- Download Dataset: The names of our dataset are listed as follows. The partition ratio is 73 The partition ratio is 82 The partition ratio is 91
- Finetune the model:
python train_demo.py
- Remark: For files and parameter settings, please see the train_demo.py