# Not recognizing correct entity

**URL:** <https://forum.rasa.com/t/not-recognizing-correct-entity/9390>\
**Category:** Rasa Open Source\
**Created:** [May 6, 2019, 11:53am UTC](https://forum.rasa.com/t/not-recognizing-correct-entity/9390 "2019-05-06T11:53:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![suraj.padhy.gm](https://avatars.discourse-cdn.com/v4/letter/s/e99b99/32.png) [@suraj.padhy.gm](https://forum.rasa.com/u/suraj.padhy.gm)\
**Post date:** [May 6, 2019, 11:53am UTC](https://forum.rasa.com/t/not-recognizing-correct-entity/9390/1 "2019-05-06T11:53:09Z")

</div>

I have a data set where there are multiple intents:

1. Bank account intent
  - has training data for account number eg: [1234567890] (account\_number)

2. Personal Information intent
  - has phone number entity eg: [1234567890] (phone\_number)

During interactive training it gets confused between account\_number and phone\_number, and recognizes phone number as account number and vice versa. Any suggestion how this scenario can be handled ?

Thanks in advance for your reply.

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [May 13, 2019, 4:08pm UTC](https://forum.rasa.com/t/not-recognizing-correct-entity/9390/2 "2019-05-13T16:08:35Z")

</div>

Hi there @suraj.padhy.gm, the recommended way to do this is to have a collective intent `inform` which includes intent like providing a bank account number or phone number. You can pick up these entities without needing to annotate them by using the DucklingHTTPExtractor, which will pick up numbers very well. Then in a custom action, you can set either the bank account slot or the personal information slot to the number picked up by duckling based on the context of the conversation. Hope that helps.
