-
Notifications
You must be signed in to change notification settings - Fork 29
/
domain.yml
154 lines (154 loc) · 4.5 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
version: '2.0'
config:
store_entities_as_slots: true
session_config:
session_expiration_time: 60
carry_over_slots_to_new_session: true
intents:
- deflect:
use_entities: []
- demo:
use_entities: []
- dismiss:
use_entities: []
- example:
use_entities: true
- greet:
use_entities: true
- help:
use_entities: true
- origin:
use_entities: true
- rude:
use_entities: true
- ruler_after:
use_entities: true
- ruler_before:
use_entities: true
- ruler_feature:
use_entities: true
- ruler_list:
use_entities: true
- yn_negative:
use_entities: true
- yn_other:
use_entities: true
- yn_positive:
use_entities: true
- detail_example:
use_entities: true
- feature_example:
use_entities: true
- ruler_pronoun_feature:
use_entities: true
entities:
- name
- nth
- title
- feature
- position
- ruler_type
- speed
- nth-words
- house
- rude
- number
- year
- pronoun
- number-roman
- number-words
- country
- location
- period
- year-words
slots:
last_ruler_id:
type: rasa.shared.core.slots.TextSlot
initial_value: null
auto_fill: false
influence_conversation: false
responses:
utter_greet:
- text: Hey there!
- text: Hello!
- text: Hello to you too!
utter_deflect:
- text: I can't really respond to that sort of thing.
- text: That isn't something I'm programmed to handle.
- text: Sorry, I cannot help you on that line of discussion.
- text: No comment.
- text: Sorry, I don't know about that.
- text: Let's talk about something else.
utter_demo:
- text: The demo is pending.
utter_dismiss:
- text: Okay, bye!
utter_help:
- text: |
I understand a handful of simple concepts related to the monarchy in the UK.
There are various ways to select a particular ruler, such as
the number (eg VI, 6 or sixth) or by a value (eg "William Rufus").
Then you can pick out specific information such as:
- Date of birth
- End of reign
- Famous battles
- House (eg of Tudor)
Then the ML magic happens, I try to understand what you've said and then look up details
based on entities recognised in a database.
Have a go!
(or try "Give me an example" if you're really not sure :D)
utter_origin:
- text: |
I am RoyBotic, a simple chatbot focused on basic questions regarding the monarchy in the UK.
I have been programmed in Python, using a machine learning backend that recognises user
input and passes details to a script which in turn translates them so that relevant details
can be accessed in a database, following which answers are constructed and given back to the user.
utter_rude:
- text: That isn't something I can really comment on.
- text: Perhaps I've misunderstood what you meant to say?
- text: Is there anything useful I can help you with?
- text: I'm not sure I understood what you just said.
- text: Ah the rich expressive nature of the English language.
- text: Sadly I'm just a simple bot so it means very little to me!
utter_ruler_feature_ReignStartDt:
- text: '{HeShe} reigned from {ReignStartDt}.'
utter_ruler_feature_ReignEndDt:
- text: '{HeShe} reigned until {ReignEndDt}.'
utter_ruler_feature_House:
- text: '{HeShe} was a member of the {House}.'
utter_ruler_feature_NotableEventsDuringLife:
- text: '{NotableEventsDuringLife}'
utter_ruler_feature_DtBirth:
- text: '{HeShe} was born on {DtBirth}.'
utter_ruler_feature_DtDeath:
- text: '{HeShe} died on {DtDeath}.'
utter_ruler_feature_Portrait:
- image: '{Portrait}'
text: A picture of {Name} {Number}.
utter_ruler_feature_DeathCircumstances:
- text: '{DeathCircumstances}.'
utter_ruler_feature_FamousBattles:
- text: '{FamousBattles}.'
utter_ruler_feature_FamousBattles_singular:
- text: An important battle was the {FamousBattles}.
utter_ruler_feature_FamousBattles_plural:
- text: Some important battles were {FamousBattles}.
utter_ruler_feature_Description:
- text: '{Description}.'
utter_ruler_feature_all:
- text: '{Name} {Number} was born on {DtBirth} and died on {DtDeath}. With a reign starting on {ReignStartDt} and lasting until {ReignEndDt}. {HeShe} was involved in {FamousBattles}. {Description}'
utter_yn_negative:
- text: I understood a negative response.
utter_yn_other:
- text: I understood an ambiguous response.
utter_yn_positive:
- text: I understood a positive response.
actions:
- action_ruler_feature
- action_ruler_list
- action_ruler_before
- action_ruler_after
- action_example
- action_ruler_pronoun_feature
forms: {}
e2e_actions: []