Datasets:
|
Download script/README.md from IMJONEZZ/star-wars-dataset: direct link, hf CLI and curl.
- Browser
- Download file 2 kB
-
https://huggingface.co/datasets/IMJONEZZ/star-wars-dataset/resolve/main/script/README.md
- Command line
-
hf download hf://datasets/IMJONEZZ/star-wars-dataset/script/README.md
-
curl -L -o README.md https://huggingface.co/datasets/IMJONEZZ/star-wars-dataset/resolve/main/script/README.md
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 inscript.jsonlcarries itsoriginand 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
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.