luulinh90s
commited on
Commit
·
0c987e6
1
Parent(s):
2b0d981
update
Browse files- templates/attribution.html +1 -1
- templates/introduction.html +3 -3
- templates/subjective.html +94 -0
templates/attribution.html
CHANGED
@@ -162,7 +162,7 @@
|
|
162 |
This multi-level highlighting helps users quickly grasp both the broad context and the specific details that support the system's answer.
|
163 |
</p>
|
164 |
<p>
|
165 |
-
During the experiment, you will use explanations to
|
166 |
</p>
|
167 |
<button onclick="location.href='{{ url_for('index') }}'">Proceed to Experiment</button>
|
168 |
</div>
|
|
|
162 |
This multi-level highlighting helps users quickly grasp both the broad context and the specific details that support the system's answer.
|
163 |
</p>
|
164 |
<p>
|
165 |
+
During the experiment, you will use explanations to simulate model prediction. Your task will be to look at the provided explanations and simulate the model prediction on the Statement (TRUE or FALSE).
|
166 |
</p>
|
167 |
<button onclick="location.href='{{ url_for('index') }}'">Proceed to Experiment</button>
|
168 |
</div>
|
templates/introduction.html
CHANGED
@@ -61,7 +61,7 @@
|
|
61 |
<div class="container">
|
62 |
<div class="intro">
|
63 |
<h1>Introduction to Table Question Answering</h1>
|
64 |
-
<p>In this experiment, you will interact with Table Question Answering (TableQA)
|
65 |
</div>
|
66 |
|
67 |
<div class="sample-container">
|
@@ -194,14 +194,14 @@
|
|
194 |
</tr>
|
195 |
</table>
|
196 |
</body></html>
|
197 |
-
<h3>Model
|
198 |
</body></html>
|
199 |
"></iframe>
|
200 |
</div>
|
201 |
|
202 |
<div class="outro">
|
203 |
<h2>Your Task</h2>
|
204 |
-
<p>Your task in this experiment is to evaluate different methods that explain how
|
205 |
</div>
|
206 |
|
207 |
<div class="button-container">
|
|
|
61 |
<div class="container">
|
62 |
<div class="intro">
|
63 |
<h1>Introduction to Table Question Answering</h1>
|
64 |
+
<p>In this experiment, you will interact with Table Question Answering (TableQA) models. TableQA involves answering questions based on data provided in tables, similar to spreadsheets.</p>
|
65 |
</div>
|
66 |
|
67 |
<div class="sample-container">
|
|
|
194 |
</tr>
|
195 |
</table>
|
196 |
</body></html>
|
197 |
+
<h3>Model says this Statement is:</span> TRUE</h3>
|
198 |
</body></html>
|
199 |
"></iframe>
|
200 |
</div>
|
201 |
|
202 |
<div class="outro">
|
203 |
<h2>Your Task</h2>
|
204 |
+
<p>Your task in this experiment is to evaluate different methods that explain how a TableQA model predicts an answer (for example, TRUE). You will be given the explanation and simulate what the TableQA model will predict.</p>
|
205 |
</div>
|
206 |
|
207 |
<div class="button-container">
|
templates/subjective.html
ADDED
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Feedback on Table QA Explanations</title>
|
7 |
+
<style>
|
8 |
+
body {
|
9 |
+
font-family: Arial, sans-serif;
|
10 |
+
line-height: 1.6;
|
11 |
+
color: #333;
|
12 |
+
max-width: 800px;
|
13 |
+
margin: 0 auto;
|
14 |
+
padding: 20px;
|
15 |
+
}
|
16 |
+
h1 {
|
17 |
+
color: #2c3e50;
|
18 |
+
text-align: center;
|
19 |
+
}
|
20 |
+
.question {
|
21 |
+
margin-bottom: 20px;
|
22 |
+
}
|
23 |
+
.likert {
|
24 |
+
display: flex;
|
25 |
+
justify-content: space-between;
|
26 |
+
margin-top: 10px;
|
27 |
+
}
|
28 |
+
.likert-option {
|
29 |
+
text-align: center;
|
30 |
+
flex: 1;
|
31 |
+
}
|
32 |
+
input[type="radio"] {
|
33 |
+
margin-bottom: 5px;
|
34 |
+
}
|
35 |
+
button {
|
36 |
+
display: block;
|
37 |
+
width: 200px;
|
38 |
+
margin: 20px auto;
|
39 |
+
padding: 10px;
|
40 |
+
background-color: #3498db;
|
41 |
+
color: white;
|
42 |
+
border: none;
|
43 |
+
border-radius: 5px;
|
44 |
+
font-size: 16px;
|
45 |
+
cursor: pointer;
|
46 |
+
}
|
47 |
+
button:hover {
|
48 |
+
background-color: #2980b9;
|
49 |
+
}
|
50 |
+
</style>
|
51 |
+
</head>
|
52 |
+
<body>
|
53 |
+
<h1>Feedback on Table QA Explanations</h1>
|
54 |
+
|
55 |
+
<form id="feedbackForm">
|
56 |
+
<div class="question">
|
57 |
+
<p>After using the explanations, how much do you think they helped you understand the reasoning process of the Table QA model?</p>
|
58 |
+
<div class="likert">
|
59 |
+
<div class="likert-option">
|
60 |
+
<input type="radio" name="understanding" value="1" id="understanding1" required>
|
61 |
+
<label for="understanding1">Not at all helpful</label>
|
62 |
+
</div>
|
63 |
+
<div class="likert-option">
|
64 |
+
<input type="radio" name="understanding" value="2" id="understanding2">
|
65 |
+
<label for="understanding2">Slightly helpful</label>
|
66 |
+
</div>
|
67 |
+
<div class="likert-option">
|
68 |
+
<input type="radio" name="understanding" value="3" id="understanding3">
|
69 |
+
<label for="understanding3">Moderately helpful</label>
|
70 |
+
</div>
|
71 |
+
<div class="likert-option">
|
72 |
+
<input type="radio" name="understanding" value="4" id="understanding4">
|
73 |
+
<label for="understanding4">Very helpful</label>
|
74 |
+
</div>
|
75 |
+
<div class="likert-option">
|
76 |
+
<input type="radio" name="understanding" value="5" id="understanding5">
|
77 |
+
<label for="understanding5">Extremely helpful</label>
|
78 |
+
</div>
|
79 |
+
</div>
|
80 |
+
</div>
|
81 |
+
|
82 |
+
<button type="submit">Submit Feedback</button>
|
83 |
+
</form>
|
84 |
+
|
85 |
+
<script>
|
86 |
+
document.getElementById('feedbackForm').addEventListener('submit', function(e) {
|
87 |
+
e.preventDefault();
|
88 |
+
var selectedValue = document.querySelector('input[name="understanding"]:checked').value;
|
89 |
+
alert('Thank you for your feedback! You selected: ' + selectedValue);
|
90 |
+
// Here you can add code to send this data to your server
|
91 |
+
});
|
92 |
+
</script>
|
93 |
+
</body>
|
94 |
+
</html>
|