Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

按照教程发送请求后,返回"error": "y should be a 1d array, got an array of shape (1, 5) instead." #108

Open
songzhouran opened this issue Oct 15, 2020 · 1 comment

Comments

@songzhouran
Copy link

用的win10
rasa-nlu 0.12

@ljhry
Copy link

ljhry commented Oct 15, 2020

用的win10
rasa-nlu 0.12

  1. 找到sklearn_intent_classifier.py
    C:\Users\Administrator\Desktop\Rasa_NLU_Chi\rasa_nlu\classifiers\sklearn_intent_classifier.py
    return self.le.inverse_transform(y) 修改为 return self.le.inverse_transform(np.squeeze(y))

  2. 或者参考 ValueError: bad input shape (1, 5) RasaHQ/rasa#1436 Updating rasa-nlu to 0.14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants