neo4j_protobot
neo4j_protobot copied to clipboard
error after I submit clear
Hello,
(py36) [bash]:python chatbot.py
Ready! clear
I'm getting error after I submit clear
Ready! clear Traceback (most recent call last): File "/Users/jmedlen/PycharmProjects/neo4j_protobot-master/chatbot.py", line 66, in
results = interpreter.parse(input_str) File "/Users/jmedlen/anaconda/envs/chatbot36/lib/python3.6/site-packages/rasa_nlu/model.py", line 295, in parse component.process(message, **self.context) File "/Users/jmedlen/anaconda/envs/chatbot36/lib/python3.6/site-packages/rasa_nlu/classifiers/sklearn_intent_classifier.py", line 119, in process intent_ids, probabilities = self.predict(X) File "/Users/jmedlen/anaconda/envs/chatbot36/lib/python3.6/site-packages/rasa_nlu/classifiers/sklearn_intent_classifier.py", line 154, in predict pred_result = self.predict_prob(X) File "/Users/jmedlen/anaconda/envs/chatbot36/lib/python3.6/site-packages/rasa_nlu/classifiers/sklearn_intent_classifier.py", line 143, in predict_prob return self.clf.predict_proba(X) File "/Users/jmedlen/anaconda/envs/chatbot36/lib/python3.6/site-packages/sklearn/utils/metaestimators.py", line 118, in out = lambda *args, **kwargs: self.fn(obj, *args, **kwargs) File "/Users/jmedlen/anaconda/envs/chatbot36/lib/python3.6/site-packages/sklearn/model_selection/search.py", line 508, in predict_proba return self.best_estimator.predict_proba(X) File "/Users/jmedlen/anaconda/envs/chatbot36/lib/python3.6/site-packages/sklearn/svm/base.py", line 613, in _predict_proba X = self._validate_for_predict(X) File "/Users/jmedlen/anaconda/envs/chatbot36/lib/python3.6/site-packages/sklearn/svm/base.py", line 478, in validate_for_predict (n_features, self.shape_fit[1])) ValueError: X.shape[1] = 300 should be equal to 384, the number of features at training time
Python 3.6 on Mac print(rasa_nlu.version) 0.11.5 print(rasa_core.version) 0.11.11
Thank you, -Jiri-