在使用响应函数训练模型之后低于错误。它没有给我任何响应,而是抛出像
这样的错误String status = sharedPreferences.getString("status","waiting");
String comment = sharedPreferences.getString("comments","waiting");
我将数据存储在YAML中,如下所示:
"runfile('C:/Users/Chandrapal Panwar/Desktop/python/python_coding/chat2.py', wdir='C:/Users/Chandrapal Panwar/Desktop/python/python_coding')
wow
Traceback (most recent call last):
File "C:\Python\Python36\lib\site-
packages\IPython\core\interactiveshell.py", line 2862, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-3-1c8a35a0db59>", line 1, in <module>
wow
NameError: name 'diabetes' is not defined"
训练chatterbot可以正常工作,但是在获得响应时会抛出错误:
categories:
- Clinical trials
conversations:
- - what is the definition of a diabetes.?
- "a disease in which the body’s ability to produce or respond to the hormone insulin is impaired, resulting in abnormal metabolism of carbohydrates and elevated levels of glucose in the blood."