├── .gitignore ├── LICENSE ├── README.md ├── configs ├── cdr_basebert.yaml ├── cdr_basebert_train+dev.yaml └── docred_basebert.yaml ├── data ├── CDR │ └── processed │ │ ├── ner2id.json │ │ ├── rel2id.json │ │ └── word2id.json └── README.md ├── data_processing ├── 2017MeshTree.txt ├── convert2result.py ├── docRedProcess.py ├── filter_hypernyms.py ├── process.py ├── process_cdr.sh ├── readers.py ├── reduce_embeds.py ├── statistics.py ├── tools.py └── utils.py ├── requirements.txt ├── results └── README.md ├── scripts ├── run_cdr.py ├── run_cdr_train+dev.py └── run_docred.py └── src ├── __init__.py ├── data ├── __init__.py ├── converter.py ├── dataset.py ├── loader.py └── reader.py ├── main.py ├── models ├── __init__.py ├── basemodel.py └── glre.py ├── nnet ├── __init__.py ├── attention.py ├── modules.py ├── rgcn.py ├── trainer.py └── transformers_word_handle.py └── utils ├── __init__.py ├── adj_utils.py ├── evaluate_cdr.py ├── metrics_util.py ├── tensor_utils.py └── utils.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/README.md -------------------------------------------------------------------------------- /configs/cdr_basebert.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/configs/cdr_basebert.yaml -------------------------------------------------------------------------------- /configs/cdr_basebert_train+dev.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/configs/cdr_basebert_train+dev.yaml -------------------------------------------------------------------------------- /configs/docred_basebert.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/configs/docred_basebert.yaml -------------------------------------------------------------------------------- /data/CDR/processed/ner2id.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/data/CDR/processed/ner2id.json -------------------------------------------------------------------------------- /data/CDR/processed/rel2id.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/data/CDR/processed/rel2id.json -------------------------------------------------------------------------------- /data/CDR/processed/word2id.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/data/CDR/processed/word2id.json -------------------------------------------------------------------------------- /data/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/data/README.md -------------------------------------------------------------------------------- /data_processing/2017MeshTree.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/data_processing/2017MeshTree.txt -------------------------------------------------------------------------------- /data_processing/convert2result.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/data_processing/convert2result.py -------------------------------------------------------------------------------- /data_processing/docRedProcess.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/data_processing/docRedProcess.py -------------------------------------------------------------------------------- /data_processing/filter_hypernyms.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/data_processing/filter_hypernyms.py -------------------------------------------------------------------------------- /data_processing/process.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/data_processing/process.py -------------------------------------------------------------------------------- /data_processing/process_cdr.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/data_processing/process_cdr.sh -------------------------------------------------------------------------------- /data_processing/readers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/data_processing/readers.py -------------------------------------------------------------------------------- /data_processing/reduce_embeds.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/data_processing/reduce_embeds.py -------------------------------------------------------------------------------- /data_processing/statistics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/data_processing/statistics.py -------------------------------------------------------------------------------- /data_processing/tools.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/data_processing/tools.py -------------------------------------------------------------------------------- /data_processing/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/data_processing/utils.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/requirements.txt -------------------------------------------------------------------------------- /results/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/results/README.md -------------------------------------------------------------------------------- /scripts/run_cdr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/scripts/run_cdr.py -------------------------------------------------------------------------------- /scripts/run_cdr_train+dev.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/scripts/run_cdr_train+dev.py -------------------------------------------------------------------------------- /scripts/run_docred.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/scripts/run_docred.py -------------------------------------------------------------------------------- /src/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/data/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/data/converter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/src/data/converter.py -------------------------------------------------------------------------------- /src/data/dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/src/data/dataset.py -------------------------------------------------------------------------------- /src/data/loader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/src/data/loader.py -------------------------------------------------------------------------------- /src/data/reader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/src/data/reader.py -------------------------------------------------------------------------------- /src/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/src/main.py -------------------------------------------------------------------------------- /src/models/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/models/basemodel.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/src/models/basemodel.py -------------------------------------------------------------------------------- /src/models/glre.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/src/models/glre.py -------------------------------------------------------------------------------- /src/nnet/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/nnet/attention.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/src/nnet/attention.py -------------------------------------------------------------------------------- /src/nnet/modules.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/src/nnet/modules.py -------------------------------------------------------------------------------- /src/nnet/rgcn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/src/nnet/rgcn.py -------------------------------------------------------------------------------- /src/nnet/trainer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/src/nnet/trainer.py -------------------------------------------------------------------------------- /src/nnet/transformers_word_handle.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/src/nnet/transformers_word_handle.py -------------------------------------------------------------------------------- /src/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/utils/adj_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/src/utils/adj_utils.py -------------------------------------------------------------------------------- /src/utils/evaluate_cdr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/src/utils/evaluate_cdr.py -------------------------------------------------------------------------------- /src/utils/metrics_util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/src/utils/metrics_util.py -------------------------------------------------------------------------------- /src/utils/tensor_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/src/utils/tensor_utils.py -------------------------------------------------------------------------------- /src/utils/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nju-websoft/GLRE/HEAD/src/utils/utils.py --------------------------------------------------------------------------------