# Multiple Entities for same word

**URL:** <https://forum.rasa.com/t/multiple-entities-for-same-word/52845>\
**Category:** Rasa Open Source\
**Created:** [April 26, 2022, 8:59am UTC](https://forum.rasa.com/t/multiple-entities-for-same-word/52845 "2022-04-26T08:59:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![munieft](https://avatars.discourse-cdn.com/v4/letter/m/e95f7d/32.png) [@munieft](https://forum.rasa.com/u/munieft)\
**Post date:** [April 26, 2022, 8:59am UTC](https://forum.rasa.com/t/multiple-entities-for-same-word/52845/1 "2022-04-26T08:59:18Z")

</div>

I need some clarification. I have an intent named “Intent\_ask\_documents” in which I have marked the word “documents” as an entity “doc” Example… : I want to renew my license. Can you tell me which documents are required? Which documents do I need to renew license? etc

Here you can see the word ‘document’ is tagged as entity “doc”. Now I have an intent with sentences… “Intent\_Lost” I have lost my ID card and I want to report it. I have lost documents of my car and I want to report it.  
OR I have lost some documents and I want to report. Now the same word “documents” have been tagged with different entities in different intents.

How do I handle this scenario?

---

<div class="post-metadata">

**Author:** ![artemsnegirev](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/artemsnegirev/32/16465_2.png) [@artemsnegirev](https://forum.rasa.com/u/artemsnegirev)\
**Post date:** [April 26, 2022, 10:55am UTC](https://forum.rasa.com/t/multiple-entities-for-same-word/52845/2 "2022-04-26T10:55:05Z")

</div>

Hello!

You can use slot mapping for example

```auto
intents:
- intent_ask_document
- intent_lost_document

entities:
- document

slots:
  asked_doc:
    type: text
    mappings:
    - type: from_entity
      entity: document
      intent: intent_ask_document
  lost_doc:
    type: text
    mappings:
    - type: from_entity
      entity: document
      intent: intent_lost_document

```

Reference: [Domain](https://rasa.com/docs/rasa/domain#slot-mappings)

OR if really want different entities you can use role labeling

```auto
intent_ask_documents:
- I want to renew my license. Can you tell me which [documents]{"entity": "doc", "role": "asked"} are required?

intent_lost_document:
- I have lost my [ID card]{"entity": "doc", "role": "lost"} and I want to report it. 

```

Reference: [NLU Training Data](https://rasa.com/docs/rasa/nlu-training-data#entities-roles-and-groups)

---

<div class="post-metadata">

**Author:** ![ChrisRahme](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chrisrahme/32/15572_2.png) [@ChrisRahme](https://forum.rasa.com/u/ChrisRahme)\
**Post date:** [April 26, 2022, 1:52pm UTC](https://forum.rasa.com/t/multiple-entities-for-same-word/52845/3 "2022-04-26T13:52:47Z")

</div>

This is exactly what [synonyms](https://rasa.com/docs/rasa/training-data-format/#synonyms) are for 🙂

```auto
nlu:
- synonym: document
  examples: |
    - documents
    - doc
    - docs

```
