Dodanie "medical_servies"

This commit is contained in:
Dominik Strzałko 2021-06-14 09:00:32 +02:00
parent 4c57c6fdfb
commit acb7279f68
2 changed files with 5 additions and 0 deletions

View File

@ -80,6 +80,8 @@ class DP():
system_action[("inform", 'Cost')] = {"cost": "100 zł"} system_action[("inform", 'Cost')] = {"cost": "100 zł"}
elif intent == 'request_information/opening_hours': elif intent == 'request_information/opening_hours':
system_action[("inform", 'Opening_Hours')] = {"hours": "'8:00 - 16:00"} system_action[("inform", 'Opening_Hours')] = {"hours": "'8:00 - 16:00"}
elif intent == 'request_information/medical_services':
system_action[("inform", 'Medical_services')] = {"services": "Okulista, Internista, Ginekolog"}
elif len(constraints) == 0: elif len(constraints) == 0:
system_action[("inform", 'NoOffer')] = {'0': '0'} system_action[("inform", 'NoOffer')] = {'0': '0'}

View File

@ -51,6 +51,9 @@ class NLG:
if (intent == "Doctors_list"): if (intent == "Doctors_list"):
value = act[action]["doctors"] value = act[action]["doctors"]
return f"Lista doktorów w naszej placówce: \n{value}" return f"Lista doktorów w naszej placówce: \n{value}"
if (intent == "Medical_services"):
value = act[action]["services"]
return f"Lista usług oferowanych w naszej placówce: \n{value}"
if (intent == "Location"): if (intent == "Location"):
city = act[action]["city"] city = act[action]["city"]
street = act[action]["street"] street = act[action]["street"]