Comments (5)
确认下rasa版本试试:rasa_core==0.9.0
from _rasa_chatbot.
我也遇到这个问题,rasa版本是对的, python3.5。报错信息:
2019-04-27 10:18:12+0800 [-] Log opened.
2019-04-27 10:18:12+0800 [-] Site starting on 1235
2019-04-27 10:18:12+0800 [-] Starting factory <twisted.web.server.Site object at 0x7f62a257b400>
2019-04-27 10:18:17+0800 [-] {'q': '我的流量还剩多少'}
Building prefix dict from the default dictionary ...
Loading model from cache /tmp/jieba.cache
Loading model cost 1.152 seconds.
Prefix dict has been built succesfully.
2019-04-27 10:18:18+0800 [-] Unhandled Error
Traceback (most recent call last):
File "/home/ubuntu/.local/lib/python3.5/site-packages/twisted/web/server.py", line 259, in render
body = resrc.render(self)
File "/home/ubuntu/.local/lib/python3.5/site-packages/klein/resource.py", line 210, in render
d = defer.maybeDeferred(_execute)
File "/home/ubuntu/.local/lib/python3.5/site-packages/twisted/internet/defer.py", line 151, in maybeDeferred
result = f(*args, **kw)
File "/home/ubuntu/.local/lib/python3.5/site-packages/klein/resource.py", line 204, in _execute
**kwargs)
--- ---
File "/home/ubuntu/.local/lib/python3.5/site-packages/twisted/internet/defer.py", line 151, in maybeDeferred
result = f(*args, **kw)
File "/home/ubuntu/.local/lib/python3.5/site-packages/klein/app.py", line 128, in execute_endpoint
return endpoint_f(self._instance, *args, **kwargs)
File "/home/ubuntu/.local/lib/python3.5/site-packages/klein/app.py", line 227, in _f
return _call(instance, f, request, *a, **kw)
File "/home/ubuntu/.local/lib/python3.5/site-packages/klein/app.py", line 50, in _call
result = f(*args, **kwargs)
File "httpserver.py", line 48, in save_item
pred = self.interpreter.parse(data["q"])
File "/home/ubuntu/.local/lib/python3.5/site-packages/rasa_nlu/model.py", line 340, in parse
component.process(message, **self.context)
File "/home/ubuntu/.local/lib/python3.5/site-packages/rasa_nlu/classifiers/sklearn_intent_classifier.py", line 172, in process
intents = self.transform_labels_num2str(intent_ids)
File "/home/ubuntu/.local/lib/python3.5/site-packages/rasa_nlu/classifiers/sklearn_intent_classifier.py", line 108, in transform_labels_num2str
return self.le.inverse_transform(y)
File "/home/ubuntu/.local/lib/python3.5/site-packages/sklearn/preprocessing/label.py", line 273, in inverse_transform
y = column_or_1d(y, warn=True)
File "/home/ubuntu/.local/lib/python3.5/site-packages/sklearn/utils/validation.py", line 797, in column_or_1d
raise ValueError("bad input shape {0}".format(shape))
builtins.ValueError: bad input shape (1, 14)
不知道如何解决?挺着急的。。。
from _rasa_chatbot.
scikit-learn:0.19.1
from _rasa_chatbot.
@Ted-Yee 请问你是怎么解决的
from _rasa_chatbot.
@nihuizhidao scikit-learn 要为0.19.2,我修改sklearn版本后就好了
from _rasa_chatbot.
Related Issues (20)
- actions没搞上
- 运行这一步时候报错 curl -X POST localhost:1235/parse -d '{"q":"我的流量还剩多少"}' | python -m json.tool请大神帮帮忙看看 HOT 4
- 演示代码 HOT 1
- demo code代码能发邮箱一下么,谢谢! HOT 1
- ERROR:rasa_core.processor:Encountered an exception while running action 'action_affirm_question'. Bot will continue, but the actions events are lost. Make sure to fix the exception in your custom code.
- 你好,有没有试过look up table这个特性,我在中文环境下没有成功过
- how to modify parameter for Part II: train segment classifier
- python bot.py online_train err
- 请问如何生成story?
- 运行python bot.py train-dialogue 报错
- mobile_nlu_model_config.json的配置文件
- 关于运行环境
- TypeError: load() missing 1 required positional argument: 'config'
- The config file 'ivr_chatbot.yml' is missing mandatory parameters: 'policies'. Add missing parameters to config file and try again.
- 老哥,你在慕课网的那份ppt方便提供一下吗?关于讲解这个的,谢谢大佬 HOT 6
- 请问您在视频中说会写rasa里的具体原理可以在哪里获取呢? HOT 2
- 关于MITIE的原始语料 HOT 2
- rasa-core 0.9.0 has requirement scikit-learn~=0.19.0
- 大佬,你的项目是不是少了一些文件? HOT 3
- 老哥,你确定你的代码是依赖于python3? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from _rasa_chatbot.