IMJONEZZ's picture
Annotation layers snapshot 2026-09-21
71edec4
|
Raw History Blame Contribute Delete
2 kB
# Star Wars script dataset (GLM-5.3 formatted)
One document per film of `CHARACTER: line` rows grouped into scenes, with GLM-5.3
special tokens at their correct positions. Built from `results/<film>/` by
`build_script_dataset.py` (repo root). Continuation notes: `HANDOFF.md`.
Token reference: `special_tokens.md`.
## Layout
```
[gMASK]<sop>
<|begin_of_transcription|>
OBI-WAN KENOBI: Hello there.
SPEAKER_03: General Kenobi.
<|end_of_transcription|><|endoftext|>
<|begin_of_transcription|>
...
```
- `[gMASK]<sop>` once per film document.
- One scene = one `<|begin_of_transcription|>`…`<|end_of_transcription|><|endoftext|>` block.
Scenes are split on silences > 15 s between utterances (`--gap`).
- One row per subtitle cue (clean text). Speaker = SDH caption tag, else screenplay
alignment, else knowledge attribution (Claude Opus, validated), else `SPEAKER_NN`
(per-film diarization cluster) / `UNKNOWN`. ≈90% of lines are named; every turn in
`script.jsonl` carries its `origin` and a confidence score so you can filter.
## Files
| file | what |
|---|---|
| `films/<slug>.txt` | one GLM document per film (11) |
| `all_films.txt` | the 11 documents concatenated in saga order |
| `script.jsonl` | one row per scene with structured turns (speaker, text, origin, quality, timestamps, source utterance idxs); the .txt is byte-derivable from it |
| `manifest.json` | per-film source file, line/scene counts, named coverage, label-origin and text-source breakdowns, character lists |
| `special_tokens.md` | GLM-5.3 special-token table + how this dataset uses them |
| `HANDOFF.md` | decisions, limitations, exact commands, next steps |
## Regenerate
```bash
python3 build_script_dataset.py # ~5 s, deterministic, stdlib only (reads dataset/cue_labels + dataset/knowledge_labels)
python3 build_script_dataset.py --help # gap / merge / label-aid / UNKNOWN options
```
Tokenize the documents with `add_special_tokens=False`; the `[gMASK]<sop>`
prefix is already in the text.