minhanhlt commited on
Commit
229615b
·
verified ·
1 Parent(s): e2beeae

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +82 -0
README.md ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: openrail
5
+ size_categories:
6
+ - 10M<n<100M
7
+ task_categories:
8
+ - fill-mask
9
+ tags:
10
+ - bert
11
+ - mlm
12
+ - masked-language-modeling
13
+ - wikipedia
14
+ - bookcorpus
15
+ dataset_info:
16
+ features:
17
+ - name: text
18
+ dtype: string
19
+ splits:
20
+ - name: train
21
+ num_rows: 72440303
22
+ - name: validation
23
+ num_rows: 4024461
24
+ - name: test
25
+ num_rows: 4024462
26
+ ---
27
+
28
+ # Unified English MLM Pre-training Corpus (80M Rows)
29
+
30
+ This dataset is a massive, diverse, multi-domain English text corpus explicitly engineered for pre-training and domain-adaptation of **BERT-style models via Masked Language Modeling (MLM)**. It aggregates over 80 million rows of text, completely stripped of auxiliary metadata, labels, and identifiers to expose purely raw text strings.
31
+
32
+ ## Dataset Details
33
+
34
+ - **Repository ID:** `8Opt/bert-mlm-experiments-en`
35
+ - **Total Rows:** 80,489,226
36
+ - **Format:** Single-column (`text`) format optimized for fast, block-based tokenization pipelines.
37
+
38
+ ### Data Splits
39
+
40
+ | Split | Number of Rows | Percentage |
41
+ | :--- | :--- | :--- |
42
+ | **Train** | 72,440,303 | ~90% |
43
+ | **Validation** | 4,024,461 | ~5% |
44
+ | **Test** | 4,024,462 | ~5% |
45
+
46
+ _Note:_ This is the [code](https://colab.research.google.com/drive/1141Gi5gwB8KwnE-CQHAkTRpWSKuNZV1y?usp=sharing) I used to create this dataset.
47
+
48
+ ---
49
+
50
+ ## Dataset Composition & Provenance
51
+
52
+ This corpus was programmatically compiled, cleaned, and standardized from the following source datasets:
53
+
54
+ 1. **BookCorpus** (`rojagtap/bookcorpus`): High-quality narrative text from thousands of unpublished books, vital for capturing long-range context and literary style.
55
+ 2. **Wikipedia** (`wikimedia/wikipedia` - split `20231101.en`): Comprehensive, factual, and well-structured encyclopedic knowledge covering an expansive array of topics.
56
+ 3. **IMDb Movie Reviews** (`ajaykarthick/imdb-movie-reviews`): Rich conversational, highly descriptive, and emotionally expressive language patterns.
57
+ 4. **STS (Semantic Textual Similarity) 2012-2015** (`mteb/sts12-sts` through `sts15-sts`): Highly nuanced paired sentence variations, flattened into individual rows to expose the model to standalone structured sentence syntaxes.
58
+
59
+ ---
60
+
61
+ ## Processing Methodology
62
+
63
+ - **Schema Unification:** All incoming dataset features (titles, bodies, labels, scores, URLs) were stripped out or merged.
64
+ - **Structural Flattening:** For datasets containing sentence pairs (like STS) or multiple text fields (like Title/Body), the elements were completely flattened into standalone, individual rows under the `text` column to preserve line-by-line semantic structure.
65
+ - **Randomized Splitting:** The final dataset dictionary was generated using a reproducible two-step deterministic shuffle and split (`seed=42`).
66
+
67
+ ---
68
+
69
+ ## Intended Use & Quickstart
70
+
71
+ This dataset is primarily intended for Masked Language Modeling (MLM). Because of its massive validation split (~4M rows), it is highly recommended to subset the validation split during training check-ins to prevent evaluation bottlenecking.
72
+
73
+ ### How to Load
74
+
75
+ ```python
76
+ from datasets import load_dataset
77
+
78
+ # Load the full dataset dictionary (Train, Validation, Test)
79
+ dataset = load_dataset("8Opt/bert-mlm-experiments-en")
80
+
81
+ # Quick print overview
82
+ print(dataset)