crownpku / Rasa_NLU_Chi

Turn Chinese natural language into structured data 中文自然语言理解
Apache License 2.0
1.51k stars 422 forks source link

请求httpserver测试模型异常问题 #73

Open b1xian opened 5 years ago

b1xian commented 5 years ago

请求httpserver测试模型时遇到错误, image 请问有遇到过的前辈吗?

Futurevent commented 5 years ago

遇到同样的问题

Futurevent commented 5 years ago

此问题已解决。 遇到返回:bad value(s) in fds_to_keep,可查找下看看是否是因为importlib.imoport_module('sklearn')导致的,如果是,是因为最新的scikit-learn 0.20.01 与 twist 框架冲突造成的。 解决办法: 先卸载已经安装的sklearn,,然后安装旧版本: pip3 install scikit-learn==0.19.1

lengyongcai commented 5 years ago

你好,问下,你是安装楼主步骤来的吗?我也是的却出现心梦&情缘 2019/5/7 10:43:12 [@nmyjs_160_35 Rasa_NLU_Chi-master]$ curl -XPOST localhost:5000/parse -d '{"q":"我发烧了该吃什么药?", "project": "rasa_nlu_test", "model": "model_20190507-103921"}' | python -mjson.tool % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 100 0 0 100 100 0 193 --:--:-- --:--:-- --:--:-- 193 curl: (52) Empty reply from server No JSON object could be decoded

这样的错误,为啥啊,一直没有找到原因