├── .gitignore ├── EDA.ipynb ├── README.md ├── ckbqa ├── __init__.py ├── dao │ ├── __init__.py │ ├── db.py │ ├── db_tools.py │ ├── mongo_models.py │ ├── mongo_utils.py │ ├── sqlite_models.py │ └── sqlite_utils.py ├── dataset │ ├── __init__.py │ ├── data_prepare.py │ └── kb_data_prepare.py ├── layers │ ├── __init__.py │ ├── losses.py │ └── modules.py ├── models │ ├── __init__.py │ ├── base_trainer.py │ ├── data_helper.py │ ├── entity_score │ │ ├── __init__.py │ │ └── model.py │ ├── evaluation_matrics.py │ ├── ner │ │ ├── __init__.py │ │ ├── crf.py │ │ └── model.py │ └── relation_score │ │ ├── __init__.py │ │ ├── model.py │ │ ├── predictor.py │ │ └── trainer.py ├── qa │ ├── __init__.py │ ├── algorithms.py │ ├── cache.py │ ├── el.py │ ├── lac_tools.py │ ├── neo4j_graph.py │ ├── qa.py │ └── relation_extractor.py └── utils │ ├── __init__.py │ ├── async_tools.py │ ├── decorators.py │ ├── gpu_selector.py │ ├── logger.py │ ├── saver.py │ ├── sequence.py │ └── tools.py ├── config.py ├── data.py ├── docs ├── CCKS 2019 知识图谱评测技术报告:实体、关系、事件及问答 .pdf └── bad_case.md ├── evaluate.py ├── examples ├── __init__.py ├── answer_format.py ├── bad_case.py ├── del_method.py ├── kb_data.py ├── lac_test.py ├── single_example.py └── top_path.py ├── manage.py ├── port_map.sh ├── qa.py └── tests ├── __init__.py ├── test_.py └── test_ceg.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/.gitignore -------------------------------------------------------------------------------- /EDA.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/EDA.ipynb -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/README.md -------------------------------------------------------------------------------- /ckbqa/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ckbqa/dao/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ckbqa/dao/db.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/ckbqa/dao/db.py -------------------------------------------------------------------------------- /ckbqa/dao/db_tools.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/ckbqa/dao/db_tools.py -------------------------------------------------------------------------------- /ckbqa/dao/mongo_models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/ckbqa/dao/mongo_models.py -------------------------------------------------------------------------------- /ckbqa/dao/mongo_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/ckbqa/dao/mongo_utils.py -------------------------------------------------------------------------------- /ckbqa/dao/sqlite_models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/ckbqa/dao/sqlite_models.py -------------------------------------------------------------------------------- /ckbqa/dao/sqlite_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/ckbqa/dao/sqlite_utils.py -------------------------------------------------------------------------------- /ckbqa/dataset/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ckbqa/dataset/data_prepare.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/ckbqa/dataset/data_prepare.py -------------------------------------------------------------------------------- /ckbqa/dataset/kb_data_prepare.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/ckbqa/dataset/kb_data_prepare.py -------------------------------------------------------------------------------- /ckbqa/layers/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ckbqa/layers/losses.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/ckbqa/layers/losses.py -------------------------------------------------------------------------------- /ckbqa/layers/modules.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/ckbqa/layers/modules.py -------------------------------------------------------------------------------- /ckbqa/models/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ckbqa/models/base_trainer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/ckbqa/models/base_trainer.py -------------------------------------------------------------------------------- /ckbqa/models/data_helper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/ckbqa/models/data_helper.py -------------------------------------------------------------------------------- /ckbqa/models/entity_score/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ckbqa/models/entity_score/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/ckbqa/models/entity_score/model.py -------------------------------------------------------------------------------- /ckbqa/models/evaluation_matrics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/ckbqa/models/evaluation_matrics.py -------------------------------------------------------------------------------- /ckbqa/models/ner/__init__.py: -------------------------------------------------------------------------------- 1 | """主实体识别""" 2 | -------------------------------------------------------------------------------- /ckbqa/models/ner/crf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/ckbqa/models/ner/crf.py -------------------------------------------------------------------------------- /ckbqa/models/ner/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/ckbqa/models/ner/model.py -------------------------------------------------------------------------------- /ckbqa/models/relation_score/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ckbqa/models/relation_score/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/ckbqa/models/relation_score/model.py -------------------------------------------------------------------------------- /ckbqa/models/relation_score/predictor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/ckbqa/models/relation_score/predictor.py -------------------------------------------------------------------------------- /ckbqa/models/relation_score/trainer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/ckbqa/models/relation_score/trainer.py -------------------------------------------------------------------------------- /ckbqa/qa/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/ckbqa/qa/__init__.py -------------------------------------------------------------------------------- /ckbqa/qa/algorithms.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/ckbqa/qa/algorithms.py -------------------------------------------------------------------------------- /ckbqa/qa/cache.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/ckbqa/qa/cache.py -------------------------------------------------------------------------------- /ckbqa/qa/el.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/ckbqa/qa/el.py -------------------------------------------------------------------------------- /ckbqa/qa/lac_tools.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/ckbqa/qa/lac_tools.py -------------------------------------------------------------------------------- /ckbqa/qa/neo4j_graph.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/ckbqa/qa/neo4j_graph.py -------------------------------------------------------------------------------- /ckbqa/qa/qa.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/ckbqa/qa/qa.py -------------------------------------------------------------------------------- /ckbqa/qa/relation_extractor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/ckbqa/qa/relation_extractor.py -------------------------------------------------------------------------------- /ckbqa/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ckbqa/utils/async_tools.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/ckbqa/utils/async_tools.py -------------------------------------------------------------------------------- /ckbqa/utils/decorators.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/ckbqa/utils/decorators.py -------------------------------------------------------------------------------- /ckbqa/utils/gpu_selector.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/ckbqa/utils/gpu_selector.py -------------------------------------------------------------------------------- /ckbqa/utils/logger.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/ckbqa/utils/logger.py -------------------------------------------------------------------------------- /ckbqa/utils/saver.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/ckbqa/utils/saver.py -------------------------------------------------------------------------------- /ckbqa/utils/sequence.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/ckbqa/utils/sequence.py -------------------------------------------------------------------------------- /ckbqa/utils/tools.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/ckbqa/utils/tools.py -------------------------------------------------------------------------------- /config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/config.py -------------------------------------------------------------------------------- /data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/data.py -------------------------------------------------------------------------------- /docs/CCKS 2019 知识图谱评测技术报告:实体、关系、事件及问答 .pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/docs/CCKS 2019 知识图谱评测技术报告:实体、关系、事件及问答 .pdf -------------------------------------------------------------------------------- /docs/bad_case.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/docs/bad_case.md -------------------------------------------------------------------------------- /evaluate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/evaluate.py -------------------------------------------------------------------------------- /examples/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/examples/__init__.py -------------------------------------------------------------------------------- /examples/answer_format.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/examples/answer_format.py -------------------------------------------------------------------------------- /examples/bad_case.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/examples/bad_case.py -------------------------------------------------------------------------------- /examples/del_method.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/examples/del_method.py -------------------------------------------------------------------------------- /examples/kb_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/examples/kb_data.py -------------------------------------------------------------------------------- /examples/lac_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/examples/lac_test.py -------------------------------------------------------------------------------- /examples/single_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/examples/single_example.py -------------------------------------------------------------------------------- /examples/top_path.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/examples/top_path.py -------------------------------------------------------------------------------- /manage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/manage.py -------------------------------------------------------------------------------- /port_map.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/port_map.sh -------------------------------------------------------------------------------- /qa.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/qa.py -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/test_.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/tests/test_.py -------------------------------------------------------------------------------- /tests/test_ceg.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WangShengguang/ccks-2020/HEAD/tests/test_ceg.py --------------------------------------------------------------------------------