# Multiple entities for same slot

**URL:** <https://forum.rasa.com/t/multiple-entities-for-same-slot/43715>\
**Category:** Rasa Open Source\
**Created:** [May 18, 2021, 5:54pm UTC](https://forum.rasa.com/t/multiple-entities-for-same-slot/43715 "2021-05-18T17:54:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CharuchithRanjit](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/charuchithranjit/32/14756_2.png) [@CharuchithRanjit](https://forum.rasa.com/u/CharuchithRanjit)\
**Post date:** [May 18, 2021, 5:54pm UTC](https://forum.rasa.com/t/multiple-entities-for-same-slot/43715/1 "2021-05-18T17:54:37Z")

</div>

So Im trying to process multiple entity extractions for a slot. I have 3 entities: Company, Product and Quantity, all 3 of text type.

```
For ex.
I want 1 Dominos pizza

Output dictionary={
quantity = 1
product = Pizza
company = Dominos}

```

So when i run this, they each get extracted individually , cause I have used RegexEntityExtractor and 3 Lookup tables for mapping the 3 entities. I have also used the utter\_ask\_company and utter\_ask\_quantity which works for making sure values are filled. Problem arises when I have multiple entities for same slot. Ex. I want 1 Pizza and 1 Burger

```
Output dictionary={
quantity = [1,1]
product = [Pizza,Burger]
company = None}

Which Company? Dominos

Output dictionary={
quantity = [1,1]
product = [Pizza,Burger]
company = Dominos}

```

I want this to ask me “Which company” twice(for burger and pizza), but it asks me so only once which makes sense, but I have no idea how to fix it.

So i want it to ask me which company and quantity for unfilled slots for the number of products that I have. Any Input would be appreciated.

---

<div class="post-metadata">

**Author:** ![Dustyposa](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/dustyposa/32/13745_2.png) [@Dustyposa](https://forum.rasa.com/u/Dustyposa)\
**Post date:** [May 19, 2021, 2:41am UTC](https://forum.rasa.com/t/multiple-entities-for-same-slot/43715/2 "2021-05-19T02:41:38Z")

</div>

How about [entities role](https://rasa.com/docs/rasa/nlu-training-data#entities-roles-and-groups)

---

<div class="post-metadata">

**Author:** ![CharuchithRanjit](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/charuchithranjit/32/14756_2.png) [@CharuchithRanjit](https://forum.rasa.com/u/CharuchithRanjit)\
**Post date:** [May 19, 2021, 9:13am UTC](https://forum.rasa.com/t/multiple-entities-for-same-slot/43715/3 "2021-05-19T09:13:25Z")

</div>

So I had seen this, but it said I could only use it with DIET and CRF, but I had used RegexEntityExtractor so I assumed it wouldnt work with it.
