question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mitie QA: `MitieIntentClassifier` does not classify the intent correctly

See original GitHub issue

Steps 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, where utter_happy is replaced by utter_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:closed
  • Created 2 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
joejuzlcommented, Nov 10, 2021

@joejuzl my bad, this was part of the Mitie test, so the pipeline should only have Mitie components.

Can you include the config in the description please?

0reactions
usc-mcommented, Dec 16, 2021

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found