Datasets:

Modalities:
Text
Formats:
csv
Languages:
English
License:
Gugu8 commited on
Commit
cf9bf4a
·
verified ·
1 Parent(s): 34fa7ab

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +115 -0
README.md CHANGED
@@ -2,4 +2,119 @@
2
  license: other
3
  license_name: open-data-attribution-training-disclosure-license-odatl-1.0
4
  license_link: LICENSE
 
 
 
 
 
5
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  license: other
3
  license_name: open-data-attribution-training-disclosure-license-odatl-1.0
4
  license_link: LICENSE
5
+ language:
6
+ - en
7
+ tags:
8
+ - tiny
9
+ - english
10
  ---
11
+ # LLM-English-100MB — Compact & Dense English Teaching Corpus
12
+
13
+ A 100MB, extremely clean CSV designed to teach an LLM English from scratch via instruction-tuning. No noise, no HTML, no duplicates — just pure grammar, vocabulary, and syntax transformations.
14
+
15
+ Generated with a single paste-and-run Python script in Google Colab.
16
+
17
+ ### Why this teaches English
18
+
19
+ Instead of raw text, the dataset is **instruction -> input -> output** pairs that force the model to learn rules:
20
+
21
+ - **Grammar Mechanics:** tense conversion, negation, question formation, active/passive, subject-verb agreement, article & preposition usage, contraction
22
+ - **Vocabulary:** pluralization, synonyms, antonyms, definitions, comparatives
23
+ - **Error Correction:** common ESL mistakes with corrected form + rule
24
+
25
+ Each row includes an explicit `rule` column so the model learns the *pattern*, not just memorizes.
26
+
27
+ ### Dataset Schema
28
+
29
+ Extremely clean: UTF-8, LF (`\n`), `QUOTE_MINIMAL`, no empty fields, no newlines inside fields.
30
+
31
+ | Column | Type | Description |
32
+ | :--- | :--- | :--- |
33
+ | `id` | int | Unique row ID |
34
+ | `level` | string | CEFR level: A1, A2, B1, B2 |
35
+ | `category` | string | `grammar`, `vocabulary`, `syntax` |
36
+ | `task_type` | string | e.g. `tense_past`, `pluralization`, `negation`, `question_formation`, `comparative`, `active_passive`, `article_usage`, `synonym`, `antonym` |
37
+ | `instruction` | string | What the model must do |
38
+ | `input_text` | string | Input sentence / prompt |
39
+ | `output_text` | string | Correct target |
40
+ | `rule` | string | Short linguistic rule |
41
+
42
+ Example:
43
+ ```
44
+ instruction: Convert to simple past tense.
45
+ input_text: We build the house.
46
+ output_text: We built the house.
47
+ rule: build -> built
48
+ ```
49
+
50
+ ### Stats
51
+
52
+ - **Size:** 100 MB (configurable)
53
+ - **Rows:** ~650k - 750k (avg ~150 bytes/row)
54
+ - **Format:** CSV
55
+ - **Encoding:** UTF-8
56
+ - **Generation Time:** ~90-120 seconds on Colab
57
+
58
+ ### How to Use
59
+
60
+ **Pandas:**
61
+ ```python
62
+ import pandas as pd
63
+ df = pd.read_csv("/content/llm_english_100MB.csv")
64
+ df.head()
65
+ ```
66
+
67
+ **Hugging Face Datasets:**
68
+ ```python
69
+ from datasets import load_dataset
70
+ ds = load_dataset("csv", data_files="/content/llm_english_100MB.csv")["train"]
71
+ # Format for instruction tuning: instruction + input -> output
72
+ def format_prompt(ex):
73
+ return {"text": f"### Instruction: {ex['instruction']}\n### Input: {ex['input_text']}\n### Output: {ex['output_text']}"}
74
+ ds = ds.map(format_prompt)
75
+ ```
76
+
77
+ **Training Prompt Template:**
78
+ ```
79
+ Below is an instruction that teaches English.
80
+
81
+ ### Instruction:
82
+ Convert to simple past tense.
83
+
84
+ ### Input:
85
+ She eats the apple.
86
+
87
+ ### Output:
88
+ She ate the apple.
89
+ ```
90
+
91
+ ### Quality Guarantees — EXTREMELY CLEAN
92
+
93
+ - No HTML, no URLs, no emojis
94
+ - No nulls / NaNs
95
+ - Stripped whitespace, no `\r`, no `\n` inside fields
96
+ - Deterministic seed (42) for reproducibility
97
+ - Validated with `csv.DictReader`
98
+ - All rows are synthetic and license-free
99
+
100
+ ### Customize
101
+
102
+ Edit vocab lists at top of script:
103
+ ```python
104
+ NOUNS = [...]
105
+ VERBS = [...]
106
+ ```
107
+
108
+ Add new generators to `GENERATORS` list to add new task types.
109
+
110
+ ### License
111
+
112
+ Open Data Attribution Training Disclosure License (ODATL‑1.0)
113
+
114
+ ### File Structure
115
+
116
+ ```
117
+ /content/
118
+ llm_english_100MB.csv # 100MB corpus
119
+ README.md # this file
120
+ ```