codelion commited on
Commit
03a8ab0
·
verified ·
1 Parent(s): a9cd4f1

Update dataset card with correct schema

Browse files
Files changed (1) hide show
  1. README.md +46 -9
README.md CHANGED
@@ -10,14 +10,38 @@ dataset_info:
10
  features:
11
  - name: text
12
  dtype: string
 
 
 
 
 
 
 
 
13
  - name: url
14
  dtype: string
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  splits:
16
  - name: train
17
  num_examples: 52721
18
  ---
19
 
20
- # FineWiki Sampled Dataset (1B tokens)
21
 
22
  This is a sampled subset of [HuggingFaceFW/finewiki](https://huggingface.co/datasets/HuggingFaceFW/finewiki) containing approximately **1,000,000,332 tokens**.
23
 
@@ -26,15 +50,13 @@ This is a sampled subset of [HuggingFaceFW/finewiki](https://huggingface.co/data
26
  ### Source
27
  - **Original Dataset**: HuggingFaceFW/finewiki (English subset, train split)
28
  - **Sampling Method**: Reservoir sampling (unbiased random sampling)
29
- - **Target Token Count**: 1,000,000,000 tokens
30
- - **Actual Token Count**: 1,000,000,332 tokens
31
  - **Tokenizer**: GPT-2 (50,257 vocabulary)
32
 
33
  ### Sampling Statistics
34
  - **Documents Sampled**: 52,721
35
- - **Average Tokens/Doc**: 18967.8
36
  - **Random Seed**: 42
37
- - **Reservoir Size**: 500,000 documents (max)
38
 
39
  ### Sampling Method
40
 
@@ -48,7 +70,7 @@ The sampling algorithm:
48
  1. Streams through HuggingFaceFW/finewiki without downloading
49
  2. Uses GPT-2 tokenizer to count tokens per document
50
  3. Maintains a reservoir of documents using standard reservoir sampling
51
- 4. Truncates to target token count when complete
52
 
53
  ## Usage
54
 
@@ -61,13 +83,28 @@ dataset = load_dataset("codelion/finewiki-1B")
61
  # Access the training data
62
  for example in dataset['train']:
63
  print(example['text'])
 
 
64
  ```
65
 
66
  ## Dataset Structure
67
 
68
- Each example contains:
69
- - `text`: The Wikipedia article text
70
- - `url`: Source Wikipedia URL
 
 
 
 
 
 
 
 
 
 
 
 
 
71
 
72
  ## Use Cases
73
 
 
10
  features:
11
  - name: text
12
  dtype: string
13
+ - name: id
14
+ dtype: string
15
+ - name: wikiname
16
+ dtype: string
17
+ - name: page_id
18
+ dtype: int64
19
+ - name: title
20
+ dtype: string
21
  - name: url
22
  dtype: string
23
+ - name: date_modified
24
+ dtype: string
25
+ - name: in_language
26
+ dtype: string
27
+ - name: wikidata_id
28
+ dtype: string
29
+ - name: bytes_html
30
+ dtype: int64
31
+ - name: wikitext
32
+ dtype: string
33
+ - name: version
34
+ dtype: int64
35
+ - name: infoboxes
36
+ dtype: string
37
+ - name: has_math
38
+ dtype: bool
39
  splits:
40
  - name: train
41
  num_examples: 52721
42
  ---
43
 
44
+ # FineWiki Sampled Dataset (1,000,000,332 tokens)
45
 
46
  This is a sampled subset of [HuggingFaceFW/finewiki](https://huggingface.co/datasets/HuggingFaceFW/finewiki) containing approximately **1,000,000,332 tokens**.
47
 
 
50
  ### Source
51
  - **Original Dataset**: HuggingFaceFW/finewiki (English subset, train split)
52
  - **Sampling Method**: Reservoir sampling (unbiased random sampling)
53
+ - **Target Token Count**: 1,000,000,332 tokens
 
54
  - **Tokenizer**: GPT-2 (50,257 vocabulary)
55
 
56
  ### Sampling Statistics
57
  - **Documents Sampled**: 52,721
58
+ - **Average Tokens/Doc**: 18971.0
59
  - **Random Seed**: 42
 
60
 
61
  ### Sampling Method
62
 
 
70
  1. Streams through HuggingFaceFW/finewiki without downloading
71
  2. Uses GPT-2 tokenizer to count tokens per document
72
  3. Maintains a reservoir of documents using standard reservoir sampling
73
+ 4. Stops when target token count is reached
74
 
75
  ## Usage
76
 
 
83
  # Access the training data
84
  for example in dataset['train']:
85
  print(example['text'])
86
+ print(example['title'])
87
+ print(example['url'])
88
  ```
89
 
90
  ## Dataset Structure
91
 
92
+ Each example contains all fields from the original FineWiki dataset:
93
+
94
+ - **text** (string): The Wikipedia article text (primary content)
95
+ - **id** (string): Unique identifier
96
+ - **wikiname** (string): Wikipedia source name
97
+ - **page_id** (int64): Wikipedia page ID
98
+ - **title** (string): Article title
99
+ - **url** (string): Source Wikipedia URL
100
+ - **date_modified** (string): Last modification date
101
+ - **in_language** (string): Language code (always 'en' for this subset)
102
+ - **wikidata_id** (string): Wikidata identifier
103
+ - **bytes_html** (int64): Size of HTML content
104
+ - **wikitext** (string): Original wikitext markup
105
+ - **version** (int64): Article version number
106
+ - **infoboxes** (string): Extracted infobox data
107
+ - **has_math** (bool): Whether article contains mathematical formulas
108
 
109
  ## Use Cases
110