Mitie QA: `MitieIntentClassifier` does not classify the intent correctly
See original GitHub issueSteps to replicate:
rasa init
to a new project- amend config file to this content:
recipe: default.v1
# Configuration for Rasa NLU.
# https://rasa.com/docs/rasa/nlu/components/
language: en
pipeline:
- name: "MitieNLP"
model: "data/total_word_feature_extractor.dat"
- name: "MitieTokenizer"
- name: "MitieFeaturizer"
- name: "MitieEntityExtractor"
- name: "MitieIntentClassifier"
# Configuration for Rasa Core.
# https://rasa.com/docs/rasa/core/policies/
policies:
# # No configuration for policies was provided. The following default policies were used to train your model.
# # If you'd like to customize them, uncomment and adjust the policies.
# # See https://rasa.com/docs/rasa/policies for more information.
# - name: MemoizationPolicy
# - name: RulePolicy
# - name: UnexpecTEDIntentPolicy
# max_history: 5
# epochs: 100
# - name: TEDPolicy
# max_history: 5
# epochs: 100
# constrain_similarities: true
rasa train
rasa shell
leads to the following story, whereutter_happy
is replaced byutter_greet
at the end:
Your input -> Hi
Hey! How are you?
Your input -> Feeling sad
Here is something to cheer you up:
Image: https://i.imgur.com/nGF1K8f.jpg
Did that help you?
Your input -> Yes
Hey! How are you?
Debug log:
2021-11-08 12:56:32 DEBUG rasa.core.processor - Received user message 'Yes' with intent '{'name': 'greet', 'confidence': 0.09738887070403174}' and entities '[]'
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
rasa/mitie_intent_classifier.py at main · RasaHQ/rasa - GitHub
Open source machine learning framework to automate text- and voice-based conversations: NLU, dialogue management, connect to Slack, Facebook, ...
Read more >Components - Rasa
Creates features for entity extraction, intent classification, and response classification using the MITIE featurizer.
Read more >Rasa NLU failing to classify intent - Stack Overflow
"MITIE always fails" is not true for Rasa, MITIE works perfectly fine and depending on your use case it works better than other...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Can you include the config in the description please?
@ka-bu and I have tried to reproduce this (and asked a few other people to try on their machines) and we can’t seem to find anything that’s causing it directly. The produced model, if shared with someone, does contain the error but it’s not obvious what’s actually causing it as we’ve tried substituting out most of the relevant mitie files, tried clearing the cache, inspecting the cache, re-creating the whole project etc. It’s also been tested by @ancalita on 2.8 which does not display the issue (even though only her machine displays the issue on 3.0), so we know it’s definitely related to the 3.0 changes but it is not clear where it’s being introduced.
Closing this for now as can’t reproduce