Giter Site home page Giter Site logo

rasa-conversational-ai's Introduction

快速开始

使用 Rasa 构建中文对话机器人,项目包括

  • 闲聊
  • 知识库查询
  • 任务设置
  • 知识图谱使用
  • 自定义 Component

欢迎加入,一起共建中文智能对话机器人 🤖。

使用方法

  1. 安装依赖包

推荐使用 python3.8

python -m pip install -U pip
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple rasa==2.8
pip3 install rasa-x --extra-index-url https://pypi.rasa.com/simple

如果出现 santic 相关错误,请重新安装 sanic-jwt 包

pip install sanic-jwt==1.6.0

安装完包,执行以下命令,判断是否安装成功。

rasa --version 

rasa、rasa sdk 和 rasa-x 要符合兼容矩阵

  1. 训练 Rasa 对话模型

--num-thread 表示要使用的训练线程的数量,模型会存储在 /models/default 中。

rasa train --num-threads 4
  1. 运行 Rasa action server
rasa run actions
  1. 使用 rasa x 进行对话机器人的测试
rasa x
  1. 持续更新对话机器人

领域对话测试

闲聊领域

rasa data validate --domain domain/chitchat/domain.yml --data data/chitchat/ 
rasa train --domain domain/chitchat/domain.yml --data data/chitchat/ --config config/chitchat.yml
rasa shell --debug

健康领域

rasa data validate --domain domain/health/domain.yml --data data/health/
rasa train --domain domain/health/domain.yml --data data/health/
rasa train core -d domain/health/domain.yml -s data/health/story.yml
RASA_X_PASSWORD=rasa rasa x --domain domain/health/domain.yml 

TODO

这里 有项目的 TODO 列表,欢迎提交你的想法,提交 PR,一起建设一个强大的对话机器人。

rasa-conversational-ai's People

Contributors

cyang828 avatar

Watchers

 avatar

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.