python - 回退策略不适用于 RASA 框架
问题描述
我想实施两阶段后备政策,我跟着这篇文章
这是 config.yml
language: en
pipeline:
# other policies
- name: DIETClassifier
epochs: 100
entity_recognition: False
- name: ResponseSelector
epochs: 100
- name: FallbackClassifier
threshold: 0.7
policies:
- name: TEDPolicy
max_history: 10
epochs: 20
- name: AugmentedMemoizationPolicy
max_history: 6
- name: RulePolicy
在 rules.yml 中添加规则 -
rule: Implementation of the Two-Stage-Fallback
steps: - intent: nlu_fallback
- action: action_two_stage_fallback
- active_loop: action_two_stage_fallback
和 domain.yml 中的响应
responses:
utter_ask_rephrase:
- text: I'm sorry, I didn't quite understand that. Could you rephrase?
并且在意图信心 goodbye0.23 上,它正在执行再见而不是后备策略。
我错过了什么吗?
解决方案
我需要提到 RulePolicy 的一些参数
- name: RulePolicy
core_fallback_threshold: 0.3
core_fallback_action_name: "action_default_fallback"
enable_fallback_prediction: True
现在这正在工作
推荐阅读
- xcode - 在 XCode 中找不到 Mapbox 框架错误
- c++ - 如何将 ocaml 代码编译为本机以供 C++ 使用
- assembly - 使用 AVR 反转字节中的位
- postgresql - 如何配置 PostgreSQL 以接受除 postgres / admin 之外的所有传入连接
- javascript - 在新页面中打开媒体而不是下载(MediaRecorder-sample)
- sql - 如何从表 B 值更新表 A 值?
- android - 找不到符号 CountryFragmentBindingImpl
- r - 有没有更快的方法来合并数据帧和循环组合?
- java - Java PreparedStatement 保留表名大小写
- php - 如何解决未捕获的错误:调用未定义的方法 stdClass::query()