Entities - Rasa Open Source - Rasa Community Forum

Entities

Hi all,

My intent is :

## intent:with_whom
- book with [mhaneef@provenconsult.com](att_email)
- book with [tsheikh@provenconsult.com](att_email)
- book with [lverma@provenconsult.com](att_email)
- with [ssheikh@provenconsult.com](att_email),[msuaib@provenconsult.com](att_email),[ysai@provenconsult.com](att_email) and [uatre@provenconsult.com](att_email)

My story is :

attendies flow

And my action file is :

class ActionWithWhom(Action):


def name(self):

return "action_with_whom"

def run(self, dispatcher, tracker, domain):

print('this is all attendies ',tracker.latest_message['entities'])

dispatcher.utter_message('your room is booked fake 2')

And problem is when i am saying "book with lverma@provenconsult.com and mhaneef@provenconsult.com but i am getting only one last entity why one only? i need both. in dialogflow they automatically gives you the array of entity with auto generated entity names with all values but in rasa how we can get all entities values???

post by stephens on Jan 29, 2020

You should change att_email to a list slot:

  att_email_list:
    type: list

post by haneef on Jan 29, 2020

@stephens it’s not working, it’s only giving me single entity value and att_email slots giving None value.

Like when i am asking below request then only one entity is extracting why not second one???

Request :- “book with tshiekh@provenconsult.com and mhaneef@provenconsult.com”.

Entity Response :- 'entities': [{'start': 40, 'end': 65, 'value': 'mhaneef@provenconsult.com', 'entity': 'att_email', 'confidence': 0.4482402619514166, 'extractor': 'CRFEntityExtractor'}]

Slots Response :- {'att_email': None}

post by stephens on Jan 29, 2020

Please paste your domain.yml file.

post by haneef on Jan 29, 2020

@stephens ok, Here it is:-

intents:

actions:

entity:

slots:

save_username:


auto_fill: false

type: unfeaturized

save_booking_date:


auto_fill: false

type: unfeaturized

last_intent:


auto_fill: false

type: unfeaturized

is_validate:


auto_fill: false

type: unfeaturized

att_email:


type: list

templates:

utter_ask_face:

utter_goodbye:

utter_ask_time:

post by stephens on Jan 30, 2020

Try using Duckling instead of Custom Entities (CRFEntitiesExtractor).