├── README.md ├── model1 ├── BuildKG.py ├── CalculateGenericRate.py ├── JsonSerializer.py ├── build_custom_kernels.sh ├── conll.py ├── coref_metrics.py ├── create_script.py ├── debug_utils.py ├── decoder.py ├── embedding_helper.py ├── evaluator.py ├── evaluator_test.py ├── experiments.conf ├── generate_elmo.py ├── inference_utils.py ├── inference_utils_confidence.py ├── inference_utils_nooverlap.py ├── inference_utils_test.py ├── input_utils.py ├── lsgn_data.py ├── lsgn_evaluator.py ├── lsgn_evaluator_writer.py ├── model_utils.py ├── relation_metrics.py ├── singleton.py ├── srl_eval_utils.py ├── srl_kernels.cc ├── srl_model.py ├── srl_ops.py ├── test_single.py ├── util.py └── write_single.py ├── model2 ├── BuildKG.py ├── CalculateGenericRate.py ├── JsonSerializer.py ├── build_custom_kernels.sh ├── conll.py ├── coref_metrics.py ├── create_script.py ├── debug_utils.py ├── decoder.py ├── embedding_helper.py ├── evaluator.py ├── experiments.conf ├── generate_elmo.py ├── inference_utils.py ├── inference_utils_confidence.py ├── inference_utils_nooverlap.py ├── inference_utils_test.py ├── input_utils.py ├── lsgn_data.py ├── lsgn_evaluator.py ├── lsgn_evaluator_writer.py ├── model_utils.py ├── relation_metrics.py ├── singleton.py ├── srl_eval_utils.py ├── srl_kernels.cc ├── srl_model.py ├── srl_model_bb.py ├── srl_ops.py ├── test_single.py ├── util.py └── write_single.py ├── preprocessing ├── README.md ├── ace2004 │ ├── ace2ann.py │ ├── ace2json.py │ ├── generate_elmo.py │ ├── run.zsh │ ├── split │ │ ├── cv0 │ │ ├── cv1 │ │ ├── cv2 │ │ ├── cv3 │ │ └── cv4 │ ├── train_list │ └── train_list_fixed ├── ace2005 │ ├── ace2ann.py │ ├── ace2json.py │ ├── generate_elmo.py │ ├── run.zsh │ ├── split │ │ ├── dev │ │ ├── test │ │ └── train │ ├── train_list │ └── train_list_fixed ├── common │ ├── conll2txt.py │ ├── dep2so.prl │ ├── fix_sentence_break.py │ ├── props_fixed │ ├── props_ssplit │ └── standoff.py └── ontonotes │ ├── generate_elmo.py │ ├── minimize.py │ └── setup_training.sh └── scripts ├── fetch_required_data.sh ├── filter_embeddings.py └── get_char_vocab.py /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/README.md -------------------------------------------------------------------------------- /model1/BuildKG.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model1/BuildKG.py -------------------------------------------------------------------------------- /model1/CalculateGenericRate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model1/CalculateGenericRate.py -------------------------------------------------------------------------------- /model1/JsonSerializer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model1/JsonSerializer.py -------------------------------------------------------------------------------- /model1/build_custom_kernels.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model1/build_custom_kernels.sh -------------------------------------------------------------------------------- /model1/conll.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model1/conll.py -------------------------------------------------------------------------------- /model1/coref_metrics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model1/coref_metrics.py -------------------------------------------------------------------------------- /model1/create_script.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model1/create_script.py -------------------------------------------------------------------------------- /model1/debug_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model1/debug_utils.py -------------------------------------------------------------------------------- /model1/decoder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model1/decoder.py -------------------------------------------------------------------------------- /model1/embedding_helper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model1/embedding_helper.py -------------------------------------------------------------------------------- /model1/evaluator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model1/evaluator.py -------------------------------------------------------------------------------- /model1/evaluator_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model1/evaluator_test.py -------------------------------------------------------------------------------- /model1/experiments.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model1/experiments.conf -------------------------------------------------------------------------------- /model1/generate_elmo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model1/generate_elmo.py -------------------------------------------------------------------------------- /model1/inference_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model1/inference_utils.py -------------------------------------------------------------------------------- /model1/inference_utils_confidence.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model1/inference_utils_confidence.py -------------------------------------------------------------------------------- /model1/inference_utils_nooverlap.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model1/inference_utils_nooverlap.py -------------------------------------------------------------------------------- /model1/inference_utils_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model1/inference_utils_test.py -------------------------------------------------------------------------------- /model1/input_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model1/input_utils.py -------------------------------------------------------------------------------- /model1/lsgn_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model1/lsgn_data.py -------------------------------------------------------------------------------- /model1/lsgn_evaluator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model1/lsgn_evaluator.py -------------------------------------------------------------------------------- /model1/lsgn_evaluator_writer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model1/lsgn_evaluator_writer.py -------------------------------------------------------------------------------- /model1/model_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model1/model_utils.py -------------------------------------------------------------------------------- /model1/relation_metrics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model1/relation_metrics.py -------------------------------------------------------------------------------- /model1/singleton.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model1/singleton.py -------------------------------------------------------------------------------- /model1/srl_eval_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model1/srl_eval_utils.py -------------------------------------------------------------------------------- /model1/srl_kernels.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model1/srl_kernels.cc -------------------------------------------------------------------------------- /model1/srl_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model1/srl_model.py -------------------------------------------------------------------------------- /model1/srl_ops.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model1/srl_ops.py -------------------------------------------------------------------------------- /model1/test_single.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model1/test_single.py -------------------------------------------------------------------------------- /model1/util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model1/util.py -------------------------------------------------------------------------------- /model1/write_single.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model1/write_single.py -------------------------------------------------------------------------------- /model2/BuildKG.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model2/BuildKG.py -------------------------------------------------------------------------------- /model2/CalculateGenericRate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model2/CalculateGenericRate.py -------------------------------------------------------------------------------- /model2/JsonSerializer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model2/JsonSerializer.py -------------------------------------------------------------------------------- /model2/build_custom_kernels.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model2/build_custom_kernels.sh -------------------------------------------------------------------------------- /model2/conll.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model2/conll.py -------------------------------------------------------------------------------- /model2/coref_metrics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model2/coref_metrics.py -------------------------------------------------------------------------------- /model2/create_script.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model2/create_script.py -------------------------------------------------------------------------------- /model2/debug_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model2/debug_utils.py -------------------------------------------------------------------------------- /model2/decoder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model2/decoder.py -------------------------------------------------------------------------------- /model2/embedding_helper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model2/embedding_helper.py -------------------------------------------------------------------------------- /model2/evaluator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model2/evaluator.py -------------------------------------------------------------------------------- /model2/experiments.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model2/experiments.conf -------------------------------------------------------------------------------- /model2/generate_elmo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model2/generate_elmo.py -------------------------------------------------------------------------------- /model2/inference_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model2/inference_utils.py -------------------------------------------------------------------------------- /model2/inference_utils_confidence.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model2/inference_utils_confidence.py -------------------------------------------------------------------------------- /model2/inference_utils_nooverlap.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model2/inference_utils_nooverlap.py -------------------------------------------------------------------------------- /model2/inference_utils_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model2/inference_utils_test.py -------------------------------------------------------------------------------- /model2/input_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model2/input_utils.py -------------------------------------------------------------------------------- /model2/lsgn_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model2/lsgn_data.py -------------------------------------------------------------------------------- /model2/lsgn_evaluator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model2/lsgn_evaluator.py -------------------------------------------------------------------------------- /model2/lsgn_evaluator_writer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model2/lsgn_evaluator_writer.py -------------------------------------------------------------------------------- /model2/model_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model2/model_utils.py -------------------------------------------------------------------------------- /model2/relation_metrics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model2/relation_metrics.py -------------------------------------------------------------------------------- /model2/singleton.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model2/singleton.py -------------------------------------------------------------------------------- /model2/srl_eval_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model2/srl_eval_utils.py -------------------------------------------------------------------------------- /model2/srl_kernels.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model2/srl_kernels.cc -------------------------------------------------------------------------------- /model2/srl_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model2/srl_model.py -------------------------------------------------------------------------------- /model2/srl_model_bb.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model2/srl_model_bb.py -------------------------------------------------------------------------------- /model2/srl_ops.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model2/srl_ops.py -------------------------------------------------------------------------------- /model2/test_single.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model2/test_single.py -------------------------------------------------------------------------------- /model2/util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model2/util.py -------------------------------------------------------------------------------- /model2/write_single.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/model2/write_single.py -------------------------------------------------------------------------------- /preprocessing/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/preprocessing/README.md -------------------------------------------------------------------------------- /preprocessing/ace2004/ace2ann.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/preprocessing/ace2004/ace2ann.py -------------------------------------------------------------------------------- /preprocessing/ace2004/ace2json.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/preprocessing/ace2004/ace2json.py -------------------------------------------------------------------------------- /preprocessing/ace2004/generate_elmo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/preprocessing/ace2004/generate_elmo.py -------------------------------------------------------------------------------- /preprocessing/ace2004/run.zsh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/preprocessing/ace2004/run.zsh -------------------------------------------------------------------------------- /preprocessing/ace2004/split/cv0: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/preprocessing/ace2004/split/cv0 -------------------------------------------------------------------------------- /preprocessing/ace2004/split/cv1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/preprocessing/ace2004/split/cv1 -------------------------------------------------------------------------------- /preprocessing/ace2004/split/cv2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/preprocessing/ace2004/split/cv2 -------------------------------------------------------------------------------- /preprocessing/ace2004/split/cv3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/preprocessing/ace2004/split/cv3 -------------------------------------------------------------------------------- /preprocessing/ace2004/split/cv4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/preprocessing/ace2004/split/cv4 -------------------------------------------------------------------------------- /preprocessing/ace2004/train_list: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/preprocessing/ace2004/train_list -------------------------------------------------------------------------------- /preprocessing/ace2004/train_list_fixed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/preprocessing/ace2004/train_list_fixed -------------------------------------------------------------------------------- /preprocessing/ace2005/ace2ann.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/preprocessing/ace2005/ace2ann.py -------------------------------------------------------------------------------- /preprocessing/ace2005/ace2json.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/preprocessing/ace2005/ace2json.py -------------------------------------------------------------------------------- /preprocessing/ace2005/generate_elmo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/preprocessing/ace2005/generate_elmo.py -------------------------------------------------------------------------------- /preprocessing/ace2005/run.zsh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/preprocessing/ace2005/run.zsh -------------------------------------------------------------------------------- /preprocessing/ace2005/split/dev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/preprocessing/ace2005/split/dev -------------------------------------------------------------------------------- /preprocessing/ace2005/split/test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/preprocessing/ace2005/split/test -------------------------------------------------------------------------------- /preprocessing/ace2005/split/train: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/preprocessing/ace2005/split/train -------------------------------------------------------------------------------- /preprocessing/ace2005/train_list: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/preprocessing/ace2005/train_list -------------------------------------------------------------------------------- /preprocessing/ace2005/train_list_fixed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/preprocessing/ace2005/train_list_fixed -------------------------------------------------------------------------------- /preprocessing/common/conll2txt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/preprocessing/common/conll2txt.py -------------------------------------------------------------------------------- /preprocessing/common/dep2so.prl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/preprocessing/common/dep2so.prl -------------------------------------------------------------------------------- /preprocessing/common/fix_sentence_break.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/preprocessing/common/fix_sentence_break.py -------------------------------------------------------------------------------- /preprocessing/common/props_fixed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/preprocessing/common/props_fixed -------------------------------------------------------------------------------- /preprocessing/common/props_ssplit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/preprocessing/common/props_ssplit -------------------------------------------------------------------------------- /preprocessing/common/standoff.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/preprocessing/common/standoff.py -------------------------------------------------------------------------------- /preprocessing/ontonotes/generate_elmo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/preprocessing/ontonotes/generate_elmo.py -------------------------------------------------------------------------------- /preprocessing/ontonotes/minimize.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/preprocessing/ontonotes/minimize.py -------------------------------------------------------------------------------- /preprocessing/ontonotes/setup_training.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/preprocessing/ontonotes/setup_training.sh -------------------------------------------------------------------------------- /scripts/fetch_required_data.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/scripts/fetch_required_data.sh -------------------------------------------------------------------------------- /scripts/filter_embeddings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/scripts/filter_embeddings.py -------------------------------------------------------------------------------- /scripts/get_char_vocab.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luanyi/DyGIE/HEAD/scripts/get_char_vocab.py --------------------------------------------------------------------------------