Rasa 文档 中英文翻译版本 5 - User Guide: Architecture
https://rasa.com/docs/rasa/user-guide/architecture/
T by yi 2020.9.15
Architecture 架构
Message Handling 消息处理
This diagram shows the basic steps of how an assistant built with Rasa responds to a message:
下面的图显示了一个机器人处理如何使用Rasa回复消息的基本步骤
The steps are: 步骤
- The message is received and passed to an Interpreter, which converts it into a dictionary including the original text, the intent, and any entities that were found. This part is handled by NLU.
2. The Tracker is the object which keeps track of conversation state. It receives the info that a new message has come in.
3. The policy receives the current state of the tracker.
4. The policy chooses which action to take next.
5. The chosen action is logged by the tracker.
6. A response is sent to the user.
1.消息被接收并传递给解释器Interpreter,该解释器将其转换为包括原始文本、意图和找到的任何实体的字典。此部分由 NLU 处理。
2. 跟踪器Tracker 是跟踪会话状态的对象。它负责接收是否有了新的对话消息。
3. 策略policy 接收跟踪器tracker的当前状态。
4. 策略policy 选择下一步行动。
5. 所选下一步行动操作由跟踪器tracker记录。
6. 向用户发送响应。