Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

218 righe
6.7 KiB

  1. import os
  2. current_directory = os.path.dirname(os.path.realpath(__file__))
  3. intents_and_question = {
  4. "greet": [
  5. "hey",
  6. "hello",
  7. "Hello?",
  8. "hello?",
  9. "hi",
  10. "hello there",
  11. "good morning",
  12. "good evening",
  13. "moin",
  14. "hey there",
  15. "let's go",
  16. "hey dude",
  17. "goodmorning",
  18. "goodevening",
  19. "good afternoon"
  20. ],
  21. "appointment_booking": [
  22. "How can I schedule an appointment",
  23. "I need to book an appointment with a doctor",
  24. "what's the procedure for booking an appointment",
  25. "hello, I'd like to schedule an appointment.",
  26. "book an appointment",
  27. "appointment",
  28. "need an appointment"
  29. ],
  30. "doctor_information": [
  31. "tell me more about dr. abc",
  32. "what's the specialty of dr. abc",
  33. "give me the contact details for dr. abc"
  34. "doctor",
  35. "contact doctor",
  36. "doctor contact",
  37. "doctor detail",
  38. "detail doctor"
  39. ],
  40. "department_information": [
  41. "which departments are available in the hospital",
  42. "can you provide details about the cardiology department",
  43. "tell me more about the pediatric department",
  44. "department",
  45. "which department",
  46. "department info"
  47. ],
  48. "visiting_hours":[
  49. "what are the visiting hours for patients",
  50. "when can I visit a patient in the hospital",
  51. "is there a specific time for visiting hours",
  52. "visiting time",
  53. "visit",
  54. "time",
  55. "time to visit",
  56. "visit time",
  57. "hospital visit",
  58. "visit hospital"
  59. ],
  60. "location_and_directions":[
  61. "how do I get to the hospital",
  62. "can you provide me with directions to your location",
  63. "where is the hospital situated",
  64. "direction",
  65. "direction hospital",
  66. "hospital direction",
  67. "location",
  68. "hospital location"
  69. ],
  70. "billing_and_insurance": [
  71. "how do I pay my medical bills",
  72. "do you accept my insurance",
  73. "what's the billing process for a hospital stay",
  74. "bills",
  75. "insurance",
  76. "pay bill",
  77. ],
  78. "medical_records": [
  79. "how can I access my medical records",
  80. "request my medical history",
  81. "I need a copy of my lab results",
  82. "medical records",
  83. "medical record",
  84. "record",
  85. "records",
  86. "record medical",
  87. "results",
  88. "lab results",
  89. "result copy",
  90. "copy result"
  91. ],
  92. "emergency_services": [
  93. "what should I do in case of a medical emergency",
  94. "how do I contact the hospital in an emergency",
  95. "tell me about your emergency services",
  96. "emergency",
  97. "emergency service"
  98. ],
  99. "covid19_information": [
  100. "what safety measures are in place due to COVID-19",
  101. "is it safe to visit the hospital during the pandemic",
  102. "do you offer COVID-19 testing or vaccinations",
  103. "covid19"
  104. ],
  105. "feedback_and_complaints": [
  106. "I want to provide feedback about my experience",
  107. "how can I file a complaint about a staff member",
  108. "share my thoughts on my recent visit",
  109. "feedback",
  110. "complaints",
  111. "complain",
  112. "share thoughts",
  113. "experiance"
  114. ],
  115. "general_information": [
  116. "tell me more about the hospital",
  117. "what services do you offer",
  118. "is there a cafeteria in the hospital",
  119. "information",
  120. "cafeteria",
  121. "services",
  122. "services offered",
  123. "offered services"
  124. ]
  125. }
  126. '''video_urls = {
  127. "greet": "/home/knight/ChatBot_UI/video/greet.mp4",
  128. "appointment_booking": "/home/knight/ChatBot_UI/video/appointment_booking.mp4",
  129. "doctor_information": "/home/knight/ChatBot_UI/video/doctor_information.mp4",
  130. "department_information": "/home/knight/ChatBot_UI/video/department_information.mp4",
  131. "visiting_hours": "/home/knight/ChatBot_UI/video/visiting_hours.mp4",
  132. "location_and_directions": "/home/knight/ChatBot_UI/video/location_and_directions.mp4",
  133. "billing_and_insurance": "/home/knight/ChatBot_UI/video/billing_and_insurance.mp4",
  134. "medical_records": "/home/knight/ChatBot_UI/video/medical_records.mp4",
  135. "emergency_assistance": "/home/knight/ChatBot_UI/video/emergency_services.mp4",
  136. "covid19_information": "/home/knight/ChatBot_UI/video/covid19_information.mp4",
  137. "feedback_and_complaints": "/home/knight/ChatBot_UI/video/feedback_and_complaints.mp4",
  138. "thank_you": "/home/knight/ChatBot_UI/video/thank_you.mp4",
  139. "general_information": "/home/knight/ChatBot_UI/video/general_information.mp4"
  140. }'''
  141. video_urls = {
  142. "greet": os.path.join(current_directory, 'video', 'greet.mp4'),
  143. "appointment_booking": os.path.join(current_directory, 'video', 'appointment_booking.mp4'),
  144. "doctor_information": os.path.join(current_directory, 'video', 'doctor_information.mp4'),
  145. "department_information": os.path.join(current_directory, 'video' ,'department_information.mp4'),
  146. "visiting_hours": os.path.join(current_directory, 'video', 'visiting_hours.mp4'),
  147. "location_and_directions": os.path.join(current_directory, 'video','location_and_directions.mp4'),
  148. "billing_and_insurance": os.path.join(current_directory, 'video', 'billing_and_insurance.mp4'),
  149. "medical_records": os.path.join(current_directory, 'video', 'medical_records.mp4'),
  150. "emergency_assistance": os.path.join(current_directory, 'video','emergency_services.mp4'),
  151. "covid19_information": os.path.join(current_directory, 'video','covid19_information.mp4'),
  152. "feedback_and_complaints": os.path.join(current_directory, 'video','feedback_and_complaints.mp4'),
  153. "thank_you": os.path.join(current_directory, 'video','video/thank_you.mp4'),
  154. "general_information": os.path.join(current_directory, 'video','general_information.mp4')
  155. }
  156. def get_video_response(intent):
  157. return video_urls.get(intent)
  158. #print(get_video_response('greet'))