├── .gitignore ├── .idea ├── bert_document_classify.iml ├── codeStyles │ └── Project.xml ├── dbnavigator.xml ├── encodings.xml ├── inspectionProfiles │ └── Project_Default.xml ├── misc.xml ├── modules.xml └── vcs.xml ├── README.md ├── att.py ├── bert ├── __init__.py ├── args.py ├── extract_feature.py ├── graph.py ├── modeling.py ├── optimization.py └── tokenization.py ├── data ├── bar_chart.png ├── data_into_train_test.py ├── rel_dict.json ├── relation_bar_chart.py ├── test.txt ├── train.txt └── 人物关系表.xlsx ├── load_data.py ├── loss_acc.png ├── model.png ├── model_predict.py ├── model_train.py ├── requirements.txt └── sent.txt /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/percent4/people_relation_extract/HEAD/.gitignore -------------------------------------------------------------------------------- /.idea/bert_document_classify.iml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/percent4/people_relation_extract/HEAD/.idea/bert_document_classify.iml -------------------------------------------------------------------------------- /.idea/codeStyles/Project.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/percent4/people_relation_extract/HEAD/.idea/codeStyles/Project.xml -------------------------------------------------------------------------------- /.idea/dbnavigator.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/percent4/people_relation_extract/HEAD/.idea/dbnavigator.xml -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/percent4/people_relation_extract/HEAD/.idea/encodings.xml -------------------------------------------------------------------------------- /.idea/inspectionProfiles/Project_Default.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/percent4/people_relation_extract/HEAD/.idea/inspectionProfiles/Project_Default.xml -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/percent4/people_relation_extract/HEAD/.idea/misc.xml -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/percent4/people_relation_extract/HEAD/.idea/modules.xml -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/percent4/people_relation_extract/HEAD/.idea/vcs.xml -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/percent4/people_relation_extract/HEAD/README.md -------------------------------------------------------------------------------- /att.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/percent4/people_relation_extract/HEAD/att.py -------------------------------------------------------------------------------- /bert/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/percent4/people_relation_extract/HEAD/bert/__init__.py -------------------------------------------------------------------------------- /bert/args.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/percent4/people_relation_extract/HEAD/bert/args.py -------------------------------------------------------------------------------- /bert/extract_feature.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/percent4/people_relation_extract/HEAD/bert/extract_feature.py -------------------------------------------------------------------------------- /bert/graph.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/percent4/people_relation_extract/HEAD/bert/graph.py -------------------------------------------------------------------------------- /bert/modeling.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/percent4/people_relation_extract/HEAD/bert/modeling.py -------------------------------------------------------------------------------- /bert/optimization.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/percent4/people_relation_extract/HEAD/bert/optimization.py -------------------------------------------------------------------------------- /bert/tokenization.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/percent4/people_relation_extract/HEAD/bert/tokenization.py -------------------------------------------------------------------------------- /data/bar_chart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/percent4/people_relation_extract/HEAD/data/bar_chart.png -------------------------------------------------------------------------------- /data/data_into_train_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/percent4/people_relation_extract/HEAD/data/data_into_train_test.py -------------------------------------------------------------------------------- /data/rel_dict.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/percent4/people_relation_extract/HEAD/data/rel_dict.json -------------------------------------------------------------------------------- /data/relation_bar_chart.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/percent4/people_relation_extract/HEAD/data/relation_bar_chart.py -------------------------------------------------------------------------------- /data/test.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/percent4/people_relation_extract/HEAD/data/test.txt -------------------------------------------------------------------------------- /data/train.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/percent4/people_relation_extract/HEAD/data/train.txt -------------------------------------------------------------------------------- /data/人物关系表.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/percent4/people_relation_extract/HEAD/data/人物关系表.xlsx -------------------------------------------------------------------------------- /load_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/percent4/people_relation_extract/HEAD/load_data.py -------------------------------------------------------------------------------- /loss_acc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/percent4/people_relation_extract/HEAD/loss_acc.png -------------------------------------------------------------------------------- /model.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/percent4/people_relation_extract/HEAD/model.png -------------------------------------------------------------------------------- /model_predict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/percent4/people_relation_extract/HEAD/model_predict.py -------------------------------------------------------------------------------- /model_train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/percent4/people_relation_extract/HEAD/model_train.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/percent4/people_relation_extract/HEAD/requirements.txt -------------------------------------------------------------------------------- /sent.txt: -------------------------------------------------------------------------------- 1 | 2 | --------------------------------------------------------------------------------