├── .gitignore ├── Automatical_Relation_Generation ├── III_nli_annotator.py ├── II_gpt_triples_postprocess.py ├── IV_nli_score_postprocess.py ├── I_gpt_proposal.py ├── I_gpt_proposal_more.py └── run.sh ├── DocRE ├── args.py ├── evaluation.py ├── long_seq.py ├── losses.py ├── model.py ├── prepro.py ├── run.py ├── scripts │ ├── isf_bert.sh │ ├── isf_roberta.sh │ ├── run_bert_gpt.sh │ └── run_roberta_gpt.sh └── utils.py ├── LICENSE ├── README.md └── resource └── meta ├── rel2hypothesis.txt ├── rel2id.json └── rel_info.json /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigai-nlco/DocGNRE/HEAD/.gitignore -------------------------------------------------------------------------------- /Automatical_Relation_Generation/III_nli_annotator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigai-nlco/DocGNRE/HEAD/Automatical_Relation_Generation/III_nli_annotator.py -------------------------------------------------------------------------------- /Automatical_Relation_Generation/II_gpt_triples_postprocess.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigai-nlco/DocGNRE/HEAD/Automatical_Relation_Generation/II_gpt_triples_postprocess.py -------------------------------------------------------------------------------- /Automatical_Relation_Generation/IV_nli_score_postprocess.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigai-nlco/DocGNRE/HEAD/Automatical_Relation_Generation/IV_nli_score_postprocess.py -------------------------------------------------------------------------------- /Automatical_Relation_Generation/I_gpt_proposal.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigai-nlco/DocGNRE/HEAD/Automatical_Relation_Generation/I_gpt_proposal.py -------------------------------------------------------------------------------- /Automatical_Relation_Generation/I_gpt_proposal_more.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigai-nlco/DocGNRE/HEAD/Automatical_Relation_Generation/I_gpt_proposal_more.py -------------------------------------------------------------------------------- /Automatical_Relation_Generation/run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigai-nlco/DocGNRE/HEAD/Automatical_Relation_Generation/run.sh -------------------------------------------------------------------------------- /DocRE/args.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigai-nlco/DocGNRE/HEAD/DocRE/args.py -------------------------------------------------------------------------------- /DocRE/evaluation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigai-nlco/DocGNRE/HEAD/DocRE/evaluation.py -------------------------------------------------------------------------------- /DocRE/long_seq.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigai-nlco/DocGNRE/HEAD/DocRE/long_seq.py -------------------------------------------------------------------------------- /DocRE/losses.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigai-nlco/DocGNRE/HEAD/DocRE/losses.py -------------------------------------------------------------------------------- /DocRE/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigai-nlco/DocGNRE/HEAD/DocRE/model.py -------------------------------------------------------------------------------- /DocRE/prepro.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigai-nlco/DocGNRE/HEAD/DocRE/prepro.py -------------------------------------------------------------------------------- /DocRE/run.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigai-nlco/DocGNRE/HEAD/DocRE/run.py -------------------------------------------------------------------------------- /DocRE/scripts/isf_bert.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigai-nlco/DocGNRE/HEAD/DocRE/scripts/isf_bert.sh -------------------------------------------------------------------------------- /DocRE/scripts/isf_roberta.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigai-nlco/DocGNRE/HEAD/DocRE/scripts/isf_roberta.sh -------------------------------------------------------------------------------- /DocRE/scripts/run_bert_gpt.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigai-nlco/DocGNRE/HEAD/DocRE/scripts/run_bert_gpt.sh -------------------------------------------------------------------------------- /DocRE/scripts/run_roberta_gpt.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigai-nlco/DocGNRE/HEAD/DocRE/scripts/run_roberta_gpt.sh -------------------------------------------------------------------------------- /DocRE/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigai-nlco/DocGNRE/HEAD/DocRE/utils.py -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigai-nlco/DocGNRE/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigai-nlco/DocGNRE/HEAD/README.md -------------------------------------------------------------------------------- /resource/meta/rel2hypothesis.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigai-nlco/DocGNRE/HEAD/resource/meta/rel2hypothesis.txt -------------------------------------------------------------------------------- /resource/meta/rel2id.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigai-nlco/DocGNRE/HEAD/resource/meta/rel2id.json -------------------------------------------------------------------------------- /resource/meta/rel_info.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigai-nlco/DocGNRE/HEAD/resource/meta/rel_info.json --------------------------------------------------------------------------------