-
Notifications
You must be signed in to change notification settings - Fork 0
/
agentGrammar.xml
113 lines (97 loc) · 2.16 KB
/
agentGrammar.xml
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
<?xml version="1.0" encoding="utf-8"?>
<grammar
root = "#top"
tag-format = "semantics/1.0-literals"
version = "1.0"
xml:base: "agentGrammar"
xml:lang = "en"
xmlns = "http://www.w3.org/2001/06/grammar"
xmlns:sapi= "http://schemas.microsoft.com/Speech/2002/06/SRGSExtensions">
<!-- root element, the source of every possible agent dialogue act -->
<rule id="#top">
<one-of>
<item><ruleref uri="#shop_info"/></item>
<item><ruleref uri="#route_info"/></item>
<item><ruleref uri="#req_sub"/></item>
<item><ruleref uri="#opening"/></item>
<item><ruleref uri="#closing"/></item>
</one-of>
</rule>
<rule id="polite">
<one-of>
<item>please</item>
<item>kindly</item>
</one-of>
</rule>
<!-- dialogue act for when the user turns the system on (e.g. "Okay Google") -->
<rule id="greeting">
<one-of>
<item>hi</item>
<item>hello</item>
</one-of>
<item>how can I help you</item>
</rule>
<!-- auto-response after user has made a closing statement -->
<rule id="closing">
<item>let me know if you have any further requests</item>
</rule>
<rule id="opening">
<item>hello how can I help you</item>
</rule>
<rule id="shop_info">
<one-of>
<item>
there are
<ruleref uri="#num"/>
shops which sell
<ruleref uri="#item"/>
</item>
<item>
there is one shop which sells
<ruleref uri="#item"/>
</item>
<item>
there are no shops available which match that description
</item>
</one-of>
</rule>
<rule id="req_sub">
</rule>
<rule id="route_info">
</rule>
<rule id="side_dir">
<one-of>
<item>left</left>
<item>right</right>
</one-of>
</rule>
<rule id="fwd_back">
<one-of>
<item>forward</left>
<item>backward</right>
</one-of>
</rule>
<rule id="whereabouts">
<one-of>
<item>in front of</left>
<item>behind</right>
</one-of>
</rule>
<rule id="num">
<one-of>
<item>two</item>
<item>three</item>
</one-of>
</rule>
<rule id="item">
<one-of>
<item>coffee</item>
<item>clothes</item>
<item>sandwiches</item>
<item>toys</item>
<item>music</item>
<item>jewellery</item>
<item>sports equipment</item>
</one-of>
</rule>
</grammar>