说明
本项目是在前端界面显示,基于医疗知识图谱+bert文本相似度+seq2seq attention的中文聊天机器人
代码、项目报告详见githubhttps://github.com/Changanyue/medical-chatbot
由于data和预训练参数过大,未上传至github
运行效果
视频:
国内bilibili:https://www.bilibili.com/video/BV1Re411W7LX/
国外YouTube:https://www.youtube.com/watch?v=Vjo8qHwGIAg&feature=youtu.be
说一下关键实现点
前端 script.js
//发送
addMessage: function() {
let msg = this.$textarea.val()
let that = this
$.ajax({
url: 'http://localhost:5000/api',