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
- with_whom
- action_with_whom
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:
room_booking
affirm
greet
deny
goodbye
booking_date
booking_time
validate_card
validate_face
ok
with_whom
actions:
action_default_fallback
utter_goodbye
action_ask_face_and_take_card_pic
action_ask_for_date_and_take_face_pic
action_booking_date
utter_ask_time
action_booking_time
action_validate_card
action_validate_face
utter_ask_face
action_greet
action_room_booking
action_restarted
action_with_whom
entity:
booking_date_value
att_email
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:
- text: Thanks for your card verification. Is it okay if I take your picture for completing the validation?
utter_goodbye:
- text: ok no problem bye bye.
utter_ask_time:
- text: Ok now tell me at what time you need room on {save_booking_date}. Please tell me your time slot?(i.e 10 am to 10:30 am)
post by stephens on Jan 30, 2020
Try using Duckling instead of Custom Entities (CRFEntitiesExtractor).