学习rasa最难的地方是slot槽,看了N多资料,都卡在如何填槽上,官网的英文资料也看的云里雾里。
这篇文章解释还算到位:https://www.jianshu.com/p/755e67b9ae63
有多种方式获取slot值
def slot_mappings(self):
# type: () -> Dict[Text: Union[Dict, List[Dict]]]
return { "outdoor_seating": [self.from_entity(entity="seating"),
self.from_intent(intent='affirm', value=True),
self.from_intent(intent='deny', value=False)]}
self.from_text(intent="enter_data"),
据说还有from_trigger_intent方式
网友评论