如何解决回退策略不适用于 RASA 框架
我想实施两阶段回退政策,我遵循了这个article
这里是 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
现在可以了
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。