后备策略不适用于RASA框架 [英] Fall back policy is not working with RASA framework
本文介绍了后备策略不适用于RASA框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想实施两阶段回退策略,因此我遵循了文章
I want to implement two stage fallback policy, and i followed this article
这里是 config.yml
here is 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中添加了规则-
added rule in 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中的响应
and response in domain.yml
responses:
utter_ask_rephrase:
- text: I'm sorry, I didn't quite understand that. Could you rephrase?
在意图信心再见0.23上,它正在执行再见而不是回退策略.
and on intent confidence goodbye0.23 it is executing goodbye not the fallback policy.
我想念什么吗?
推荐答案
我需要提及RulePolicy的一些参数
I need to mention few params for RulePolicy
- name: RulePolicy
core_fallback_threshold: 0.3
core_fallback_action_name: "action_default_fallback"
enable_fallback_prediction: True
现在这可以正常工作
这篇关于后备策略不适用于RASA框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文