回退政策不适用于 RASA 框架
Fall back policy is not working with RASA framework
我想实施两阶段回退政策,我遵循了这个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?
并且在 intent confidence goodbye0.23 上执行再见而不是回退策略。
我是不是漏了什么?
我需要提及 RulePolicy 的几个参数
- name: RulePolicy
core_fallback_threshold: 0.3
core_fallback_action_name: "action_default_fallback"
enable_fallback_prediction: True
现在可以使用了
我想实施两阶段回退政策,我遵循了这个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?
并且在 intent confidence goodbye0.23 上执行再见而不是回退策略。
我是不是漏了什么?
我需要提及 RulePolicy 的几个参数
- name: RulePolicy
core_fallback_threshold: 0.3
core_fallback_action_name: "action_default_fallback"
enable_fallback_prediction: True
现在可以使用了