学习笔记(10)- 智能会话框架rasa

https://rasa.com/

阿里用过这个,贝壳也在用这个。

创建一个虚拟环境,然后这两句话就可以创建智能会话的工程

python3 -m venv env
source env/bin/activate
pip install rasa-x --extra-index-url https://pypi.rasa.com/simple
rasa init

使用的命令:

$ rasa 
usage: rasa [-h] [--version]
            {init,run,shell,train,interactive,test,visualize,data,x} ...

Rasa command line interface. Rasa allows you to build your own conversational
assistants . The 'rasa' command allows you to easily run most common commands
like creating a new bot, training or evaluating models.

positional arguments:
  {init,run,shell,train,interactive,test,visualize,data,x}
                        Rasa commands
    init                Creates a new project, with example training data,
                        actions, and config files.
    run                 Starts a Rasa server with your trained model.
    shell               Loads your trained model and lets you talk to your
                        assistant on the command line.
    train               Trains a Rasa model using your NLU data and stories.
    interactive         Starts an interactive learning session to create new
                        training data for a Rasa model by chatting.
    test                Tests Rasa models using your test NLU data and
                        stories.
    visualize           Visualize stories.
    data                Utils for the Rasa training files.

目录结构是这样的:
学习笔记(10)- 智能会话框架rasa_第1张图片

学习笔记(10)- 智能会话框架rasa_第2张图片

自然语言理解

学习笔记(10)- 智能会话框架rasa_第3张图片

多轮会话

学习笔记(10)- 智能会话框架rasa_第4张图片

交互图

学习笔记(10)- 智能会话框架rasa_第5张图片

你可能感兴趣的:(学习笔记(10)- 智能会话框架rasa)