├── README.md ├── __init__,py ├── bert_bilstm_crf_ner ├── README.md ├── __init__.py ├── bert_base_model.py ├── bert_ner_model.py ├── checkpoints │ └── 占位符.txt ├── config.py ├── dataset.py ├── logs │ ├── bert_bilstm_crf.log │ └── preprocess.log ├── main.py ├── preprocess.py └── utils │ ├── __init__.py │ ├── __pycache__ │ ├── __init__.cpython-36.pyc │ ├── __init__.cpython-37.pyc │ ├── commonUtils.cpython-36.pyc │ ├── commonUtils.cpython-37.pyc │ ├── cutSentences.cpython-36.pyc │ ├── cutSentences.cpython-37.pyc │ ├── decodeUtils.cpython-37.pyc │ ├── metricsUtils.cpython-37.pyc │ └── trainUtils.cpython-37.pyc │ ├── commonUtils.py │ ├── cutSentences.py │ ├── decodeUtils.py │ ├── metricsUtils.py │ └── trainUtils.py ├── bert_re ├── README.md ├── __init__.py ├── bert_config.py ├── checkpoints │ └── 占位符.txt ├── data │ ├── bar_chart.png │ ├── data_into_train_test.py │ ├── predict.txt │ ├── rel_dict.json │ ├── relation_bar_chart.py │ ├── test.txt │ ├── train.txt │ └── 人物关系表.xlsx ├── data_loader.py ├── dataset.py ├── logs │ ├── main.log │ └── preprocess.log ├── main.py ├── models.py ├── preprocess.py ├── run.sh └── utils │ ├── __init__.py │ ├── __pycache__ │ ├── __init__.cpython-36.pyc │ ├── __init__.cpython-37.pyc │ ├── utils.cpython-36.pyc │ └── utils.cpython-37.pyc │ └── utils.py ├── data ├── dgre │ ├── mid_data │ │ ├── ent_labels.txt │ │ └── ner_labels.txt │ ├── ner_final_data │ │ └── 占位.txt │ ├── raw_data │ │ ├── evalA.json │ │ ├── process.py │ │ └── train.json │ ├── re_final_data │ │ └── 占位.txt │ └── re_mid_data │ │ └── rels.txt └── 占位符.txt ├── get_result.py ├── model_hub └── 占位符.txt └── re_process.py /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/README.md -------------------------------------------------------------------------------- /__init__,py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bert_bilstm_crf_ner/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_bilstm_crf_ner/README.md -------------------------------------------------------------------------------- /bert_bilstm_crf_ner/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bert_bilstm_crf_ner/bert_base_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_bilstm_crf_ner/bert_base_model.py -------------------------------------------------------------------------------- /bert_bilstm_crf_ner/bert_ner_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_bilstm_crf_ner/bert_ner_model.py -------------------------------------------------------------------------------- /bert_bilstm_crf_ner/checkpoints/占位符.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bert_bilstm_crf_ner/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_bilstm_crf_ner/config.py -------------------------------------------------------------------------------- /bert_bilstm_crf_ner/dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_bilstm_crf_ner/dataset.py -------------------------------------------------------------------------------- /bert_bilstm_crf_ner/logs/bert_bilstm_crf.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_bilstm_crf_ner/logs/bert_bilstm_crf.log -------------------------------------------------------------------------------- /bert_bilstm_crf_ner/logs/preprocess.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_bilstm_crf_ner/logs/preprocess.log -------------------------------------------------------------------------------- /bert_bilstm_crf_ner/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_bilstm_crf_ner/main.py -------------------------------------------------------------------------------- /bert_bilstm_crf_ner/preprocess.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_bilstm_crf_ner/preprocess.py -------------------------------------------------------------------------------- /bert_bilstm_crf_ner/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bert_bilstm_crf_ner/utils/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_bilstm_crf_ner/utils/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /bert_bilstm_crf_ner/utils/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_bilstm_crf_ner/utils/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /bert_bilstm_crf_ner/utils/__pycache__/commonUtils.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_bilstm_crf_ner/utils/__pycache__/commonUtils.cpython-36.pyc -------------------------------------------------------------------------------- /bert_bilstm_crf_ner/utils/__pycache__/commonUtils.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_bilstm_crf_ner/utils/__pycache__/commonUtils.cpython-37.pyc -------------------------------------------------------------------------------- /bert_bilstm_crf_ner/utils/__pycache__/cutSentences.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_bilstm_crf_ner/utils/__pycache__/cutSentences.cpython-36.pyc -------------------------------------------------------------------------------- /bert_bilstm_crf_ner/utils/__pycache__/cutSentences.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_bilstm_crf_ner/utils/__pycache__/cutSentences.cpython-37.pyc -------------------------------------------------------------------------------- /bert_bilstm_crf_ner/utils/__pycache__/decodeUtils.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_bilstm_crf_ner/utils/__pycache__/decodeUtils.cpython-37.pyc -------------------------------------------------------------------------------- /bert_bilstm_crf_ner/utils/__pycache__/metricsUtils.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_bilstm_crf_ner/utils/__pycache__/metricsUtils.cpython-37.pyc -------------------------------------------------------------------------------- /bert_bilstm_crf_ner/utils/__pycache__/trainUtils.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_bilstm_crf_ner/utils/__pycache__/trainUtils.cpython-37.pyc -------------------------------------------------------------------------------- /bert_bilstm_crf_ner/utils/commonUtils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_bilstm_crf_ner/utils/commonUtils.py -------------------------------------------------------------------------------- /bert_bilstm_crf_ner/utils/cutSentences.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_bilstm_crf_ner/utils/cutSentences.py -------------------------------------------------------------------------------- /bert_bilstm_crf_ner/utils/decodeUtils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_bilstm_crf_ner/utils/decodeUtils.py -------------------------------------------------------------------------------- /bert_bilstm_crf_ner/utils/metricsUtils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_bilstm_crf_ner/utils/metricsUtils.py -------------------------------------------------------------------------------- /bert_bilstm_crf_ner/utils/trainUtils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_bilstm_crf_ner/utils/trainUtils.py -------------------------------------------------------------------------------- /bert_re/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_re/README.md -------------------------------------------------------------------------------- /bert_re/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bert_re/bert_config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_re/bert_config.py -------------------------------------------------------------------------------- /bert_re/checkpoints/占位符.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bert_re/data/bar_chart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_re/data/bar_chart.png -------------------------------------------------------------------------------- /bert_re/data/data_into_train_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_re/data/data_into_train_test.py -------------------------------------------------------------------------------- /bert_re/data/predict.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_re/data/predict.txt -------------------------------------------------------------------------------- /bert_re/data/rel_dict.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_re/data/rel_dict.json -------------------------------------------------------------------------------- /bert_re/data/relation_bar_chart.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_re/data/relation_bar_chart.py -------------------------------------------------------------------------------- /bert_re/data/test.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_re/data/test.txt -------------------------------------------------------------------------------- /bert_re/data/train.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_re/data/train.txt -------------------------------------------------------------------------------- /bert_re/data/人物关系表.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_re/data/人物关系表.xlsx -------------------------------------------------------------------------------- /bert_re/data_loader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_re/data_loader.py -------------------------------------------------------------------------------- /bert_re/dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_re/dataset.py -------------------------------------------------------------------------------- /bert_re/logs/main.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_re/logs/main.log -------------------------------------------------------------------------------- /bert_re/logs/preprocess.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_re/logs/preprocess.log -------------------------------------------------------------------------------- /bert_re/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_re/main.py -------------------------------------------------------------------------------- /bert_re/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_re/models.py -------------------------------------------------------------------------------- /bert_re/preprocess.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_re/preprocess.py -------------------------------------------------------------------------------- /bert_re/run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_re/run.sh -------------------------------------------------------------------------------- /bert_re/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bert_re/utils/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_re/utils/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /bert_re/utils/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_re/utils/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /bert_re/utils/__pycache__/utils.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_re/utils/__pycache__/utils.cpython-36.pyc -------------------------------------------------------------------------------- /bert_re/utils/__pycache__/utils.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_re/utils/__pycache__/utils.cpython-37.pyc -------------------------------------------------------------------------------- /bert_re/utils/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/bert_re/utils/utils.py -------------------------------------------------------------------------------- /data/dgre/mid_data/ent_labels.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/data/dgre/mid_data/ent_labels.txt -------------------------------------------------------------------------------- /data/dgre/mid_data/ner_labels.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/data/dgre/mid_data/ner_labels.txt -------------------------------------------------------------------------------- /data/dgre/ner_final_data/占位.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /data/dgre/raw_data/evalA.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/data/dgre/raw_data/evalA.json -------------------------------------------------------------------------------- /data/dgre/raw_data/process.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/data/dgre/raw_data/process.py -------------------------------------------------------------------------------- /data/dgre/raw_data/train.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/data/dgre/raw_data/train.json -------------------------------------------------------------------------------- /data/dgre/re_final_data/占位.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /data/dgre/re_mid_data/rels.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/data/dgre/re_mid_data/rels.txt -------------------------------------------------------------------------------- /data/占位符.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /get_result.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/get_result.py -------------------------------------------------------------------------------- /model_hub/占位符.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /re_process.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/taishan1994/pytorch_triple_extraction/HEAD/re_process.py --------------------------------------------------------------------------------