我正在RASA 1.9.4上构建一个bot,下面是我遇到的错误:
机器人没有任何自定义操作,只有完全响应。此问题的解决方案在internet上不可用,请帮助我解决此问题
KeyError Traceback (most recent call last)
/usr/local/lib/python3.6/dist-packages/rasa_core/actions/factories.py in _action_class(action_name)
47 try:
---> 48 cls = utils.class_from_module_path(action_name)
49 return cls()
8 frames
KeyError: 'utter_greet'
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
/usr/local/lib/python3.6/dist-packages/rasa_core/actions/factories.py in _action_class(action_name)
67 "Module doesn't contain a class with this name. "
68 "Remember to prefix actions that should utter a template "
---> 69 "with `utter_`. Error: {}".format(action_name, e))
70
71 actions = []
ValueError: Action 'utter_greet' doesn't correspond to a template / action. Module doesn't contain a class with this name. Remember to prefix actions that should utter a template with `utter_`. Error: 'utter_greet'
以下是在我的域文件和故事中的快照中定义的完全问候:
responses:
utter_greet:
- text: Hey! This is Kia, Your personal assistant. How can i help you?
* greet
- utter_greet
* AI_def
-utter_AI_def
* AI_importance
-utter_AI_importance
这个问题已经解决了
最新版本的Rasa在域文件而不是word模板中有响应。由于我分别安装了Rasa NLU和CORE,CORE无法识别单词responses。这是一个小的不匹配
相关问题 更多 >
编程相关推荐