Rasa——对话机器人开源框架

Rasa是一套对话机器人的开源框架,主要用于构建面向任务(Task Oriented)的对话系统。

NLU自然语言理解

  • 基于规则

  • 神经网络方法

    DIET(Dual Intent Entity Transformer)

在Rasa中两种方法都可以使用,但神经网络方法是核心

一个rasa项目包含的文件:

  • domain

    包含了聊天机器人需要知道的所有东西

    • Responses: these are the things the assistant can say to users
    • Intents: These are categories of things users say
    • Slots: These are variables remembered over the course of a conversation
    • Entities: these are pieces of information extracted from incoming text
    • Forms and Actions: These add application logic and extend what your assistant can do
  • Stories

    training data to teach your assistant what is should do next

  • Rules

    a way to describe short pieces of conversations that always go the same way

  • config

    • language 指定机器人使用的语言
    • pipeline 定义用于检测意图和实体的步骤
    • policies 指定如何响应用户输入的对话管理技术

Do

  • Use actual user conversations as stories
  • Have small stories that aren’t full conversations
  • Use rules for one-off interactions(checking account balance, checking if this is a bot)

Don’t

  • Use rules for multi-turn interactions
  • Use OR statements and checkpointing often
  • Write out every possible conversation flow start to finish
  • Delay user testing

Rasa style CDD:

  • You only need to start with the most popular, important intents & a way to handle things outside them
  • Continue to build from there if that’s what users need
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Elwin Wong

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值