Hi, thanks for checking this post.
I am trying to upgrade from RASA 2 to RASA 3, and am having a problem I don’t understand. I’m trying to train an NLU model, and when I run the ‘rasa train’ command I get terminal output indicating that my model has trained successfully–but the epoch bar never displays, and training seems to complete immediately. When I open the model using ‘rasa shell’, it returns null with 0 confidence for any input.
I’m running RASA version 3.6.20 with spaCy version 3.7.6 in a python 3.9 virtual environment. Here’s my config file:
version: “3.1” recipe: “default.v1” language: en pipeline:
- name: SpacyNLP model: en_core_web_sm
- name: SpacyTokenizer
- name: SpacyFeaturizer
- name: SpacyEntityExtractor
- name: RegexFeaturizer analyzer: char_wb min_ngram: 1 max_ngram: 4
- name: DIETClassifier epochs: 100 constrain_similarities: true
- name: EntitySynonymMapper policies:
- name: MemoizationPolicy assistant_id: 20240813-193423-felt-modal
and here is the last part of the terminal output from training:
2024-08-29 17:45:41 INFO rasa.nlu.utils.spacy_utils - Trying to load SpaCy model with name ‘en_core_web_sm’. 2024-08-29 17:45:42 INFO rasa.nlu.utils.spacy_utils - Trying to load SpaCy model with name ‘en_core_web_sm’. 2024-08-29 17:45:43 INFO rasa.engine.training.hooks - Starting to train component ‘RegexFeaturizer’. 2024-08-29 17:45:43 INFO rasa.engine.training.hooks - Finished training component ‘RegexFeaturizer’. 2024-08-29 17:45:43 INFO rasa.engine.training.hooks - Starting to train component ‘DIETClassifier’. 2024-08-29 17:45:43 INFO rasa.engine.training.hooks - Finished training component ‘DIETClassifier’. 2024-08-29 17:45:43 INFO rasa.engine.training.hooks - Starting to train component ‘EntitySynonymMapper’. 2024-08-29 17:45:43 INFO rasa.engine.training.hooks - Finished training component ‘EntitySynonymMapper’. Your Rasa model is trained and saved at ‘models/nlu-20240829-174541-heartless-bayou.tar.gz’. Rasa model training completed successfully.
Here’s the terminal output from running ‘rasa shell’ with a sample input:
2024-08-29 18:05:26 INFO rasa.core.processor - Loading model models/nlu-20240829-174541-heartless-bayou.tar.gz… 2024-08-29 18:05:26 INFO rasa.nlu.utils.spacy_utils - Trying to load SpaCy model with name ‘en_core_web_sm’. 2024-08-29 18:05:28 INFO rasa.nlu.utils.spacy_utils - Trying to load SpaCy model with name ‘en_core_web_sm’. NLU model loaded. Type a message and press enter to parse it. Next message: Hello, this is a test message. { “text”: “Hello, this is a test message.”, “intent”: { “name”: null, “confidence”: 0.0 }, “entities”: , “text_tokens”: [ [ 0, 5 ], [ 5, 6 ], [ 7, 11 ], [ 12, 14 ], [ 15, 16 ], [ 17, 21 ], [ 22, 29 ], [ 29, 30 ] ], “intent_ranking”: } Next message:
Any ideas what could be causing this issue? Thanks again.