rasa: dialogflow migration error
Rasa NLU version: 0.13.7 Operating system (windows, osx, …): linux ubuntu 16.04 Content of model configuration file: my source code
Issue: When i try training rasa_nlu with data exported from dialogflow, i get the following error message.
....
2018-11-01 20:46:38 WARNING rasa_nlu.training_data.formats.dialogflow - No training examples found for dialogflow file data/dialogflow/support/intents/support.contacts.phone.json!
2018-11-01 20:46:38 INFO rasa_nlu.training_data.training_data - Training data stats:
- intent examples: 0 (0 distinct intents)
- Found intents:
- entity examples: 0 (0 distinct entities)
- found entities:
2018-11-01 20:46:38 INFO rasa_nlu.training_data.loading - Training data format of data/dialogflow/support/intents/support.contacts.social_media_usersays_en.json is dialogflow_intent_examples
2018-11-01 20:46:38 INFO rasa_nlu.training_data.training_data - Training data stats:
- intent examples: 0 (0 distinct intents)
- Found intents:
- entity examples: 0 (0 distinct entities)
- found entities:
2018-11-01 20:46:38 INFO rasa_nlu.model - Starting to train component tokenizer_whitespace
2018-11-01 20:46:38 INFO rasa_nlu.model - Finished training component.
2018-11-01 20:46:38 INFO rasa_nlu.model - Starting to train component ner_crf
2018-11-01 20:46:38 INFO rasa_nlu.model - Finished training component.
2018-11-01 20:46:38 INFO rasa_nlu.model - Starting to train component ner_synonyms
2018-11-01 20:46:38 INFO rasa_nlu.model - Finished training component.
2018-11-01 20:46:38 INFO rasa_nlu.model - Starting to train component intent_featurizer_count_vectors
2018-11-01 20:46:38 INFO rasa_nlu.model - Finished training component.
2018-11-01 20:46:38 INFO rasa_nlu.model - Starting to train component intent_classifier_tensorflow_embedding
2018-11-01 20:46:38 ERROR rasa_nlu.classifiers.embedding_intent_classifier - Can not train an intent classifier. Need at least 2 different classes. Skipping training of intent classifier.
2018-11-01 20:46:38 INFO rasa_nlu.model - Finished training component.
2018-11-01 20:46:38 INFO rasa_nlu.model - Successfully saved model into '/home/rok/project/rasa/rasa_nlu/models/dialogflow_support/model_20181101-204638'
2018-11-01 20:46:38 INFO __main__ - Finished training
rasa_nlu did not recognize any classes, but none of them.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (5 by maintainers)
the solution is add “–l [lang_code]” to the “rasa data convert nlu --data data/place_finder --out data/nlu.md --format md”, for example, if you have spanish training data, you need to write:
“rasa data convert nlu --data data/place_finder --out data/nlu.md --format md --l es”