PyTorch code for "Exploring Privileged Features for Relation Extraction with Contrastive Student-Teacher Learning"
- Required
- Python 3.6
- PyTorch 1.3.1
- transformers 2.2.0
- scikit-learn 0.21.3
- tqdm 4.19.5
- numpy 1.17.4
To obtain the CoNLL04, SciERC and ADE datasets, please read the details provided here.
Our code is built based on SpERT.