Code for ACL 2023 paper Uncertainty Guided Label Denoising for Document-level Distant Relation Extraction.
conda env create -f environment.yml
conda activate UGDRE
We perform experiments on DocRED and RE-DocRED.
For the DocRED dataset, our denoised data can be found at this link. For the RE-DocRED dataset, our denoised data can be found at this link.
bash scripts/run_pretrain.sh
bash scripts/run_finetune.sh
bash scripts/generate_pseudo_uncertainty.sh
python dataset.py
Part of the code is adapted from ATLOP.
@article{sun2023uncertainty,
title={Uncertainty Guided Label Denoising for Document-level Distant Relation Extraction},
author={Sun, Qi and Huang, Kun and Yang, Xiaocui and Hong, Pengfei and Zhang, Kun and Poria, Soujanya},
journal={Proceedings of ACL},
year={2023}
}