Publish the local German redaction demo and measured CPU export
Browse files- app.mjs +3 -2
- index.html +3 -1
app.mjs
CHANGED
|
@@ -6,7 +6,8 @@ const input = by("input"),
|
|
| 6 |
const presets = {
|
| 7 |
mail: "Bitte schicken Sie die Bestätigung an lea.beispiel@example.org. Vielen Dank!",
|
| 8 |
city: "Wir fahren morgen nach Essen. Ist das Museum am Montag geöffnet?",
|
| 9 |
-
|
|
|
|
| 10 |
};
|
| 11 |
let worker,
|
| 12 |
nextId = 0,
|
|
@@ -56,7 +57,7 @@ function render() {
|
|
| 56 |
by("copy").disabled = by("json").disabled = false;
|
| 57 |
status.textContent =
|
| 58 |
payload.entities.length +
|
| 59 |
-
" geschwärzte Stellen · " +
|
| 60 |
last.ms +
|
| 61 |
" ms auf diesem Gerät" +
|
| 62 |
(last.first ? " (inklusive Modellstart)" : "");
|
|
|
|
| 6 |
const presets = {
|
| 7 |
mail: "Bitte schicken Sie die Bestätigung an lea.beispiel@example.org. Vielen Dank!",
|
| 8 |
city: "Wir fahren morgen nach Essen. Ist das Museum am Montag geöffnet?",
|
| 9 |
+
guest: "Im Einlassplan steht als Gast „Faust“. Stimmt der Eintrag?",
|
| 10 |
+
play: "Im Spielplan steht als Stück „Faust“. Stimmt der Eintrag?",
|
| 11 |
};
|
| 12 |
let worker,
|
| 13 |
nextId = 0,
|
|
|
|
| 57 |
by("copy").disabled = by("json").disabled = false;
|
| 58 |
status.textContent =
|
| 59 |
payload.entities.length +
|
| 60 |
+
(payload.entities.length === 1 ? " geschwärzte Stelle · " : " geschwärzte Stellen · ") +
|
| 61 |
last.ms +
|
| 62 |
" ms auf diesem Gerät" +
|
| 63 |
(last.first ? " (inklusive Modellstart)" : "");
|
index.html
CHANGED
|
@@ -36,7 +36,8 @@
|
|
| 36 |
<strong>Beispiele</strong
|
| 37 |
><button type="button" data-example="mail">E-Mail-Adresse</button
|
| 38 |
><button type="button" data-example="city">Gewöhnlicher Text</button
|
| 39 |
-
><button type="button" data-example="
|
|
|
|
| 40 |
</section>
|
| 41 |
<div class="editors">
|
| 42 |
<section class="panel">
|
|
@@ -91,6 +92,7 @@ Bitte schicken Sie die Bestätigung an lea.beispiel@example.org. Vielen Dank!</t
|
|
| 91 |
Angaben können sichtbar bleiben. Prüfe das Ergebnis vor der
|
| 92 |
Weitergabe.
|
| 93 |
</p>
|
|
|
|
| 94 |
</section>
|
| 95 |
<section id="findings" hidden>
|
| 96 |
<h2>Erkannte Stellen</h2>
|
|
|
|
| 36 |
<strong>Beispiele</strong
|
| 37 |
><button type="button" data-example="mail">E-Mail-Adresse</button
|
| 38 |
><button type="button" data-example="city">Gewöhnlicher Text</button
|
| 39 |
+
><button type="button" data-example="guest">Faust als Gast</button>
|
| 40 |
+
<button type="button" data-example="play">Faust als Stück</button>
|
| 41 |
</section>
|
| 42 |
<div class="editors">
|
| 43 |
<section class="panel">
|
|
|
|
| 92 |
Angaben können sichtbar bleiben. Prüfe das Ergebnis vor der
|
| 93 |
Weitergabe.
|
| 94 |
</p>
|
| 95 |
+
<p>Bei Schwelle 0 markierte das Modell in einem Test mit öffentlichen Bezeichnungen und gewöhnlichen Sätzen 62 von 98 unkritischen Nachrichten. <a href="./evaluation.json">Testergebnisse</a></p>
|
| 96 |
</section>
|
| 97 |
<section id="findings" hidden>
|
| 98 |
<h2>Erkannte Stellen</h2>
|