-
Notifications
You must be signed in to change notification settings - Fork 29
/
domain.yml
194 lines (194 loc) · 4.37 KB
/
domain.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
version: '2.0'
config:
store_entities_as_slots: true
session_config:
session_expiration_time: 60
carry_over_slots_to_new_session: true
intents:
- thanks:
use_entities: true
- disease_symptom:
use_entities: true
- symptom_disease:
use_entities: true
- disease_check:
use_entities: true
- check_disease:
use_entities: true
- disease_prevent:
use_entities: true
- disease_lasttime:
use_entities: true
- disease_cureway:
use_entities: true
- disease_cureprob:
use_entities: true
- disease_easyget:
use_entities: true
- disease_desc:
use_entities: true
- disease_cause:
use_entities: true
- disease_acompany:
use_entities: true
- food_do_disease:
use_entities: true
- disease_drug:
use_entities: true
- drug_disease:
use_entities: true
- disease_not_food:
use_entities: true
- disease_do_food:
use_entities: true
- disease_department:
use_entities: true
- food_not_disease:
use_entities: true
- query_premise:
use_entities: true
- smallTalk:
use_entities: true
- query_weather:
use_entities: true
- goodbye:
use_entities: true
- nlu_fallback:
use_entities: true
entities:
- disease
- check
- drug
- food
- symptom
- location
- time
slots:
disease:
type: rasa.shared.core.slots.TextSlot
initial_value: null
auto_fill: true
influence_conversation: true
check:
type: rasa.shared.core.slots.TextSlot
initial_value: null
auto_fill: true
influence_conversation: true
drug:
type: rasa.shared.core.slots.TextSlot
initial_value: null
auto_fill: true
influence_conversation: true
food:
type: rasa.shared.core.slots.TextSlot
initial_value: null
auto_fill: true
influence_conversation: true
symptom:
type: rasa.shared.core.slots.TextSlot
initial_value: null
auto_fill: true
influence_conversation: true
location:
type: rasa.shared.core.slots.TextSlot
initial_value: null
auto_fill: true
influence_conversation: true
time:
type: rasa.shared.core.slots.TextSlot
initial_value: null
auto_fill: true
influence_conversation: true
responses:
utter_greet:
- text: 嘿!你好吗?
utter_cheer_up:
- image: https://i.imgur.com/nGF1K8f.jpg
text: 这里有一些让你振作起来的东西:
utter_did_that_help:
- text: 这对你有帮助吗?
utter_happy:
- text: 太好了,继续!
utter_help:
- text: 荣幸之至,有什么可以帮您的吗
utter_goodbye:
- text: Bye
utter_iamabot:
- text: 你好,我是Friday你的私人助手,请问有什么可以帮您的吗?
utter_moreinformation:
- text: 正在加载请稍后...
utter_anyting_else:
- text: 还有什么可以帮你
utter_out:
- text: 对不起,Friday暂时理解不了你的意思
utter_out1:
- text: 以下是查询到的一些相关信息
utter_ask_location:
- text: 想查询什么地方的天气
utter_ask_time:
- text: 想查询什么时间的天气
utter_over:
- text: Friday还有什么可以帮您的吗
utter_timeout:
- text: 请稍等,Friday正在为您诊断
utter_over_welcome:
- text: Friday,随时恭候
utter_exception:
- text: Friday,遇到了一些未知错误请联系管理员
actions:
- FindTheCorrespondingSymptom
- FindTheCorrespondingFood
- FindTheCorrespondingDrug
- FindTheCorrespondingCheck
- FindTheCorrespondingDisease
- action_default_fallback
- FindTheCorrespondingweather
forms:
disease_form:
required_slots:
disease:
- entity: disease
type: from_entity
- intent: enter_data
type: from_text
check_form:
required_slots:
check:
- entity: check
type: from_entity
- intent: enter_data
type: from_text
food_form:
required_slots:
food:
- entity: food
type: from_entity
- intent: enter_data
type: from_text
drug_form:
required_slots:
drug:
- entity: drug
type: from_entity
- intent: enter_data
type: from_text
symptom_form:
required_slots:
symptom:
- entity: symptom
type: from_entity
- intent: enter_data
type: from_text
weather_form:
required_slots:
location:
- entity: location
type: from_entity
- intent: enter_data
type: from_text
time:
- entity: time
type: from_entity
- intent: enter_data
type: from_text
e2e_actions: []