Align documentation with the verified Swedish-form evidence
Browse filesCorrect measurement scope and provenance before the accompanying article is published. README only; model weights, Core ML packages, evaluation files and dataset splits are unchanged. The model-card changes link to the merged public CPU/Neural Engine investigation.
README.md
CHANGED
|
@@ -25,10 +25,10 @@ configs:
|
|
| 25 |
# One-Pass SV-Forms synthetic corpus (Swedish)
|
| 26 |
|
| 27 |
**This dataset is entirely synthetic.** It was generated by a script from a concept catalogue, not
|
| 28 |
-
collected from
|
| 29 |
-
`.invalid`,
|
| 30 |
-
|
| 31 |
-
|
| 32 |
[`precisit/one-pass-sv-forms`](https://huggingface.co/precisit/one-pass-sv-forms) can be
|
| 33 |
reproduced and refuted, not because the data has value as data.
|
| 34 |
|
|
@@ -39,40 +39,43 @@ of candidate decisions and returns one score per option, generating no text. Eac
|
|
| 39 |
decision:
|
| 40 |
|
| 41 |
```json
|
| 42 |
-
{"context": "UPPGIFT fyll i formuläret från dokumentet och skicka sedan in\nFORM ...\nELEMENT Edit \"
|
| 43 |
-
"options": ["fyll
|
| 44 |
"label": 0,
|
| 45 |
-
"meta": {"action": "fill", "form_signature": "adress|efternamn|fornamn|...", "role": "Edit", "seed": 2026}}
|
| 46 |
```
|
| 47 |
|
| 48 |
-
- `context`
|
| 49 |
extracted from an attached document. Bytes are what the model sees; there is no tokenizer.
|
| 50 |
-
- `options`
|
| 51 |
-
- `meta.action`
|
| 52 |
-
- `meta.form_signature`
|
| 53 |
on this value**, so a form's rows never straddle train/validation/test.
|
| 54 |
|
| 55 |
## How it was generated
|
| 56 |
|
| 57 |
```bash
|
| 58 |
git clone https://github.com/precisit/one-pass-specialists
|
| 59 |
-
cd one-pass-specialists
|
|
|
|
|
|
|
|
|
|
| 60 |
```
|
| 61 |
|
| 62 |
-
|
| 63 |
ratios, the generator configuration and a SHA-256 per split, so a regeneration can be checked
|
| 64 |
-
rather than trusted. This upload
|
| 65 |
-
|
| 66 |
|
| 67 |
| Split | Episodes | Decisions | SHA-256 |
|
| 68 |
| --- | ---: | ---: | --- |
|
| 69 |
| train | 7 984 | 234 921 | in `manifest.json` |
|
| 70 |
| validation | 1 007 | 29 649 | in `manifest.json` |
|
| 71 |
| test | 1 009 | 29 839 | in `manifest.json` |
|
| 72 |
-
| `demo-handwritten.jsonl` |
|
| 73 |
|
| 74 |
-
Action mix in the training split: `skip` 112 006, `fill` 108 147, `click` 7 984, `check` 6 784 (
|
| 75 |
-
|
| 76 |
|
| 77 |
## Intended use and limits
|
| 78 |
|
|
@@ -83,12 +86,14 @@ task is deliberately full of "leave this alone" decisions, because that is what
|
|
| 83 |
catalogue with a fixed set of form templates; real Swedish forms have vocabulary, layouts and
|
| 84 |
edge cases it does not contain. The released model's own card states the same limit, and the
|
| 85 |
numbers on synthetic held-out rows are not a promise about any real form.
|
| 86 |
-
- **
|
| 87 |
score 77 % top-1; at 4 000, 98.94 %; at 10 000, 99.29 %. The corpus is published at 10 000
|
| 88 |
episodes because that is what trained the released checkpoint, and the smaller configurations are
|
| 89 |
-
one command away if you want the curve for yourself.
|
| 90 |
-
|
| 91 |
-
|
|
|
|
|
|
|
| 92 |
|
| 93 |
## Licence
|
| 94 |
|
|
|
|
| 25 |
# One-Pass SV-Forms synthetic corpus (Swedish)
|
| 26 |
|
| 27 |
**This dataset is entirely synthetic.** It was generated by a script from a concept catalogue, not
|
| 28 |
+
collected from people or customer submissions. Names and organisations are constructed,
|
| 29 |
+
email addresses use `.invalid`, and identifier-shaped values are generated locally.
|
| 30 |
+
They are not checked against registries; coincidental matches with real names or
|
| 31 |
+
identifiers cannot be ruled out. The dataset is published so the recipe behind
|
| 32 |
[`precisit/one-pass-sv-forms`](https://huggingface.co/precisit/one-pass-sv-forms) can be
|
| 33 |
reproduced and refuted, not because the data has value as data.
|
| 34 |
|
|
|
|
| 39 |
decision:
|
| 40 |
|
| 41 |
```json
|
| 42 |
+
{"context": "UPPGIFT fyll i formuläret från dokumentet och skicka sedan in\nFORM ...\nELEMENT Edit \"E-postadress\" value=\"\"",
|
| 43 |
+
"options": ["fyll E-post: anna@example.invalid", "fyll Förnamn: Anna", "kryssa", "klicka", "hoppa över"],
|
| 44 |
"label": 0,
|
| 45 |
+
"meta": {"action": "fill", "form_signature": "adress|efternamn|epost|fornamn|...", "role": "Edit", "seed": 2026}}
|
| 46 |
```
|
| 47 |
|
| 48 |
+
- `context`: the task line, the form title and the element in question, plus the entities
|
| 49 |
extracted from an attached document. Bytes are what the model sees; there is no tokenizer.
|
| 50 |
+
- `options`: the label is an index into this list, so the option order *is* part of the sample.
|
| 51 |
+
- `meta.action`: `fill` / `check` / `click` / `skip`, the higher-level decision.
|
| 52 |
+
- `meta.form_signature`: the sorted field set of the form the row came from. **The splits are made
|
| 53 |
on this value**, so a form's rows never straddle train/validation/test.
|
| 54 |
|
| 55 |
## How it was generated
|
| 56 |
|
| 57 |
```bash
|
| 58 |
git clone https://github.com/precisit/one-pass-specialists
|
| 59 |
+
cd one-pass-specialists
|
| 60 |
+
git checkout 6a6def7887ea13a323049a972409b19aed953559
|
| 61 |
+
# After installing the toolkit dependencies described in its README:
|
| 62 |
+
python -m onepass.synth --output data/sv --episodes 10000 --seed 2026
|
| 63 |
```
|
| 64 |
|
| 65 |
+
With the same generator revision and environment, generation is deterministic given `seed`; `manifest.json` records the episode count, the
|
| 66 |
ratios, the generator configuration and a SHA-256 per split, so a regeneration can be checked
|
| 67 |
+
rather than trusted. This upload used that recipe, and the files here are gzipped copies
|
| 68 |
+
of its splits. See `manifest.json` for the recorded checksums and split metadata.
|
| 69 |
|
| 70 |
| Split | Episodes | Decisions | SHA-256 |
|
| 71 |
| --- | ---: | ---: | --- |
|
| 72 |
| train | 7 984 | 234 921 | in `manifest.json` |
|
| 73 |
| validation | 1 007 | 29 649 | in `manifest.json` |
|
| 74 |
| test | 1 009 | 29 839 | in `manifest.json` |
|
| 75 |
+
| `demo-handwritten.jsonl` | n/a | 50 | hand-written, not generated: three forms with gold decisions, kept outside the splits as an out-of-distribution check |
|
| 76 |
|
| 77 |
+
Action mix in the training split: `skip` 112 006, `fill` 108 147, `click` 7 984, `check` 6 784 (this
|
| 78 |
+
mixture is a property of the generator, not a measured distribution of real form tasks).
|
| 79 |
|
| 80 |
## Intended use and limits
|
| 81 |
|
|
|
|
| 86 |
catalogue with a fixed set of form templates; real Swedish forms have vocabulary, layouts and
|
| 87 |
edge cases it does not contain. The released model's own card states the same limit, and the
|
| 88 |
numbers on synthetic held-out rows are not a promise about any real form.
|
| 89 |
+
- **Data-size comparison.** At 900 episodes the same pipeline and the same schedule
|
| 90 |
score 77 % top-1; at 4 000, 98.94 %; at 10 000, 99.29 %. The corpus is published at 10 000
|
| 91 |
episodes because that is what trained the released checkpoint, and the smaller configurations are
|
| 92 |
+
one command away if you want the curve for yourself. Each run has its own generated
|
| 93 |
+
test set, and more episodes at fixed epochs mean more optimization steps. These
|
| 94 |
+
results do not isolate the effect of data size or establish a learning plateau.
|
| 95 |
+
- **Keep real submissions out of this repository.** The corpus is generated for research.
|
| 96 |
+
Do not add personal data, customer data or real document contents.
|
| 97 |
|
| 98 |
## Licence
|
| 99 |
|