rasa_chatbot icon indicating copy to clipboard operation
rasa_chatbot copied to clipboard

测试nlu模型时报错

Open gcong66 opened this issue 5 years ago • 3 comments

测试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 请问这是什么原因?

gcong66 avatar May 16 '19 09:05 gcong66

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

fishguysword avatar Jun 20 '19 12:06 fishguysword

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

xiaoxiong74 avatar Jul 01 '19 02:07 xiaoxiong74

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

ly987 avatar Feb 19 '21 06:02 ly987