为了账号安全,请及时绑定邮箱和手机立即绑定

AttributeError: 'NoneType' 对象没有使用 RASA 的属性 'index'

AttributeError: 'NoneType' 对象没有使用 RASA 的属性 'index'

SMILET 2021-08-17 17:11:25
我尝试使用 RASA 来构建一个示例机器人,但我收到了错误消息,Bot loaded. Type a message and press enter (use '/stop' to exit):sadException in thread Thread-2:Traceback (most recent call last):  File "C:\python36\lib\threading.py", line 916, in _bootstrap_inner    self.run()  File "C:\python36\lib\threading.py", line 864, in run    self._target(*self._args, **self._kwargs)  File "C:\python36\lib\site-packages\rasa_core\channels\channel.py", line 291, in on_message_wrapper    on_new_message(message)  File "C:\python36\lib\site-packages\rasa_core\agent.py", line 316, in handle_message    return processor.handle_message(message)  File "C:\python36\lib\site-packages\rasa_core\processor.py", line 86, in handle_message    self._predict_and_execute_next_action(message, tracker)  File "C:\python36\lib\site-packages\rasa_core\processor.py", line 305, in _predict_and_execute_next_action    action, policy, confidence = self.predict_next_action(tracker)  File "C:\python36\lib\site-packages\rasa_core\processor.py", line 168, in predict_next_action    probabilities, policy = self._get_next_action_probabilities(tracker)  File "C:\python36\lib\site-packages\rasa_core\processor.py", line 478, in _get_next_action_probabilities    tracker, self.domain)  File "C:\python36\lib\site-packages\rasa_core\policies\ensemble.py", line 288, in probabilities_using_best_policy    if (result.index(max_confidence) ==AttributeError: 'NoneType' object has no attribute 'index'我用 :PYTHON  3.6.0RASA CORE   0.12.0RASA NLU    0.13.0TENSORFLOW  1.10.0PROTOBUF    3.6.0有可能解决这个问题吗?谢谢
查看完整描述

2 回答

  • 2 回答
  • 0 关注
  • 356 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号