├── .gitignore ├── LICENSE ├── README.md ├── data_convert ├── __init__.py ├── convert_text_to_tree.py ├── format │ ├── __init__.py │ ├── target_format.py │ └── text2tree.py ├── task_format │ ├── __init__.py │ ├── event_extraction.py │ └── task_format.py └── utils.py ├── evaluation.py ├── extraction ├── __init__.py ├── event_schema.py ├── extract_constraint.py ├── extraction_metrics.py ├── label_tree.py └── predict_parser │ ├── __init__.py │ ├── predict_parser.py │ └── tree_predict_parser.py ├── requirements.txt ├── run_eval.bash ├── run_seq2seq.bash ├── run_seq2seq.py ├── run_seq2seq_verbose.bash ├── run_seq2seq_with_pretrain.bash ├── scripts ├── convert_dyiepp_to_sentence.py └── processing_data.bash ├── seq2seq ├── __init__.py ├── constrained_seq2seq.py ├── label_smoother_sum.py ├── sentence_splitter.py └── utils.py └── show_tokenized_result.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luyaojie/Text2Event/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luyaojie/Text2Event/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luyaojie/Text2Event/HEAD/README.md -------------------------------------------------------------------------------- /data_convert/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /data_convert/convert_text_to_tree.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luyaojie/Text2Event/HEAD/data_convert/convert_text_to_tree.py -------------------------------------------------------------------------------- /data_convert/format/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /data_convert/format/target_format.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luyaojie/Text2Event/HEAD/data_convert/format/target_format.py -------------------------------------------------------------------------------- /data_convert/format/text2tree.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luyaojie/Text2Event/HEAD/data_convert/format/text2tree.py -------------------------------------------------------------------------------- /data_convert/task_format/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luyaojie/Text2Event/HEAD/data_convert/task_format/__init__.py -------------------------------------------------------------------------------- /data_convert/task_format/event_extraction.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luyaojie/Text2Event/HEAD/data_convert/task_format/event_extraction.py -------------------------------------------------------------------------------- /data_convert/task_format/task_format.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luyaojie/Text2Event/HEAD/data_convert/task_format/task_format.py -------------------------------------------------------------------------------- /data_convert/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luyaojie/Text2Event/HEAD/data_convert/utils.py -------------------------------------------------------------------------------- /evaluation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luyaojie/Text2Event/HEAD/evaluation.py -------------------------------------------------------------------------------- /extraction/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /extraction/event_schema.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luyaojie/Text2Event/HEAD/extraction/event_schema.py -------------------------------------------------------------------------------- /extraction/extract_constraint.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luyaojie/Text2Event/HEAD/extraction/extract_constraint.py -------------------------------------------------------------------------------- /extraction/extraction_metrics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luyaojie/Text2Event/HEAD/extraction/extraction_metrics.py -------------------------------------------------------------------------------- /extraction/label_tree.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luyaojie/Text2Event/HEAD/extraction/label_tree.py -------------------------------------------------------------------------------- /extraction/predict_parser/__init__.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding:utf-8 -*- 3 | -------------------------------------------------------------------------------- /extraction/predict_parser/predict_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luyaojie/Text2Event/HEAD/extraction/predict_parser/predict_parser.py -------------------------------------------------------------------------------- /extraction/predict_parser/tree_predict_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luyaojie/Text2Event/HEAD/extraction/predict_parser/tree_predict_parser.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luyaojie/Text2Event/HEAD/requirements.txt -------------------------------------------------------------------------------- /run_eval.bash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luyaojie/Text2Event/HEAD/run_eval.bash -------------------------------------------------------------------------------- /run_seq2seq.bash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luyaojie/Text2Event/HEAD/run_seq2seq.bash -------------------------------------------------------------------------------- /run_seq2seq.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luyaojie/Text2Event/HEAD/run_seq2seq.py -------------------------------------------------------------------------------- /run_seq2seq_verbose.bash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luyaojie/Text2Event/HEAD/run_seq2seq_verbose.bash -------------------------------------------------------------------------------- /run_seq2seq_with_pretrain.bash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luyaojie/Text2Event/HEAD/run_seq2seq_with_pretrain.bash -------------------------------------------------------------------------------- /scripts/convert_dyiepp_to_sentence.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luyaojie/Text2Event/HEAD/scripts/convert_dyiepp_to_sentence.py -------------------------------------------------------------------------------- /scripts/processing_data.bash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luyaojie/Text2Event/HEAD/scripts/processing_data.bash -------------------------------------------------------------------------------- /seq2seq/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luyaojie/Text2Event/HEAD/seq2seq/__init__.py -------------------------------------------------------------------------------- /seq2seq/constrained_seq2seq.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luyaojie/Text2Event/HEAD/seq2seq/constrained_seq2seq.py -------------------------------------------------------------------------------- /seq2seq/label_smoother_sum.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luyaojie/Text2Event/HEAD/seq2seq/label_smoother_sum.py -------------------------------------------------------------------------------- /seq2seq/sentence_splitter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luyaojie/Text2Event/HEAD/seq2seq/sentence_splitter.py -------------------------------------------------------------------------------- /seq2seq/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luyaojie/Text2Event/HEAD/seq2seq/utils.py -------------------------------------------------------------------------------- /show_tokenized_result.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luyaojie/Text2Event/HEAD/show_tokenized_result.py --------------------------------------------------------------------------------