File size: 8,216 Bytes
c32ee7d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
dataset: e2e_nlg_cleaned
templates:
  0f54b6e2-42c0-45ec-8ea2-2e6204388f76: !Template
    answer_choices: null
    id: 0f54b6e2-42c0-45ec-8ea2-2e6204388f76
    jinja: 'Combine all of the following data into a concise and grammatically correct
      sentence:

      {% for feature in meaning_representation.split("]") %}

      {% set key = feature.split("[")[0].replace(",","") %}

      {% set value = feature.replace(",","").replace(key+"[", '''''''') %}

      {% if value != "" %}

      {{key}} : {{value}}

      {% endif %}

      {%- endfor %}

      ||| {{human_reference}}'
    metadata: !TemplateMetadata
      choices_in_prompt: null
      metrics: []
      original_task: true
    name: e2e_basic_3
    reference: ''
  14db0e7a-f7d1-4bd0-bfb3-f611be608c4a: !Template
    answer_choices: null
    id: 14db0e7a-f7d1-4bd0-bfb3-f611be608c4a
    jinja: '{% set vars = {''key'':"eatType", ''value'':""} %}

      {% for feature in meaning_representation.split("]") if vars[''key'']  in feature
      %}

      {% set temp = vars.update({''value'':feature.replace(",","").replace(vars[''key'']+"[",
      '''')}) %}

      {%- endfor %}

      {% if vars["value"]|length > 0 %}

      {{human_reference}} What type of dinery is the passage talking about?  ||| {{vars[''value'']}}

      {% endif %}


      '
    metadata: !TemplateMetadata
      choices_in_prompt: null
      metrics: []
      original_task: false
    name: eat_type_1
    reference: ''
  18f74817-9f8c-4fd5-bc00-6e0016a40dcc: !Template
    answer_choices: null
    id: 18f74817-9f8c-4fd5-bc00-6e0016a40dcc
    jinja: '{% set vars = {''key'':"food", ''value'':""} %}

      {% for feature in meaning_representation.split("]") if vars[''key'']  in feature
      %}

      {% set temp = vars.update({''value'':feature.replace(",","").replace(vars[''key'']+"[",
      '''')}) %}

      {%- endfor %}

      {% if vars["value"]|length > 0 %}

      {{human_reference}} From the passage given above, what type of food do you think
      is served at this dinery?  ||| {{vars[''value'']}}

      {% endif %}


      '
    metadata: !TemplateMetadata
      choices_in_prompt: null
      metrics: []
      original_task: false
    name: food_1
    reference: ''
  1acabbc3-c9b9-4624-a684-29faeccff46f: !Template
    answer_choices: null
    id: 1acabbc3-c9b9-4624-a684-29faeccff46f
    jinja: 'Given the following data about a dinery:

      {% for feature in meaning_representation.split("]") %}

      {% set key = feature.split("[")[0].replace(",","") %}

      {% set value = feature.replace(",","").replace(key+"[", '''''''') %}

      {% if value != "" %}

      {{key}} : {{value}}

      {% endif %}

      {%- endfor %}

      Generate a sentence about this dinery. ||| {{human_reference}}'
    metadata: !TemplateMetadata
      choices_in_prompt: null
      metrics: []
      original_task: true
    name: e2e_basic_2
    reference: ''
  418c7942-06e8-48a7-b5f4-9f15bb874edf: !Template
    answer_choices: null
    id: 418c7942-06e8-48a7-b5f4-9f15bb874edf
    jinja: '{% set vars = {''key'':"area", ''value'':""} %}

      {% for feature in meaning_representation.split("]") if vars[''key'']  in feature
      %}

      {% set temp = vars.update({''value'':feature.replace(",","").replace(vars[''key'']+"[",
      '''')}) %}

      {%- endfor %}

      {% if vars["value"]|length > 0 %}

      {{human_reference}} From the passage given above, where is the location of the
      diner?  ||| {{vars[''value'']}}

      {% endif %}


      '
    metadata: !TemplateMetadata
      choices_in_prompt: null
      metrics: []
      original_task: false
    name: area_1
    reference: ''
  51666217-46cf-4950-bf63-108ed16e074c: !Template
    answer_choices: null
    id: 51666217-46cf-4950-bf63-108ed16e074c
    jinja: '{% set vars = {''key'':"familyFriendly", ''value'':""} %}

      {% for feature in meaning_representation.split("]") if vars[''key'']  in feature
      %}

      {% set temp = vars.update({''value'':feature.replace(",","").replace(vars[''key'']+"[",
      '''')}) %}

      {%- endfor %}

      {% if vars["value"]|length > 0 %}

      {{human_reference}} Is the dinery from the passage family friendly?  ||| {{vars[''value'']}}

      {% endif %}


      '
    metadata: !TemplateMetadata
      choices_in_prompt: null
      metrics: []
      original_task: false
    name: family_1
    reference: ''
  6e5f3eff-fab1-4c33-a296-5ac662754e87: !Template
    answer_choices: null
    id: 6e5f3eff-fab1-4c33-a296-5ac662754e87
    jinja: '{% set vars = {''key'':"near", ''value'':""} %}

      {% for feature in meaning_representation.split("]") if vars[''key'']  in feature
      %}

      {% set temp = vars.update({''value'':feature.replace(",","").replace(vars[''key'']+"[",
      '''')}) %}

      {%- endfor %}

      {% if vars["value"]|length > 0 %}

      {{human_reference}} Name the landmark that is close to this dinery according
      to the passage.  ||| {{vars[''value'']}}

      {% endif %}


      '
    metadata: !TemplateMetadata
      choices_in_prompt: null
      metrics: []
      original_task: false
    name: near_1
    reference: ''
  711bcf63-be82-4937-bdef-0c379d20bb74: !Template
    answer_choices: null
    id: 711bcf63-be82-4937-bdef-0c379d20bb74
    jinja: 'How would we create a sentence out of the following data: {{meaning_representation}}
      ?

      ||| {{human_reference}}'
    metadata: !TemplateMetadata
      choices_in_prompt: null
      metrics: []
      original_task: true
    name: e2e_basic_4
    reference: ''
  83992c17-745f-4940-b626-b01a85ba66c1: !Template
    answer_choices: null
    id: 83992c17-745f-4940-b626-b01a85ba66c1
    jinja: '{% set vars = {''key'':"name", ''value'':""} %}

      {% for feature in meaning_representation.split("]") if vars[''key'']  in feature
      %}

      {% set temp = vars.update({''value'':feature.replace(",","").replace(vars[''key'']+"[",
      '''')}) %}

      {%- endfor %}

      {% if vars["value"]|length > 0 %}

      {{human_reference}} From the passage given above, what is the name of the dinery?  |||
      {{vars[''value'']}}

      {% endif %}


      '
    metadata: !TemplateMetadata
      choices_in_prompt: null
      metrics: []
      original_task: false
    name: name_1
    reference: ''
  b67da63d-f220-4b9f-ae82-b4addf0c7573: !Template
    answer_choices: null
    id: b67da63d-f220-4b9f-ae82-b4addf0c7573
    jinja: '{% set vars = {''key'':"customer rating", ''value'':""} %}

      {% for feature in meaning_representation.split("]") if vars[''key'']  in feature
      %}

      {% set temp = vars.update({''value'':feature.replace(",","").replace(vars[''key'']+"[",
      '''')}) %}

      {%- endfor %}

      {% if vars["value"]|length > 0 %}

      {{human_reference}} According to this passage, what is the rating given to this
      dinery?  ||| {{vars[''value'']}}

      {% endif %}


      '
    metadata: !TemplateMetadata
      choices_in_prompt: null
      metrics: []
      original_task: false
    name: rating_1
    reference: ''
  bdecbb5a-d3e8-46f3-9ea8-22025bc59e3b: !Template
    answer_choices: null
    id: bdecbb5a-d3e8-46f3-9ea8-22025bc59e3b
    jinja: 'Given the following data: {{meaning_representation}} Generate a sentence
      about this dinery. ||| {{human_reference}}'
    metadata: !TemplateMetadata
      choices_in_prompt: null
      metrics: []
      original_task: true
    name: e2e_basic_1
    reference: ''
  f9089a30-1c6c-4a43-a5eb-586b1dcd72f2: !Template
    answer_choices: null
    id: f9089a30-1c6c-4a43-a5eb-586b1dcd72f2
    jinja: '{% set vars = {''key'':"priceRange", ''value'':""} %}

      {% for feature in meaning_representation.split("]") if vars[''key'']  in feature
      %}

      {% set temp = vars.update({''value'':feature.replace(",","").replace(vars[''key'']+"[",
      '''')}) %}

      {%- endfor %}

      {% if vars["value"]|length > 0 %}

      {{human_reference}} According to the passage, how much would one have to pay
      to eat here?  ||| {{vars[''value'']}}

      {% endif %}


      '
    metadata: !TemplateMetadata
      choices_in_prompt: null
      metrics: []
      original_task: false
    name: price_range_1
    reference: ''