Update README.md
Browse files
README.md
CHANGED
|
@@ -14,7 +14,55 @@ configs:
|
|
| 14 |
data_files:
|
| 15 |
- split: train
|
| 16 |
path: data/train-*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
---
|
| 18 |
-
#
|
| 19 |
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
data_files:
|
| 15 |
- split: train
|
| 16 |
path: data/train-*
|
| 17 |
+
task_categories:
|
| 18 |
+
- text-generation
|
| 19 |
+
language:
|
| 20 |
+
- en
|
| 21 |
+
pretty_name: Shakespeare Lines
|
| 22 |
+
size_categories:
|
| 23 |
+
- 100K<n<1M
|
| 24 |
---
|
| 25 |
+
# Shakespeare Lines Dataset
|
| 26 |
|
| 27 |
+
The **Shakespeare Lines** dataset contains cleaned, line-by-line excerpts from the *Complete Works of William Shakespeare*. This dataset is curated for use in training and fine-tuning language models on literary or archaic English. It has been stripped of metadata, scene directions, headers/footers, and other non-dialogue filler commonly found in public domain eBooks.
|
| 28 |
+
|
| 29 |
+
## Dataset Structure
|
| 30 |
+
|
| 31 |
+
Each example contains:
|
| 32 |
+
|
| 33 |
+
- `text`: A single line of dialogue from one of Shakespeare’s plays or sonnets.
|
| 34 |
+
|
| 35 |
+
Example:
|
| 36 |
+
```json
|
| 37 |
+
{
|
| 38 |
+
"text": "To be, or not to be: that is the question."
|
| 39 |
+
}
|
| 40 |
+
```
|
| 41 |
+
|
| 42 |
+
## Source
|
| 43 |
+
|
| 44 |
+
The raw texts were sourced from Project Gutenberg, which provides public domain books. The dataset was manually cleaned to remove:
|
| 45 |
+
|
| 46 |
+
- Stage directions (e.g., [Enter Romeo], [_Exit._])
|
| 47 |
+
- Scene headers (ACT I, SCENE II)
|
| 48 |
+
- Line numbers and roman numerals
|
| 49 |
+
- Table of contents and licensing info
|
| 50 |
+
|
| 51 |
+
## Usage
|
| 52 |
+
|
| 53 |
+
```python
|
| 54 |
+
from datasets import load_dataset
|
| 55 |
+
|
| 56 |
+
dataset = load_dataset("benchaffe/shakespeare-lines")
|
| 57 |
+
print(dataset[0])
|
| 58 |
+
```
|
| 59 |
+
|
| 60 |
+
## Limitations
|
| 61 |
+
|
| 62 |
+
The dataset does not preserve scene or speaker metadata.<br>
|
| 63 |
+
Some filtering may accidentally remove legitimate content (e.g., short lines in all caps).<br>
|
| 64 |
+
Lines are context-independent unless reassembled manually.<br>
|
| 65 |
+
|
| 66 |
+
## Source
|
| 67 |
+
|
| 68 |
+
Project Gutenberg: (https://www.gutenberg.org/)
|