# Unable to extract entity for a Synonym

**URL:** <https://forum.rasa.com/t/unable-to-extract-entity-for-a-synonym/7174>\
**Category:** Rasa Open Source\
**Created:** [April 17, 2019, 10:30pm UTC](https://forum.rasa.com/t/unable-to-extract-entity-for-a-synonym/7174 "2019-04-17T22:30:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![santoshcbit2002](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@santoshcbit2002](https://forum.rasa.com/u/santoshcbit2002)\
**Post date:** [April 17, 2019, 10:30pm UTC](https://forum.rasa.com/t/unable-to-extract-entity-for-a-synonym/7174/1 "2019-04-17T22:30:28Z")

</div>

Hello Guys, Hoping some one can help.

I am new to Rasa so apologies if I am asking naive question. I am working on a restaurant chatbot.

Do we explicitly need to give training examples for each of the synonyms set? In that case, doesn’t it look like ‘hard-coding’?

Please consider this example -

I have declared synonym for the location ‘Kochi’ as ‘Cochin’. Similarly I have done so for location ‘Bangaluru’ as ‘Bangalore’. Now, my training examples include an example for banglore, so NLU layer is able to identify the intent and extract entity for bangaluru/Banglore.

When the text is ‘Kochi’ - it extracts intent and entity - works perfect. But when the text is ‘Cochin’ - it only extracts intent but not entity. (Please not that, my training examples _does not_ include example of Kochi).

Should I start giving examples for each of the synonym set? Why does NLU layer works for Kochi but not for cochin?

Note that - I have not included any example of Kochi itself, but it works perfect - intent and entity are extracted and confidence factor is - 0.96 for both.

thanks in advance guys!

---

<div class="post-metadata">

**Author:** ![yashim77](https://avatars.discourse-cdn.com/v4/letter/y/46a35a/32.png) [@yashim77](https://forum.rasa.com/u/yashim77)\
**Post date:** [June 1, 2020, 2:37pm UTC](https://forum.rasa.com/t/unable-to-extract-entity-for-a-synonym/7174/2 "2020-06-01T14:37:27Z")

</div>

Facing the same problem
