# Intent is classified correctly but the entity recognized is not matching

**URL:** <https://forum.rasa.com/t/intent-is-classified-correctly-but-the-entity-recognized-is-not-matching/61821>\
**Category:** Rasa Open Source\
**Created:** [May 1, 2024, 12:11pm UTC](https://forum.rasa.com/t/intent-is-classified-correctly-but-the-entity-recognized-is-not-matching/61821 "2024-05-01T12:11:05Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![kamalsai1](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/kamalsai1/32/24189_2.png) [@kamalsai1](https://forum.rasa.com/u/kamalsai1)\
**Post date:** [May 1, 2024, 12:11pm UTC](https://forum.rasa.com/t/intent-is-classified-correctly-but-the-entity-recognized-is-not-matching/61821/1 "2024-05-01T12:11:05Z")

</div>

The intent is identified accurately, but there is a discrepancy in the recognized entity. My issue is I have a user response where he provides his postal zipcode and the bot is identifying the intent correctly but the entity is getting misclassified.

You can see the following for reference

“response”:{ { “event”: “user”, “text”: “My postal code, as in the mailing zip, is 34567.”, “parse\_data”: { “intent”: { “name”: “inform\_mailing\_zip”, “confidence”: 0.967684268951416 }, “entities”: [{ “entity”: “policy\_number”, “start”: 42, “end”: 47, “confidence\_entity”: 0.23964835703372955, “value”: “34567”, “extractor”: “DIETClassifier” }], “text”: “My postal code, as in the mailing zip, is 34567.”,

```
    "intent_ranking": [
      {
        "name": "inform_mailing_zip",
        "confidence": 0.967684268951416
      },
      {
        "name": "inform_policy_number",
        "confidence": 0.01124406699091196
      },
      {
        "name": "inform_dob",
        "confidence": 0.0022329019848257303
      },
      {
        "name": "inform_preferred_contact",
        "confidence": 0.0022209070157259703
      },
      {
        "name": "inform_group_id",
        "confidence": 0.0017992813372984529
      },
      {
        "name": "emergency_contact_name",
        "confidence": 0.0014402118977159262
      },
      {
        "name": "submit_pi",
        "confidence": 0.0014140320708975196
      },
      {
        "name": "inform_gender",
        "confidence": 0.0012727619614452124
      },
      {
        "name": "stop",
        "confidence": 0.0010364839108660817
      },
      {
        "name": "inform_primary_insurance_provider",
        "confidence": 0.0009016144322231412
      }
    ],
    "response_selector": {
      "all_retrieval_intents": [],
      "default": {
        "response": {
          "responses": null,
          "confidence": 0,
          "intent_response_key": null,
          "utter_action": "utter_None"
        },
        "ranking": []
      }
    }
  },
  "input_channel": "cmdline",
  "message_id": "3231acc20b3d4af3ab8fea714595f357"
},

```

---

_[View the full topic](https://forum.rasa.com/t/intent-is-classified-correctly-but-the-entity-recognized-is-not-matching/61821)._
