tacitus-source-lab / index.html
Giuliocc's picture
Finalize Source Lab input, review, and export workflows
c95195c verified
Raw History Blame Contribute Delete
4.29 kB
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="description" content="Check a claim or extract actor and event mentions with TACITUS browser models.">
<title>TACITUS Source Lab</title>
<link rel="stylesheet" href="source-lab.css">
<script src="inference.js" defer></script>
<script src="civic-examples.js" defer></script>
<script src="workspace.js" defer></script>
</head>
<body>
<main>
<header>
<h1>TACITUS Source Lab</h1>
<p>Check a claim against a passage, or find actor and event mentions in English source text.</p>
</header>
<nav aria-label="Analysis mode">
<button type="button" data-task="evidence" aria-pressed="true">Evidence</button>
<button type="button" data-task="actors" aria-pressed="false">Actors</button>
<button type="button" data-task="events" aria-pressed="false">Events</button>
</nav>
<section class="workbench">
<form id="analysis" novalidate>
<label for="passage">Source passage</label>
<textarea id="passage" rows="8" spellcheck="false" aria-describedby="passage-count" required></textarea>
<p class="note count" id="passage-count"></p>
<div id="claim-field">
<label for="claim">Claim</label>
<input id="claim" type="text" aria-describedby="claim-count" required>
<p class="note count" id="claim-count"></p>
</div>
<div id="role-field" hidden>
<label><input id="roles" type="checkbox"> Include experimental event participants</label>
<details><summary>Use a known trigger</summary>
<p>Select the trigger words in the source passage, then choose an event type.</p>
<label for="trigger-type">Event type</label>
<select id="trigger-type">
<option value="Attack">Attack</option><option value="Arrest">Arrest</option>
<option value="Military_operation">Military operation</option><option value="Protest">Protest</option>
<option value="Request">Request</option><option value="Sign_agreement">Sign agreement</option>
<option value="Supporting">Supporting</option><option value="Surrendering">Surrender</option>
</select>
<div class="actions"><button id="save-trigger" type="button">Use selected text</button><button id="clear-trigger" type="button" hidden>Clear trigger</button></div>
<p id="known-trigger" role="status"></p>
</details></div>
<div class="actions">
<button type="submit" id="run" class="primary">Check claim</button>
</div>
<div class="case-picker">
<label for="example-case">Try a civic benchmark case</label>
<select id="example-case"></select>
<button type="button" id="example">Load case</button>
<p id="example-status" class="note" role="status"></p>
<details id="case-reference" hidden>
<summary>Show provisional reference</summary>
<div id="case-annotation"></div>
<p class="note" id="case-source"></p>
</details>
</div>
<p class="note">Analysis runs in this tab. Your text stays in your browser.</p>
<p id="status" role="status" aria-live="polite"></p>
</form>
<article id="result" aria-labelledby="summary" hidden>
<h2 id="summary"></h2>
<p id="version"></p>
<p id="warning"></p>
<blockquote id="source"></blockquote>
<p id="span-help" class="note" hidden>Choose a mention to highlight its exact span in the source.</p>
<p id="span-status" class="sr-only" role="status"></p>
<div id="details" aria-describedby="span-help"></div>
<details><summary>Response JSON</summary><pre id="json"></pre></details>
<div class="actions">
<button type="button" id="download">Download JSON</button>
<button type="button" id="download-csv">Download CSV</button>
</div>
<p class="note">JSON includes the full result and warnings. CSV contains scores or spans for spreadsheet review.</p>
</article>
</section>
<footer>
<a href="saved-examples.html">Earlier saved examples</a>
<a href="review.html">Evaluation and review</a>
<a href="https://github.com/sargonxg/TCGC_TACITUS-Conflict-Grammar-Corpus_BENCHMARK/tree/main/source-toolkit">Source code on GitHub</a>
<a href="https://huggingface.co/spaces/Giuliocc/tacitus-source-lab/blob/main/toolkit/PORTFOLIO.md">Hugging Face project guide</a>
<a href="https://huggingface.co/Giuliocc/tacitus-evidence-base">Evidence model</a>
<a href="https://huggingface.co/Giuliocc/tacitus-actors-base">Actors model</a>
<a href="https://huggingface.co/Giuliocc/tacitus-events-base">Events model</a>
</footer>
</main>
</body>
</html>