matthewaltenburg commited on
Commit
39a3f2a
·
verified ·
1 Parent(s): 1d1bfaa

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +110 -44
README.md CHANGED
@@ -20,95 +20,161 @@ size_categories:
20
 
21
  A 1-billion-token representative sample of a much larger cleaned New Zealand web-text corpus derived from Common Crawl. This sample is released alongside the JoeyLLM project's ongoing research into regional English language models. 🌐
22
 
23
- **The full 60.7B-token corpus is not publicly released due to its size and potential commercial use.** 🔒 Researchers seeking access to the full corpus for non-commercial testing may contact the project leads (see [Dataset Card Contact](#contact)).
24
 
25
  ## 📊 Dataset Summary 📌
26
 
27
  | Property | Full cleaned corpus (not released) | This sample |
28
  | :--- | :--- | :--- |
29
- | **Tokens** | 60,714,120,289 (~60.7 B) | ~1,000,000,000 (1.00 B) |
30
- | **Rows (documents)** | 108,370,331 | 1,749,277 |
31
  | **Compressed size** | 180.48 GB | 2.97 GB |
32
  | **Source parquet files** | 27,168 | 10 shards |
33
  | **Common Crawl dumps** | 109 | 109 |
34
- | **Years covered** | 2013 2025 | 2013 2025 |
 
35
 
36
- The sample represents approximately **1.65%** of the full internal New Zealand corpus by token count, providing full coverage across 13 years of web data. ⏱️
37
 
38
  ## 🎯 Intended Uses
39
 
40
  ### 💡 Direct Use
41
- * Pre-training and continued pre-training of language models on New Zealand-domain text. 🤖
42
- * Research into New Zealand English linguistic patterns, spelling variations, and cultural nuances. 📝
43
- * Benchmarking regional data attribution and filtering pipelines. ⚙️
 
 
44
 
45
  ### 🚫 Out-of-Scope Use
46
- * Extracting personal information (PII) or deanonymizing individuals. 🕵️‍♂️
47
- * Commercial use of the unreleased 60.7B-token corpus without explicit authorization. 💼
48
- * Training models for malicious use, hate speech, or harassment. 🛑
 
49
 
50
  ## 🧱 Dataset Structure 🗂️
51
 
 
 
52
  | Field | Type | Description |
53
  | :--- | :--- | :--- |
54
  | `text` | string | Cleaned document body. |
55
- | `id` | string | Stable document identifier (URL-hash based). |
56
- | `dump` | string | Common Crawl dump identifier (e.g., CC-MAIN-2024-30). |
57
- | `url` | string | Original page URL. |
58
- | `date` | string | Crawl date (ISO 8601). |
59
- | `file_path` | string | Path inside the original Common Crawl dump. |
60
- | `language` | string | Language label (always en). |
61
- | `language_score` | float | Language-detector confidence (≥ 0.85). |
62
- | `token_count` | int | Token count used for sampling. |
 
 
 
 
63
 
64
  ## 🏗️ Dataset Creation
65
 
66
  ### 🔍 Curation Rationale
67
- Regional linguistic nuances—like New Zealand spelling, Te Reo Māori loanwords, and institutional references—are often diluted in global datasets. JoeyLLM provides these targeted slices to enable the development of "civic foundation models" that prioritize regional utility over general benchmarks. 🏙️
 
 
 
 
 
 
 
 
 
68
 
69
  ### 🎲 Sampling Methodology
70
- The sample was produced using **stratified random sampling** proportional to the token count of each Common Crawl dump (2013–2025). This ensures the sample preserves the same temporal distribution as the full internal corpus. Documents were selected in their entirety to maintain context and avoid truncation.
 
 
 
 
 
 
71
 
72
  ### 🧹 Cleaning Pipeline
 
73
  The dataset was processed using a FineWeb-style pipeline including:
74
- * **Quality Filtering:** Heuristics to remove low-quality pages, boilerplate, and navigation text. ✨
75
- * **Country Attribution:** Targeted selection using .nz TLDs, URL features, and New Zealand-specific content signals. 📍
76
- * **Deduplication:** MinHash-based deduplication applied at the corpus level. ✂️
 
 
77
 
78
  ### 🛡️ Personal and Sensitive Information
79
- Derived from public web crawls, this dataset may contain names or contact details. No dedicated PII masking was performed. Users should apply additional filters before production use. ⚠️
 
 
 
80
 
81
  ## 🚀 Loading the Dataset 💻
82
 
83
- from datasets import load_dataset
84
-
85
- # Load the full 1B sample
86
- ds = load_dataset("JoeyLLM/NewZealand-dataset-1b", split="train")
87
-
88
- # For streaming (recommended for rapid inspection)
89
- ds_stream = load_dataset("JoeyLLM/NewZealand-dataset-1b", split="train", streaming=True)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
 
91
  ## 📜 License ⚖️
92
- Released under **CC BY 4.0**. Underlying text remains subject to the rights of the original publishers.
 
 
 
93
 
94
  ## 📚 Citation ✒️
95
 
96
- @misc{joeyllm_newzealand_1b,
97
- title = {New Zealand Web Text -- 1B-token Sample},
98
- author = {JoeyLLM Team},
99
- year = {2026},
100
- howpublished = {\url{https://huggingface.co/datasets/JoeyLLM/NewZealand-dataset-1b}}
101
- }
 
 
 
 
102
 
103
  ## 🙏 Acknowledgements 🤝
104
- Built using Common Crawl data and a FineWeb-style processing pipeline. While dataset selection, cleaning, sampling, and publication were carried out by the JoeyLLM team, this project would not have been possible without the invaluable tools, feedback, and ongoing support of the broader open-source AI community. We extend our deepest gratitude to all the open-source contributors and researchers whose collaborative efforts continue to drive this field forward. 🌟
 
105
 
106
  <a id="contact"></a>
 
107
  ## 📬 Dataset Card Contact ✉️
108
 
109
  For inquiries regarding research access to the full 60.7B-token New Zealand corpus for non-commercial testing or academic collaboration, please contact:
110
 
111
- **Matthew Altenburg**
112
- AI Scientist & Lead Researcher, JoeyLLM
113
- matthew.altenburg@anu.edu.au
114
- *(Backup: mattaltenburg@gmail.com)*
 
20
 
21
  A 1-billion-token representative sample of a much larger cleaned New Zealand web-text corpus derived from Common Crawl. This sample is released alongside the JoeyLLM project's ongoing research into regional English language models. 🌐
22
 
23
+ **The full 60.7B-token corpus is not publicly released due to its size, operational cost, and intended controlled use in research and model development.** 🔒 Researchers seeking access to the full corpus for non-commercial testing or academic collaboration may contact the project leads using the details in the [Dataset Card Contact](#contact) section.
24
 
25
  ## 📊 Dataset Summary 📌
26
 
27
  | Property | Full cleaned corpus (not released) | This sample |
28
  | :--- | :--- | :--- |
29
+ | **Tokens** | 60,714,120,289 (~60.7 B) | ~1,000,000,000 (~1.00 B) |
30
+ | **Rows / documents** | 108,370,331 | 1,749,277 |
31
  | **Compressed size** | 180.48 GB | 2.97 GB |
32
  | **Source parquet files** | 27,168 | 10 shards |
33
  | **Common Crawl dumps** | 109 | 109 |
34
+ | **Years covered** | 2013–2025 | 2013–2025 |
35
+ | **Language** | English | English |
36
 
37
+ The sample represents approximately **1.65%** of the full internal New Zealand corpus by token count, while preserving coverage across the Common Crawl dumps and years represented in the full cleaned corpus. ⏱️
38
 
39
  ## 🎯 Intended Uses
40
 
41
  ### 💡 Direct Use
42
+
43
+ - Pre-training and continued pre-training of language models on New Zealand-domain text. 🤖
44
+ - Domain-adaptation experiments involving New Zealand English usage, place names, institutions, and topics. 📝
45
+ - Research into Common Crawl-derived language-model datasets. 🔬
46
+ - Inspection and reproducibility of JoeyLLM data pipeline outputs. ⚙️
47
 
48
  ### 🚫 Out-of-Scope Use
49
+
50
+ - Extracting personal information or deanonymizing individuals. 🕵️‍♂️
51
+ - Using the unreleased 60.7B-token corpus without explicit authorization. 💼
52
+ - Training models for malicious use, hate speech, harassment, or other harmful applications. 🛑
53
 
54
  ## 🧱 Dataset Structure 🗂️
55
 
56
+ Each row represents one cleaned web document or document-like text segment.
57
+
58
  | Field | Type | Description |
59
  | :--- | :--- | :--- |
60
  | `text` | string | Cleaned document body. |
61
+ | `id` | string | Stable document identifier, based on upstream document identity. |
62
+ | `dump` | string | Common Crawl dump identifier, e.g. `CC-MAIN-2024-30`. |
63
+ | `url` | string | Original source URL. |
64
+ | `date` | string | Crawl date, where available. |
65
+ | `file_path` | string | Path inside the original Common Crawl WARC data. |
66
+ | `language` | string | Language label assigned upstream, expected to be `en`. |
67
+ | `language_score` | float | Language-detector confidence score. |
68
+ | `token_count` | int | Token count used for sampling and filtering. |
69
+ | `index` | int | Source row index from the processed shard, if present. |
70
+ | `country` | string | Country attribution, expected to be `New Zealand`, if present. |
71
+ | `year` | string | Common Crawl dump year, e.g. `2024`, if present. |
72
+ | `source_file` | string | Source parquet shard used to construct the public sample, if present. |
73
 
74
  ## 🏗️ Dataset Creation
75
 
76
  ### 🔍 Curation Rationale
77
+
78
+ Regional linguistic nuances — including New Zealand spelling, Te Reo Māori loanwords, place names, institutions, public services, media references, and local web conventions — are often diluted in global web-scale datasets. JoeyLLM provides targeted regional English web-text samples to support research into foundation models with stronger New Zealand and regional coverage. 🏙️
79
+
80
+ ### 🌍 Source
81
+
82
+ The dataset was derived from Common Crawl using a FineWeb-style web-text processing pipeline.
83
+
84
+ Documents were selected as New Zealand web text by the upstream country-attribution stage of the JoeyLLM pipeline. Country attribution may use signals such as top-level domains, URL/domain features, crawl metadata, and content-derived features.
85
+
86
+ This dataset should be interpreted as **New Zealand-attributed web text**, not necessarily text authored by New Zealanders or officially published in New Zealand.
87
 
88
  ### 🎲 Sampling Methodology
89
+
90
+ The sample was produced using **stratified random sampling** by Common Crawl dump, proportional to each dump's token count.
91
+
92
+ - A per-dump token quota was allocated proportional to each dump's share of total corpus tokens.
93
+ - Documents were selected in a reproducible random order.
94
+ - Documents were appended in their entirety to avoid mid-text truncation.
95
+ - Because documents are not truncated, the realised token count may slightly overshoot the 1B-token target.
96
 
97
  ### 🧹 Cleaning Pipeline
98
+
99
  The dataset was processed using a FineWeb-style pipeline including:
100
+
101
+ - **Language filtering:** documents retained only when classified as English with sufficient language confidence.
102
+ - **Quality filtering:** heuristics to reduce low-quality pages, boilerplate, repetitive text, navigation text, and obvious extraction artefacts. 🧽
103
+ - **Country attribution:** targeted selection using signals such as `.nz` domains, URL features, crawl metadata, and New Zealand-specific content signals. 📍
104
+ - **Deduplication:** MinHash-style deduplication applied at the corpus level. ✂️
105
 
106
  ### 🛡️ Personal and Sensitive Information
107
+
108
+ This dataset is derived from public web crawls and may contain names, contact details, opinions, offensive content, copyrighted text, or other sensitive material. No dedicated PII masking was performed. ⚠️
109
+
110
+ Users should apply additional filtering, redaction, and safety review before using this dataset in production systems or public-facing models.
111
 
112
  ## 🚀 Loading the Dataset 💻
113
 
114
+ ```python
115
+ from datasets import load_dataset
116
+
117
+ # Load the full 1B-token sample
118
+ ds = load_dataset("JoeyLLM/NewZealand-dataset-1b", split="train")
119
+
120
+ print(ds)
121
+ print(ds[0]["text"][:500])
122
+ ```
123
+
124
+ For streaming, which is recommended for rapid inspection:
125
+
126
+ ```python
127
+ from datasets import load_dataset
128
+
129
+ ds = load_dataset("JoeyLLM/NewZealand-dataset-1b", split="train", streaming=True)
130
+
131
+ for ex in ds.take(3):
132
+ print(ex["url"], ex["token_count"])
133
+ ```
134
+
135
+ ## ⚠️ Limitations and Known Issues
136
+
137
+ This dataset is derived from public web crawl data and inherits the usual limitations of Common Crawl-derived corpora.
138
+
139
+ Known limitations include:
140
+
141
+ - **Heuristic country attribution.** New Zealand attribution is based on automated signals and may contain false positives or non-New Zealand content.
142
+ - **Web-text noise.** Boilerplate, navigation text, advertisements, duplicate fragments, low-quality pages, and formatting artefacts may remain.
143
+ - **Residual duplication.** Deduplication may not remove all near-duplicates.
144
+ - **Potential personal information.** Public web data may contain personal names, contact details, or other sensitive material.
145
+ - **Copyright and source terms.** The underlying text originates from public web pages and may remain subject to the rights and terms of the original publishers.
146
+ - **Not balanced by domain or genre.** The dataset reflects the distribution of selected web crawl data rather than a deliberately balanced linguistic corpus.
147
 
148
  ## 📜 License ⚖️
149
+
150
+ The dataset card, metadata, selection, and processing outputs are released under CC BY 4.0.
151
+
152
+ The underlying text is derived from publicly crawled web pages via Common Crawl and may remain subject to the rights, licences, and terms of the original publishers. Users are responsible for ensuring that their downstream use complies with applicable law and source terms.
153
 
154
  ## 📚 Citation ✒️
155
 
156
+ A citation entry for the JoeyLLM project paper will be added once available. Until then, please cite this dataset card by URL:
157
+
158
+ ```bibtex
159
+ @misc{joeyllm_newzealand_1b,
160
+ title = {New Zealand Web Text -- 1B-token Sample},
161
+ author = {JoeyLLM Team},
162
+ year = {2026},
163
+ howpublished = {https://huggingface.co/datasets/JoeyLLM/NewZealand-dataset-1b}
164
+ }
165
+ ```
166
 
167
  ## 🙏 Acknowledgements 🤝
168
+
169
+ Built using Common Crawl data and a FineWeb-style processing pipeline. While dataset selection, cleaning, sampling, and publication were carried out by the JoeyLLM team, this project would not have been possible without the invaluable tools, feedback, and ongoing support of the broader open-source AI community. We extend our deepest gratitude to all open-source contributors and researchers whose collaborative efforts continue to drive this field forward. 🌟
170
 
171
  <a id="contact"></a>
172
+
173
  ## 📬 Dataset Card Contact ✉️
174
 
175
  For inquiries regarding research access to the full 60.7B-token New Zealand corpus for non-commercial testing or academic collaboration, please contact:
176
 
177
+ **Matthew Altenburg**
178
+ AI Scientist & Lead Researcher, JoeyLLM
179
+ `matthew.altenburg@anu.edu.au`
180
+ Backup: `mattaltenburg@gmail.com`