xiaoxiong74 / rasa_chatbot

基于rasa_nlu,rasa_core,rasa_core_sdk构建的聊天机器人
141 stars 45 forks source link

测试nlu模型时报错 #7

Open gcong66 opened 5 years ago

gcong66 commented 5 years ago

测试NLU模型报了如下错误 image 我的命令是: python -m rasa_nlu.server --path models/nlu curl -XPOST 192.168.109.232:5000/parse -d '{"q":"我要查案子", "project": "default", "model": "current"}' 我的模型文件夹路径是:xx\models\nlu\default\current 请问这是什么原因?

fishguysword commented 5 years ago

你估计是在windows下跑的,在linux上木有这个问题

xiaoxiong74 commented 5 years ago

此demo未在windows上测试,windows应该问题不大,应该是字符集编码问题,这个百度应该可以解决了

ly987 commented 3 years ago

楼主解决了吗,我也遇到这个问题,是这行代码报的错:request.content.read().decode('utf-8')