# Extract multiple entity in same statement

**URL:** <https://forum.rasa.com/t/extract-multiple-entity-in-same-statement/55303>\
**Category:** Rasa Open Source\
**Created:** [September 14, 2022, 4:48am UTC](https://forum.rasa.com/t/extract-multiple-entity-in-same-statement/55303 "2022-09-14T04:48:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![VijayChatBot](https://avatars.discourse-cdn.com/v4/letter/v/7993a0/32.png) [@VijayChatBot](https://forum.rasa.com/u/VijayChatBot)\
**Post date:** [September 14, 2022, 4:48am UTC](https://forum.rasa.com/t/extract-multiple-entity-in-same-statement/55303/1 "2022-09-14T04:48:29Z")

</div>

I want to Extract two entity in one statement. example: show me men’s t-shirts. In this example men’s and t-shirts this are the two entities i want to extract this but the logic is not working

I am using rasa version :- 3.1

nlu.yml :-

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/9/a/9a7ec7b5d7c28c2e2beb133511b9ac8abf149a24.png)

domain.yml :-

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/a/a/aa09e963aa73547cab4463a70d9a2ba0756534ee.png)

config.yml :-

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/1/1/1116bc54586e545272ac1b67e1f2ccc25e37c3c3.png)

stories.yml :-

![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/d/b/dbe42edb52114668f4b0a8a98426570349562f36.png)

Action.py and Output :-

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/1/9/19344bacd0f0929aaf5992b053bbd52f5565dfee.jpeg)

You can see the arrow 1,2,3 and 4 and their output as well.

please help me to extract this two entity. Thank you !

---

<div class="post-metadata">

**Author:** ![rasa\_learner](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/rasa_learner/32/21721_2.png) [@rasa\_learner](https://forum.rasa.com/u/rasa_learner)\
**Post date:** [September 14, 2022, 3:21pm UTC](https://forum.rasa.com/t/extract-multiple-entity-in-same-statement/55303/2 "2022-09-14T15:21:09Z")

</div>

Actually, you need more training examples!

---

<div class="post-metadata">

**Author:** ![VijayChatBot](https://avatars.discourse-cdn.com/v4/letter/v/7993a0/32.png) [@VijayChatBot](https://forum.rasa.com/u/VijayChatBot)\
**Post date:** [September 15, 2022, 9:19am UTC](https://forum.rasa.com/t/extract-multiple-entity-in-same-statement/55303/3 "2022-09-15T09:19:17Z")

</div>

Still not working. As you can see in below image it’s working only for the given example not for any value .

nlu.yml

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/4/e/4e503827b509a26df0775706daad6b91fde0ae71.png)

Other file is same as previous.
