KBQA-BERT:基于知识图谱的QA系统,BERT模型-源码

上传者: 42107165 | 上传时间: 2021-09-05 19:50:45 | 文件大小: 5.79MB | 文件类型: ZIP
KBQA-BERT 基于知识图谱的QA系统,BERT模型需要下载BERT预训练模型(中文)chinese_L-12_H-768_A-12 解压缩后放在./ModelParams文件夹里面(注意整个chinese_L-12_H-768_A-12文件夹放进去) 另外需要在根目录建立输出文件夹存放训练的模型参数文件分为输出/ NER(命名实体识别)文件夹和输出/ SIM(相似度)文件夹 1.run_ner.sh训练(命名实体识别) 2.terminal_ner.sh(命名实体识别测试) 3.args.py train = true预训练模式 test = true相似度测试 4.run_similarity相似度的训练或测试(根据第3步的设置决定) 5.qa_my.sh(连接了本地的neo4j知识库) 问答 参考: :

文件下载

资源详情

[{"title":"( 70 个子文件 5.79MB ) KBQA-BERT:基于知识图谱的QA系统,BERT模型-源码","children":[{"title":"KBQA-BERT-master","children":[{"title":"neo4j_qa.py <span style='color:#111;'> 834B </span>","children":null,"spread":false},{"title":"tf_metrics.py <span style='color:#111;'> 8.01KB </span>","children":null,"spread":false},{"title":"global_config.py <span style='color:#111;'> 2.00KB </span>","children":null,"spread":false},{"title":"lstm_crf_layer.py <span style='color:#111;'> 6.58KB </span>","children":null,"spread":false},{"title":"bert","children":[{"title":"run_squad.py <span style='color:#111;'> 45.29KB </span>","children":null,"spread":false},{"title":"multilingual.md <span style='color:#111;'> 10.54KB </span>","children":null,"spread":false},{"title":"tokenization.py <span style='color:#111;'> 10.31KB </span>","children":null,"spread":false},{"title":"run_classifier.py <span style='color:#111;'> 31.09KB </span>","children":null,"spread":false},{"title":"run_pretraining.py <span style='color:#111;'> 18.23KB </span>","children":null,"spread":false},{"title":"create_pretraining_data.py <span style='color:#111;'> 14.85KB </span>","children":null,"spread":false},{"title":"modeling.py <span style='color:#111;'> 37.28KB </span>","children":null,"spread":false},{"title":"tokenization_test.py <span style='color:#111;'> 4.28KB </span>","children":null,"spread":false},{"title":"requirements.txt <span style='color:#111;'> 110B </span>","children":null,"spread":false},{"title":"extract_features.py <span style='color:#111;'> 13.57KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"optimization_test.py <span style='color:#111;'> 1.68KB </span>","children":null,"spread":false},{"title":"optimization.py <span style='color:#111;'> 5.90KB </span>","children":null,"spread":false},{"title":"modeling_test.py <span style='color:#111;'> 8.98KB </span>","children":null,"spread":false},{"title":"CONTRIBUTING.md <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false},{"title":"sample_text.txt <span style='color:#111;'> 4.29KB </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 11.09KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 39.89KB </span>","children":null,"spread":false}],"spread":false},{"title":"kbqa_test.py <span style='color:#111;'> 7.29KB </span>","children":null,"spread":false},{"title":"run_ner.sh <span style='color:#111;'> 636B </span>","children":null,"spread":false},{"title":"terminal_ner.sh <span style='color:#111;'> 676B </span>","children":null,"spread":false},{"title":"Config","children":[{"title":"SIM","children":[{"title":"README.md <span style='color:#111;'> 123B </span>","children":null,"spread":false}],"spread":true},{"title":"NER","children":[{"title":"ner_data.conf <span style='color:#111;'> 155B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 123B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"run_ner.py <span style='color:#111;'> 34.36KB </span>","children":null,"spread":false},{"title":"qa_my.sh <span style='color:#111;'> 661B </span>","children":null,"spread":false},{"title":"subpcs.py <span style='color:#111;'> 302B </span>","children":null,"spread":false},{"title":"run_similarity.py <span style='color:#111;'> 27.99KB </span>","children":null,"spread":false},{"title":"recommend_articles.log.2019-08-23 <span style='color:#111;'> 3.22MB </span>","children":null,"spread":false},{"title":"recommend_articles.log.2019-08-21 <span style='color:#111;'> 6.43MB </span>","children":null,"spread":false},{"title":"adcf.py <span style='color:#111;'> 3.14KB </span>","children":null,"spread":false},{"title":"fujc.py <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 11.09KB </span>","children":null,"spread":false},{"title":"terminal_predict.py <span style='color:#111;'> 15.09KB </span>","children":null,"spread":false},{"title":"recommend_articles.log.2019-08-06 <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"qa_my.py <span style='color:#111;'> 16.20KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 831B </span>","children":null,"spread":false},{"title":"Data","children":[{"title":"data_process.py <span style='color:#111;'> 3.12KB </span>","children":null,"spread":false},{"title":"construct_dataset.py <span style='color:#111;'> 1.98KB </span>","children":null,"spread":false},{"title":"load_dbdata.py <span style='color:#111;'> 3.30KB </span>","children":null,"spread":false},{"title":"Sim_Data","children":[{"title":"train.txt <span style='color:#111;'> 4.60MB </span>","children":null,"spread":false},{"title":"val.txt <span style='color:#111;'> 720.31KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 123B </span>","children":null,"spread":false},{"title":"dev.txt <span style='color:#111;'> 720.31KB </span>","children":null,"spread":false}],"spread":false},{"title":"DB_Data","children":[{"title":"README.md <span style='color:#111;'> 123B </span>","children":null,"spread":false},{"title":"clean_triple.csv <span style='color:#111;'> 1.13MB </span>","children":null,"spread":false}],"spread":false},{"title":"NER_Data","children":[{"title":"testing.txt <span style='color:#111;'> 1.06MB </span>","children":null,"spread":false},{"title":"train.txt <span style='color:#111;'> 1.52MB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 123B </span>","children":null,"spread":false},{"title":"dev.txt <span style='color:#111;'> 1.06MB </span>","children":null,"spread":false},{"title":"q_t_a_df_training.csv <span style='color:#111;'> 2.21MB </span>","children":null,"spread":false},{"title":"q_t_a_df_testing.csv <span style='color:#111;'> 1.51MB </span>","children":null,"spread":false}],"spread":false},{"title":"construct_dataset_attribute.py <span style='color:#111;'> 1.72KB </span>","children":null,"spread":false},{"title":"NLPCC2016KBQA","children":[{"title":"nlpcc-iccpol-2016.kbqa.training-data <span style='color:#111;'> 3.19MB </span>","children":null,"spread":false},{"title":"nlpcc-iccpol-2016.kbqa.kb <span style='color:#111;'> 29.15KB </span>","children":null,"spread":false},{"title":"nlpcc-iccpol-2016.kbqa.testing-data <span style='color:#111;'> 2.16MB </span>","children":null,"spread":false}],"spread":false},{"title":"triple_clean.py <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false}],"spread":false},{"title":"image","children":[{"title":"NER.jpg <span style='color:#111;'> 11.10KB </span>","children":null,"spread":false},{"title":"KB.png <span style='color:#111;'> 15.46KB </span>","children":null,"spread":false}],"spread":false},{"title":"args.py <span style='color:#111;'> 786B </span>","children":null,"spread":false},{"title":"prt.py <span style='color:#111;'> 124B </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false},{"title":"kl.py <span style='color:#111;'> 42B </span>","children":null,"spread":false},{"title":"conlleval.pl <span style='color:#111;'> 12.52KB </span>","children":null,"spread":false},{"title":"his.py <span style='color:#111;'> 707B </span>","children":null,"spread":false},{"title":"conlleval.py <span style='color:#111;'> 9.97KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明