amkhrjee commited on
Commit
9898096
·
verified ·
1 Parent(s): c02f2b0

add: data

Browse files
Files changed (2) hide show
  1. README.md +116 -0
  2. blackadder.jsonl +0 -0
README.md ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-4.0
3
+ language:
4
+ - en
5
+ task_categories:
6
+ - text-generation
7
+ tags:
8
+ - conversational
9
+ - dialogue
10
+ - character-roleplay
11
+ - blackadder
12
+ pretty_name: Blackadder Chat
13
+ size_categories:
14
+ - 1K<n<10K
15
+ configs:
16
+ - config_name: default
17
+ data_files:
18
+ - split: train
19
+ path: blackadder.jsonl
20
+ ---
21
+
22
+ # Blackadder Chat Dataset
23
+
24
+ <img src="https://i.pinimg.com/1200x/5a/22/ab/5a22ab0bd42e793ee569a73a3b1e7aaf.jpg" alt="Blackadder" width="400">
25
+
26
+ A chat-style instruction dataset distilled from the full *Blackadder* TV
27
+ scripts (all four series). Each example pairs a line of dialogue with
28
+ **Edmund Blackadder's** reply, so a model fine-tuned on it learns to answer
29
+ in the persona of Rowan Atkinson's character.
30
+
31
+ ## Files
32
+
33
+ | File | Description |
34
+ | --- | --- |
35
+ | `season_1.txt` … `season_4.txt` | Raw fan transcripts, one file per series. |
36
+ | `download_raw.sh` | Fetches and renames the raw scripts (see *Source*). |
37
+ | `prepare.py` | (scaffold) |
38
+ | `blackadder.jsonl` | **The dataset.** 2,581 user→assistant dialogue pairs. |
39
+
40
+ The dataset is generated by [`../data.py`](../data.py):
41
+
42
+ ```bash
43
+ python data.py # run from the repo root; writes data/blackadder.jsonl
44
+ ```
45
+
46
+ ## Format
47
+
48
+ `blackadder.jsonl` is [JSON Lines](https://jsonlines.org/): one example per
49
+ line. Each line is a JSON array of two messages — the line spoken just before
50
+ Edmund (`user`), and Edmund's response (`assistant`):
51
+
52
+ ```json
53
+ [
54
+ {"role": "user", "content": "Edna, fight you with us on the morrow?"},
55
+ {"role": "assistant", "content": "Er, oh goodness, no! No, I thought I'd fight with the enemy!"}
56
+ ]
57
+ ```
58
+
59
+ ### Statistics
60
+
61
+ | | Pairs |
62
+ | --- | --- |
63
+ | Series 1 | 628 |
64
+ | Series 2 | 669 |
65
+ | Series 3 | 711 |
66
+ | Series 4 | 573 |
67
+ | **Total** | **2,581** |
68
+
69
+ ## How examples are built
70
+
71
+ For every line Edmund speaks, the script emits one pair: the **assistant**
72
+ turn is Edmund's line, and the **user** turn is the line spoken immediately
73
+ before it by *another* character.
74
+
75
+ Key decisions made while parsing the (messy, hand-typed) transcripts:
76
+
77
+ - **Edmund is matched by all of his aliases, resolved per series.** The
78
+ scripts abbreviate speakers differently in each episode, and the
79
+ abbreviations *conflict* — e.g. `B` means **Baldrick** in series 2 & 3, not
80
+ Blackadder. The alias sets used are:
81
+
82
+ | Series | Edmund labels |
83
+ | --- | --- |
84
+ | 1 | `Edmund`, `EBA`, `BA`, `E` |
85
+ | 2 | `Edmund`, `Blackadder`, `BA`, `E` |
86
+ | 3 | `Edmund`, `Blackadder`, `E` |
87
+ | 4 | `Edmund`, `Blackadder` |
88
+
89
+ - **The user turn is the nearest preceding *other*-character line.**
90
+ Intervening stage directions are skipped, and consecutive Edmund lines are
91
+ merged into a single assistant turn.
92
+ - **Stage directions are stripped** — `[...]`, `(...)`, and `{...}` (one
93
+ episode uses braces) — including directions that wrap across script lines.
94
+ - **Episode boundaries** (`Sharing is caring!` + intro paragraph) and the
95
+ per-episode **cast legends** (`B: Baldrick`) are detected and excluded.
96
+ - **Wrapped dialogue and scene narration** are not mistaken for new speaker
97
+ turns; a line is only treated as a new speaker when its label is short and
98
+ capitalised.
99
+
100
+ The parser is heuristic, so a small amount of residual noise remains (e.g. a
101
+ rare line where two characters share one transcript line keeps an inline
102
+ `Name:` tag). See the docstring and comments in [`../data.py`](../data.py)
103
+ for details.
104
+
105
+ ## Source
106
+
107
+ Raw scripts are the
108
+ ["Blackadder Full Scripts (Rowan Atkinson)" dataset](https://www.kaggle.com/datasets/soumee2000/blackadderfullscriptsrowan-atkinson)
109
+ on Kaggle, originally from Blackadderquotes.com. Re-download with:
110
+
111
+ ```bash
112
+ cd data && ./download_raw.sh
113
+ ```
114
+
115
+ The transcripts are fan-made and intended for research/educational use;
116
+ *Blackadder* is © the BBC and its rights holders.
blackadder.jsonl ADDED
The diff for this file is too large to render. See raw diff