-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRound1_validation_linguist-in-the-loop.html
297 lines (218 loc) · 10.5 KB
/
Round1_validation_linguist-in-the-loop.html
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
<style type="text/css">
label, input[type=radio], input[type=button] { cursor: pointer; }
.blue { color: blue; }
.red { color: red; }
.trial { padding: 15px 10px; }
.trial p, .trial table { padding-left: 20px; margin: 3px; }
.trial table { width: 400px; }
.trial tr td { width: 14%; text-align: center; }
.trial_number { font-size:1.2em; font-weight: bold; }
.tab { margin-left: 40px; }
#unanswered { font-weight: bold; font-size: 2em; color: black; background-color: red; margin: 0 auto; width: 500px; border: black 1px solid; padding: 10px; display:none; }
#answered { margin: 0 auto; width: 500px; border: black 1px solid; padding: 10px; display:none; }
td{padding:0 15px; }
input[type='checkbox'] { display: none; }
.wrap-collabsible { margin: 1.2rem 0; }
.lbl-toggle { display: block; font-weight: bold; font-family: monospace; font-size: 1.2rem; text-transform: uppercase; text-align: center; padding: 1rem; color: #DDD; background: #2b3e5a; cursor: pointer; border-radius: 7px; transition: all 0.25s ease-out; }
.lbl-toggle:hover { color: #FFF; }
.lbl-toggle::before { content: ' '; display: inline-block; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 5px solid currentColor; vertical-align: middle; margin-right: .7rem; transform: translateY(-2px); transition: transform .2s ease-out; }
.toggle:checked+.lbl-toggle::before { transform: rotate(90deg) translateX(-3px); }
.collapsible-content { max-height: 0px; overflow: hidden; transition: max-height .25s ease-in-out; }
.toggle:checked + .lbl-toggle + .collapsible-content { max-height: 350px; }
.toggle:checked+.lbl-toggle { border-bottom-right-radius: 0; border-bottom-left-radius: 0; }
.collapsible-content .content-inner { background: rgba(222, 212, 238, 0.521); border-bottom: 1px solid rgba(202, 191, 218, 0.493); border-bottom-left-radius: 7px; border-bottom-right-radius: 7px; padding: .5rem 1rem; }
.collapsible-content p { margin-bottom: 0; }
</style>
<h2>Instructions:</h2>
<p>This task will involve reading a pair of sentences: a 'text' and a 'statement' about that text. You will indicate what the relationship of the 'statement' is to the 'text'.</p>
<p><strong>Important:</strong> The order of the sentences is crucial! The text will always be first, and the statement follows.</p>
<p>For each pair, you will decide which of the following is true:</p>
<ul>
<li>The statement is definitely correct, given the text.</li>
<li>The statement might be correct, given the text.</li>
<li>The statement is definitely incorrect, given the text.</li>
</ul>
<div class="wrap-collabsible">
<input id="collapsible1" class="toggle" type="checkbox">
<label for="collapsible1" class="lbl-toggle">Example</label>
<div class="collapsible-content">
<div class="content-inner">
<table><tbody></tbody>
<p><span class="trial_number">Text:</span>
Dave Hanson, to whom nothing was impossible. Well, we have a nearly impossible task: a task of engineering and building.</p>
<p><span class="trial_number">Statement:</span>
This building job will be very difficult to complete.</p>
The statement about the text is:
<tr>
<td><label for="entailment_ex">Definitely correct</label></td>
<td><label for="neutral_ex">Maybe correct</label></td>
<td><label for="contradiction_ex">Definintely incorrect</label></td>
</tr>
<tr>
<td><input type="radio" id="entailment_ex" name="response_es" value="E" checked /></td>
<td><input type="radio" id="neutral_ex" name="response_ex" value="N" /></td>
<td><input type="radio" id="contradiction_ex" name="response_ex" value="C" /></td>
</tr>
In this case, the statmenent is definitely true for the text, so the button for 'Definitely correct' is clicked.
</tbody></table>
</div>
</div>
</div>
<br>
If needed, you can check out our FAQ page for examples and answers to common questions.
<br>
<hr noshade="noshade" />
<table class="count"><tbody>
<p><span class="trial_number">Text:</span>
${premise_1}</p>
<p><span class="trial_number">Statement:</span>
${hypothesis_1}</p>
The statement about the text is:
<tr>
<td><label for="entailment_1">Definitely correct</label></td>
<td><label for="neutral_1">Maybe correct</label></td>
<td><label for="contradiction_1">Definintely incorrect</label></td>
</tr>
<tr>
<td><input type="radio" id="entailment_1" name="response_1" value="E" /></td>
<td><input type="radio" id="neutral_1" name="response_1" value="N" /></td>
<td><input type="radio" id="contradiction_1" name="response_1" value="C" /></td>
</tr>
</tbody></table>
<hr noshade="noshade" />
<table class="count"><tbody>
<p><span class="trial_number">Text:</span>
${premise_2}</p>
<p><span class="trial_number">Statement:</span>
${hypothesis_2}</p>
The statement about the text is:
<tr>
<td><label for="entailment_2">Definitely correct</label></td>
<td><label for="neutral_2">Maybe correct</label></td>
<td><label for="contradiction_2">Definintely incorrect</label></td>
</tr>
<tr>
<td><input type="radio" id="entailment_2" name="response_2" value="E" /></td>
<td><input type="radio" id="neutral_2" name="response_2" value="N" /></td>
<td><input type="radio" id="contradiction_2" name="response_2" value="C" /></td>
</tr>
</tbody></table>
<hr noshade="noshade" />
<table class="count"><tbody>
<p><span class="trial_number">Text:</span>
${premise_3}</p>
<p><span class="trial_number">Statement:</span>
${hypothesis_3}</p>
The statement about the text is:
<tr>
<td><label for="entailment_3">Definitely correct</label></td>
<td><label for="neutral_3">Maybe correct</label></td>
<td><label for="contradiction_3">Definintely incorrect</label></td>
</tr>
<tr>
<td><input type="radio" id="entailment_3" name="response_3" value="E" /></td>
<td><input type="radio" id="neutral_3" name="response_3" value="N" /></td>
<td><input type="radio" id="contradiction_3" name="response_3" value="C" /></td>
</tr>
</tbody></table>
<hr noshade="noshade" />
<table class="count"><tbody>
<p><span class="trial_number">Text:</span>
${premise_4}</p>
<p><span class="trial_number">Statement:</span>
${hypothesis_4}</p>
The statement about the text is:
<tr>
<td><label for="entailment_4">Definitely correct</label></td>
<td><label for="neutral_4">Maybe correct</label></td>
<td><label for="contradiction_4">Definintely incorrect</label></td>
</tr>
<tr>
<td><input type="radio" id="entailment_4" name="response_4" value="E" /></td>
<td><input type="radio" id="neutral_4" name="response_4" value="N" /></td>
<td><input type="radio" id="contradiction_4" name="response_4" value="C" /></td>
</tr>
</tbody></table>
<hr noshade="noshade" />
<table class="count"><tbody>
<p><span class="trial_number">Text:</span>
${premise_5}</p>
<p><span class="trial_number">Statement:</span>
${hypothesis_5}</p>
The statement about the text is:
<tr>
<td><label for="entailment_5">Definitely correct</label></td>
<td><label for="neutral_5">Maybe correct</label></td>
<td><label for="contradiction_5">Definintely incorrect</label></td>
</tr>
<tr>
<td><input type="radio" id="entailment_5" name="response_5" value="E" /></td>
<td><input type="radio" id="neutral_5" name="response_5" value="N" /></td>
<td><input type="radio" id="contradiction_5" name="response_5" value="C" /></td>
</tr>
</tbody></table>
<hr noshade="noshade" />
<table class="count"><tbody>
<p><span class="trial_number">Text:</span>
${premise_6}</p>
<p><span class="trial_number">Statement:</span>
${hypothesis_6}</p>
The statement about the text is:
<tr>
<td><label for="entailment_6">Definitely correct</label></td>
<td><label for="neutral_6">Maybe correct</label></td>
<td><label for="contradiction_6">Definintely incorrect</label></td>
</tr>
<tr>
<td><input type="radio" id="entailment_6" name="response_6" value="E" /></td>
<td><input type="radio" id="neutral_6" name="response_6" value="N" /></td>
<td><input type="radio" id="contradiction_6" name="response_6" value="C" /></td>
</tr>
</tbody></table>
<hr noshade="noshade" />
<div>
<p>If you experienced any issues that made this HIT especially difficult, please provide more detail below (optional)</p>
<input type="text" id="comments" name="comments" size="100" /></span>
</div>
<br />
<div id="unanswered">
<span> </span> questions (out of 6 total) have been answered. If you submit now, you will not be paid.<br />
<input type="button" value="HIGHLIGHT UNANSWERED QUESTIONS" id="highlight-button" />
</div>
<div id="answered">
<span> </span> questions (out of 6 total) have been answered. You are ready to submit.
</div>
<p><input type="hidden" name="numanswered" id="numanswered" /> <input type="hidden" name="useragent" id="useragent" /></p>
<script type="text/javascript" src="https://code.jquery.com/jquery-1.9.1.min.js"></script>
<script type='text/javascript'>
// counter code:
total_number = parseInt("6") || Infinity;
function count() {
if ($(this).is('input') && $(this).closest('table.count').find('input[type=radio]:checked').length == 1)
$(this).closest('table').css('background','transparent');
var num = $('.count input[type=radio]:checked').length;
$('#unanswered span, #answered span').text(num);
$('#numanswered').val(num);
if ( num < total_number ) {
$('#unanswered').show();
$('#answered').hide();
} else {
$('#unanswered').hide();
$('#answered').show();
}
}
$(count);
$('input[type=radio]').bind('change', count);
$(function() {
$('#useragent').val(navigator.userAgent);
});
function highlight() {
$('.count').each(function() {
if (!$(this).find('input').is(answered))
$(this).css('background', 'yellow');
else
$(this).css('background', 'transparent');
});
}
$('#highlight-button').click(highlight);
</script>