如果我清除 RASA 表单的插槽,会发生什么?

huangapple go评论97阅读模式
英文:

What will happen if I clear the slots of a form in RASA?

问题

我想在表单上进行迭代,直到插槽的值不再为true。
我知道表单将继续询问其必填插槽中的问题,直到它们填满。

因此,如果我在表单末尾清除所有插槽,表单会再次从首次提及的插槽开始吗?

感谢任何帮助。谢谢。

英文:

I want to iterate over a form until a slot value does not become true.
I know that a form will continue to ask the questions in its required slots until they are filled.

So, if I clear all the slots at the end of the form, will the form start over from the first mentioned slots again?

Any help is appreciated. Thanks.

答案1

得分: 1

你可以在表单验证器方法中检查槽值,并根据这些值采取相应的措施。如果你在验证器上重置所有槽位,表单将会再次要求输入“required_slots”。

英文:

You can check the slot values in the form validator method and act accordingly based on the values. If you reset all slots on the validator the form will ask again for required_slots.

答案2

得分: 1

如果您在最后一个槽位验证中清除了所有槽位(将所有Slot_Value的值设置为None),则表单验证将从第一个槽位重新开始。

英文:

If you clear all the slots (Setting all Slot_Value's to None) at the last Slot Validation the Form Validation will start from the first Slot again.

huangapple
  • 本文由 发表于 2023年4月20日 05:29:03
  • 转载请务必保留本文链接:https://go.coder-hub.com/76058942.html
  • rasa
  • rasa-core
  • rasa-nlu
  • rasa-sdk
  • rasa-x
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定