Git Product home page Git Product logo

Comments (5)

zqhZY avatar zqhZY commented on July 20, 2024

确认下rasa版本试试:rasa_core==0.9.0

from _rasa_chatbot.

nihuizhidao avatar nihuizhidao commented on July 20, 2024

我也遇到这个问题,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.

Ted-Yee avatar Ted-Yee commented on July 20, 2024

scikit-learn:0.19.1

from _rasa_chatbot.

zhangrenjie666666 avatar zhangrenjie666666 commented on July 20, 2024

@Ted-Yee 请问你是怎么解决的

from _rasa_chatbot.

Chenny0808 avatar Chenny0808 commented on July 20, 2024

@nihuizhidao scikit-learn 要为0.19.2,我修改sklearn版本后就好了

from _rasa_chatbot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.