Giter Club home page Giter Club logo

automatic-chat-robot's Introduction

自动聊天机器人

《面向对象Java》课程大作业,基于检索式+生成式构建的心理健康主题的自动聊天机器人。The Java course homework, an automatic chat robot based on the mental health theme constructed by retrieval & generative.

原始语料库来自其他小组的爬取的心理健康主题问答对,质量参差不齐。

主要实现思路:

  • 利用GloVe工具实现词嵌入,SIF法构建驹向量;
  • 对于有直接答案的简单问题,直接通过余弦相似度搜索一致的现成答案;
  • 训练了一个seq2seq的循环神经网络,在解码方向加入attention机制,对于相似度低于阈值(80%)的复杂问题,使用网络生成答案。

使用方法:

  • 下载语料库文件,将该data文件夹直接放入项目根目录,地址:Google Drive

  • pip install -r requirements.txt ,或者手动安装以下包

    xlwings==0.19.5
    jieba==0.42.1
    torch==1.6.0
    gensim==3.8.3
    nltk==3.5
    scikit-learn==0.23.1
    numpy==1.18.5
  • 直接运行Demo.py即可。

详细的技术文档见report.pdf

automatic-chat-robot's People

Contributors

nicetomeeetu avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

cocacolabai

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.