-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
600 lines (573 loc) · 22.2 KB
/
index.html
File metadata and controls
600 lines (573 loc) · 22.2 KB
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
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
<!doctype html>
<html lang="en" data-theme="dark">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ExplainGrade — Advanced ASAG System</title>
<meta
name="description"
content="Explainable Automated Short Answer Grading with sentence-level attribution and semantic drift analysis."
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="bg-blobs">
<div class="blob blob-1"></div>
<div class="blob blob-2"></div>
<div class="blob blob-3"></div>
</div>
<!-- ═══ NAVBAR ═══ -->
<nav class="navbar" id="navbar">
<div class="container">
<a href="index.html" class="nav-logo">🔬 ExplainGrade</a>
<ul class="nav-links">
<li><a href="index.html" class="nav-link active">Home</a></li>
<li><a href="pipeline.html" class="nav-link">Pipeline</a></li>
<li><a href="research.html" class="nav-link">Research</a></li>
<li><a href="usage.html" class="nav-link">How to Use</a></li>
<li><a href="chat.html" class="nav-link">Assistant 💬</a></li>
<li><a href="analytics.html" class="nav-link">Analytics 📊</a></li>
<li>
<a href="technologies.html" class="nav-link">Technologies 🔧</a>
</li>
<li>
<a href="test_results.html" class="nav-link">Test Results ✅</a>
</li>
</ul>
<div class="nav-actions">
<button class="btn btn-secondary" id="theme-toggle">☀️</button>
<a
href="https://github.com/manikeshmk/Explainable_Summary_Score"
target="_blank"
class="btn btn-primary"
style="padding: 0.5rem 1rem"
>GitHub</a
>
</div>
</div>
</nav>
<!-- ═══ HERO ═══ -->
<header class="hero">
<div class="container hero-grid">
<div class="hero-content">
<span class="eyebrow">Explainable AI · Assessment Intelligence</span>
<h1 class="hero-title">Explainable short-answer scoring</h1>
<p class="hero-subtitle">
Run the dual-stage pipeline that powers this project: lexical
alignment, semantic reranking, and rich evidence surfaces for every
teacher + student pair.
</p>
<div class="hero-actions">
<a href="#demo" class="btn btn-primary hero-cta"
>Launch Live Demo</a
>
<a href="#batch" class="btn btn-link">Review Batch Runner</a>
</div>
<div class="hero-metrics">
<div class="metric-pill">
<span class="metric-label">Latency</span>
<span class="metric-value">~2.3s</span>
</div>
<div class="metric-pill">
<span class="metric-label">Explainers</span>
<span class="metric-value">SHAP · Drift</span>
</div>
<div class="metric-pill">
<span class="metric-label">Deployments</span>
<span class="metric-value">Vercel / Local</span>
</div>
</div>
</div>
<div class="hero-panel">
<div class="panel-card hero-info-card">
<p class="panel-label">Pipeline snapshot</p>
<div class="pipeline-steps">
<div class="pipeline-step">
<span class="step-badge">Stage I</span>
<div>
<strong>Lexical alignment</strong>
<p>
Anchor extraction, edit distance, and semantic overlap
establish a safe floor before reranking.
</p>
</div>
</div>
<div class="pipeline-step">
<span class="step-badge">Stage II</span>
<div>
<strong>Semantic reranking</strong>
<p>
Concept clustering + drift scoring highlight where the
student summary diverges.
</p>
</div>
</div>
</div>
</div>
<div class="panel-card hero-info-card">
<p class="panel-label">What the live demo shows</p>
<ul class="hero-points">
<li>Predicted grade with verdict narrative</li>
<li>SHAP bars, sentence attributions, anchor coverage</li>
<li>Semantic drift matrix, concept map, batch exports</li>
<li>📈 Temporal learning analysis (multi-submission tracking)</li>
</ul>
<p class="panel-note">
Everything renders in-browser using <code>scorer.js</code>,
explainability modules, and temporal drift research.
</p>
</div>
</div>
</div>
</header>
<!-- ═══ LIVE DEMO ═══ -->
<section class="section" id="demo">
<div class="container">
<div class="glass-card">
<div class="section-heading">
<div>
<p class="eyebrow">Live evaluation workspace</p>
<h2>✍️ Live Scoring Demo</h2>
<p class="section-subtitle">
Paste a teacher reference and a student response. We will run
the dual-stage pipeline and surface explainability artifacts
instantly.
<span
style="
display: block;
margin-top: 0.75rem;
font-size: 0.95rem;
color: var(--text-dim);
"
>
💡 <strong>Temporal Analysis:</strong> Submit multiple answers
to see learning trajectory, improvement scores, and
consistency metrics.
</span>
</p>
</div>
<div class="heading-actions">
<button class="btn btn-secondary btn-sm" id="try-sample">
Sample 1 · Perfect Match
</button>
<button class="btn btn-secondary btn-sm" id="try-sample-2">
Sample 2 · Transcript Summary
</button>
</div>
</div>
<div class="demo-grid">
<form id="demo-form">
<div class="form-group">
<label class="form-label">Reference / Teacher Answer</label>
<textarea
id="ref-answer"
class="form-control"
rows="8"
placeholder="Paste the ideal answer or teacher script summary here..."
required
></textarea>
</div>
<div class="form-group">
<label class="form-label">Student Answer / Summary</label>
<textarea
id="stu-answer"
class="form-control"
rows="8"
placeholder="Paste the student's response here..."
required
></textarea>
</div>
<div style="display: flex; gap: 1rem; align-items: flex-end">
<div class="form-group" style="flex: 1">
<label class="form-label">Max Score</label>
<input
id="max-score"
type="number"
class="form-control"
value="10"
min="1"
max="100"
/>
</div>
<button
id="compute-score-btn"
type="submit"
class="btn btn-primary"
style="flex: 2; height: 50px; margin-bottom: 1.5rem"
>
⚡ Compute Score
</button>
</div>
</form>
<div id="results-placeholder" class="results-placeholder">
<span>📊</span>
<p>Fill the form to see explainable results.</p>
</div>
<div id="results-content" class="hidden">
<div class="score-main glass-card" style="padding: 2rem">
<div class="score-circle" id="score-circle">
<div class="score-value-wrap">
<span class="score-value" id="score-val">--</span>
<span class="score-max" id="score-max-val">/ 10</span>
</div>
</div>
<h3 style="margin-bottom: 0.5rem">Predicted Grade</h3>
<p
id="score-verdict"
style="color: var(--text-dim); font-size: 0.9rem"
></p>
</div>
</div>
</div>
<div
id="xai-content"
class="hidden"
style="
margin-top: 3rem;
border-top: 1px solid var(--border-glass);
padding-top: 30px;
"
>
<h2 class="mb-4">🔍 Explainability Dashboard</h2>
<div class="xai-grid">
<div class="viz-card glass-card xai-card span-2">
<div class="viz-header">
<h3 class="viz-title">📝 Summary Feedback</h3>
<span class="badge" style="margin-bottom: 0"
>Plain English</span
>
</div>
<div class="viz-body">
<div id="explanation-body" class="xai-text-body"></div>
</div>
</div>
<div class="viz-card glass-card xai-card">
<div class="viz-header">
<h3 class="viz-title">📊 Metric Impact (SHAP)</h3>
</div>
<div class="viz-body">
<div id="shap-body" class="shap-body"></div>
<p class="viz-footnote">
Green = positive impact, Red = negative impact compared to
average.
</p>
</div>
</div>
<div class="viz-card glass-card xai-card span-2">
<div class="viz-header">
<h3 class="viz-title">🧭 Score Waterfall</h3>
<span class="badge" style="margin-bottom: 0"
>Contribution path</span
>
</div>
<div class="viz-body">
<canvas
id="waterfall-canvas"
class="waterfall-canvas"
width="900"
height="340"
></canvas>
<div id="waterfall-legend" class="waterfall-legend"></div>
<p class="viz-footnote">
This chart stacks each feature contribution to show how the
final score is built.
</p>
</div>
</div>
<div class="viz-card glass-card xai-card">
<div class="viz-header">
<h3 class="viz-title">📋 Student Metric Coverage</h3>
<span class="badge" style="margin-bottom: 0"
>Data-driven</span
>
</div>
<div class="viz-body">
<div id="metric-comparison" class="dual-bar-grid"></div>
<p class="viz-footnote">
Each bar shows how strongly the student response covers that
metric.
</p>
</div>
</div>
<div class="viz-card glass-card xai-card">
<div class="viz-header">
<h3 class="viz-title">📐 Feature Balance Radar</h3>
<span class="badge" style="margin-bottom: 0"
>5-D Metrics</span
>
</div>
<div class="viz-body">
<canvas
id="metric-radar"
class="radar-canvas"
width="360"
height="300"
></canvas>
<p class="viz-footnote">
Normalized snapshot of semantic, lexical, and coverage
signals.
</p>
</div>
</div>
<div class="viz-card glass-card xai-card">
<div class="viz-header">
<h3 class="viz-title">💬 Sentence Attribution</h3>
<span class="badge" style="margin-bottom: 0"
>ExASAG (BEA 2023)</span
>
</div>
<div class="viz-body">
<div
id="sentence-attribution-body"
class="xai-scroll-body"
></div>
</div>
</div>
<div class="viz-card glass-card xai-card">
<div class="viz-header">
<h3 class="viz-title">🌡️ Sentence Impact Heatmap</h3>
<span class="badge" style="margin-bottom: 0">Top swings</span>
</div>
<div class="viz-body">
<div id="sentence-heatmap" class="sentence-heatmap"></div>
<p class="viz-footnote">
Bright blocks surface the most helpful or harmful sentences.
</p>
</div>
</div>
<div
class="viz-card glass-card xai-card span-2"
id="drift-timeline-card"
>
<div class="viz-header">
<h3 class="viz-title">📍 Semantic Drift Timeline</h3>
<span class="badge" style="margin-bottom: 0"
>Structure Alignment</span
>
</div>
<div class="viz-body">
<div class="timeline-strip">
<canvas
id="drift-timeline-canvas"
class="timeline-canvas"
width="640"
height="200"
></canvas>
<div
id="drift-timeline-empty"
class="timeline-empty hidden"
>
Need more overlapping anchors to trace drift.
</div>
<div id="drift-timeline-meta" class="timeline-meta"></div>
</div>
<p class="viz-description">
Alignment of Teacher Script (X: 100 parts) vs. Student
Summary (Y: 10 parts).
</p>
<div id="drift-matrix-wrap" class="drift-matrix-container">
<div id="drift-matrix" class="drift-matrix"></div>
</div>
</div>
</div>
<div class="viz-card glass-card xai-card span-2 concept-card">
<div class="viz-header">
<h3 class="viz-title">🗺️ Concept Coverage Map</h3>
</div>
<div class="viz-body">
<canvas id="cluster-canvas" width="800" height="300"></canvas>
<div id="cluster-legend" class="cluster-legend"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- ═══ BATCH UPLOADS ═══ -->
<section class="section" id="batch">
<div class="container">
<div class="section-heading text-center">
<div>
<p class="eyebrow">Bulk evaluation</p>
<h2>🚀 File Grade Runner</h2>
<p class="section-subtitle">
Automate grading for an entire cohort with CSV or pair long
transcripts with multi-student summaries via our XLSX workflow.
</p>
</div>
</div>
<div class="batch-grid">
<!-- CSV Batch -->
<div class="glass-card" style="border-top: 4px solid var(--accent2)">
<h3 style="margin-bottom: 1.5rem">📁 Batch CSV Grading</h3>
<p style="color: var(--text-dim); margin-bottom: 2rem">
Upload a CSV file containing columns like `question`,
`reference_answer`, and `student_answer` for bulk processing.
</p>
<div
id="upload-zone"
class="text-center"
style="
border: 2px dashed var(--border-glass);
padding: 3rem;
border-radius: var(--radius-md);
cursor: pointer;
"
>
<span style="font-size: 3rem">📄</span>
<p style="margin-top: 1rem">
Drop CSV here or <strong>browse</strong>
</p>
<input
type="file"
id="batch-file-input"
accept=".csv"
class="hidden"
/>
</div>
</div>
<!-- XLSX Transcript Eval -->
<div class="glass-card" style="border-top: 4px solid var(--primary)">
<h3 style="margin-bottom: 1.5rem">📊 Script Evaluation (XLSX)</h3>
<p style="color: var(--text-dim); margin-bottom: 1rem">
Grade multiple student summaries (.xlsx) against a long Meet
transcript (.docx).
</p>
<div
style="display: grid; grid-template-columns: 1fr 1fr; gap: 1rem"
>
<div
id="script-upload-zone"
class="upload-zone"
style="
border: 2px dashed var(--border-glass);
padding: 1.5rem;
border-radius: var(--radius-md);
font-size: 0.85rem;
text-align: center;
cursor: pointer;
"
>
<div style="font-weight: 600; margin-bottom: 0.35rem">
Teacher .docx
</div>
<p class="upload-file-name" id="script-upload-filename">
No file selected yet
</p>
<input
type="file"
id="script-file-input"
accept=".docx"
class="hidden"
/>
</div>
<div
id="summary-upload-zone"
class="upload-zone"
style="
border: 2px dashed var(--border-glass);
padding: 1.5rem;
border-radius: var(--radius-md);
font-size: 0.85rem;
text-align: center;
cursor: pointer;
"
>
<div style="font-weight: 600; margin-bottom: 0.35rem">
Student .xlsx
</div>
<p class="upload-file-name" id="summary-upload-filename">
No file selected yet
</p>
<input
type="file"
id="summary-file-input"
accept=".xlsx"
class="hidden"
/>
</div>
</div>
<button
id="run-script-eval-btn"
class="btn btn-primary"
style="width: 100%; margin-top: 1.5rem"
disabled
>
Run Class Evaluation
</button>
<p id="script-eval-status" class="eval-status hidden">
Class evaluation in progress...
</p>
</div>
</div>
<div
id="batch-progress"
class="hidden"
style="margin-top: 2rem; text-align: center"
></div>
<div id="batch-results" class="hidden" style="margin-top: 3rem">
<div id="batch-table-wrap" class="glass-card batch-table-card"></div>
<!-- ANALYTICS VISUALIZATION SECTION -->
<div
id="batch-analytics-container"
class="hidden"
style="margin-top: 3rem"
>
<h2 style="margin-bottom: 2rem">📊 Batch Analytics Summary</h2>
<div id="batch-anomalies" class="analytics-grid"></div>
<div id="batch-peer-comparison" class="analytics-grid"></div>
<div id="batch-learning-curves" class="analytics-grid"></div>
<div id="batch-momentum" class="analytics-grid"></div>
<div id="batch-coverage" class="analytics-grid"></div>
</div>
</div>
</div>
</section>
<!-- ═══ FOOTER ═══ -->
<footer class="footer">
<div class="container">
<div class="footer-links">
<a href="pipeline.html" class="footer-link">Pipeline</a>
<a href="research.html" class="footer-link">Research</a>
<a href="usage.html" class="footer-link">Usage</a>
<a href="chat.html" class="footer-link">Assistant</a>
</div>
<p>
© 2026 ExplainGrade · Academic Project by manikeshmk · Built for
XAI in ASAG
</p>
</div>
</footer>
<div
id="toast"
class="hidden"
style="
position: fixed;
bottom: 2rem;
right: 2rem;
background: var(--bg-card);
backdrop-filter: var(--glass-blur);
border: 1px solid var(--border-glass);
padding: 1rem 2rem;
border-radius: var(--radius-md);
z-index: 9999;
box-shadow: var(--shadow-lg);
"
></div>
<script src="https://cdn.jsdelivr.net/npm/papaparse@5.4.1/papaparse.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/mammoth@1.8.0/mammoth.browser.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/xlsx@0.18.5/dist/xlsx.full.min.js"></script>
<script src="scorer.js"></script>
<script src="batch_analytics_visualizer.js"></script>
<script src="analytics-handler.js"></script>
<script src="chat.js"></script>
<script src="app.js"></script>
</body>
</html>