Giter VIP home page Giter VIP logo

chatbot's Introduction

🤖️ chatbot

language MIT License stars stars

基于 PyTorch 的任务型聊天机器人。

1 简介

常见的聊天机器人有两种:

  1. 闲聊型 open domain
  2. 任务型 task oriented

本项目属于第二种,即面向任务的聊天机器人。这类型机器人的常见应用是智能客服,目的是为了解决用户的明确需求

flow

上图为面向任务的聊天机器人的一般流程,该项目目前实现了第一部分的 NLU 功能,包含 Slot FillingIntent Prediction

2 DEMO

demo

⚠️ DEMO 中仅包含我编写的几十条训练样本(在 back/data/train.json),主要内容是关于我家🐱锅贴,这些只发挥了该项目的一部分功能。

点我立即尝试 DEMO

3 架构

2.1 前端

  • VueJS
  • iView
  • SocketIO

2. 后端

  • Flask
  • SocketIO
  • PyTorch

⚠️ 后端代码基于 RNN-for-Joint-NLU 进行了改进。

4 安装

# 1 下载文件

git clone https://github.com/HaveTwoBrush/chatbot.git

# 2 启动后端

cd chatbot/back
# 安装依赖
pip install -r requirements.txt
# 运行
python server.py

# 3 启动前端

cd ../front
# 安装依赖
yarn
# 运行
yarn serve

# 4 接下来,根据提示访问网页即可

5 目录

.
├── front #前端
│   ├── public
│   ├── src
│   ├── babel.config.js
│   ├── package.json
│   └── yarn.lock
├── back #后端
│   ├── config
│   ├── data
│   ├── model
│   ├── util
│   ├── save
│   ├── server.py
│   ├── test.py
│   ├── train.py
│   └── requirements.txt
├── src # 资源
├── LICENSE
├── README.md
└── .gitignore

6 参考

7 执照

MIT

8 交流

请添加微信号:kinggreenhall,备注「chatbot」,我邀请你进入交流群。

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.