adamjuhasz commited on
Commit
4509118
·
verified ·
1 Parent(s): 684041a

Update dataset card

Browse files
Files changed (1) hide show
  1. README.md +56 -26
README.md CHANGED
@@ -1,26 +1,56 @@
1
- ---
2
- license: mit
3
- configs:
4
- - config_name: default
5
- data_files:
6
- - split: train
7
- path: data/train-*
8
- dataset_info:
9
- features:
10
- - name: page_id
11
- dtype: int64
12
- - name: title
13
- dtype: string
14
- - name: content
15
- dtype: string
16
- - name: content_no_link
17
- dtype: string
18
- - name: importance
19
- dtype: string
20
- splits:
21
- - name: train
22
- num_bytes: 139528
23
- num_examples: 20
24
- download_size: 94517
25
- dataset_size: 139528
26
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets:
3
+ - juno-labs/simple_wikipedia
4
+ language:
5
+ - en
6
+ license: cc-by-sa-3.0
7
+ source_datasets:
8
+ - wikipedia
9
+ configs:
10
+ - config_name: default
11
+ data_files:
12
+ - split: train
13
+ path: data/train-*.parquet
14
+ tags:
15
+ - simple-wikipedia
16
+ - markdown
17
+ - sqlite
18
+ ---
19
+
20
+ # Simple English Wikipedia (Markdown)
21
+
22
+ - Dump date: 2025-12-01
23
+ - Source dump: https://dumps.wikimedia.org/simplewiki/20251201/simplewiki-20251201-pages-articles.xml.bz2
24
+ - SHA-1: ee583946e86857e9f1e155f80bd3cd8b5d6dade7
25
+ - Records: 20
26
+ - Refresh cadence: Weekly on Sundays at 11:00 UTC
27
+
28
+ ## Dataset Structure
29
+
30
+ Columns:
31
+ - `page_id` (int64): Unique page identifier from Wikimedia dump.
32
+ - `title` (string): Article title.
33
+ - `content` (string): Article body converted to markdown with internal and external links preserved.
34
+ - `content_no_link` (string): Same content with markdown links stripped to plain text.
35
+ - `importance` (string): Importance for a household smart speaker assistant (`low`, `medium`, `high`, or `unknown` when not categorized).
36
+
37
+ ## Processing
38
+
39
+ - Downloaded `pages-articles` XML dump and verified SHA-1.
40
+ - Kept only namespace 0 articles and skipped redirects.
41
+ - Stripped templates and reference tags, preserved headings, and converted wiki links to markdown links.
42
+ - Stored a SQLite mirror (`pages` table) alongside the Hugging Face dataset.
43
+ - Markdown links point to the target page's numeric ID for fast lookup without a title-to-ID join.
44
+
45
+ ## Usage
46
+
47
+ Load with `datasets`:
48
+
49
+ ```python
50
+ from datasets import load_dataset
51
+
52
+ ds = load_dataset("juno-labs/simple_wikipedia", split="train")
53
+ print(ds[0])
54
+ ```
55
+
56
+ The SQLite file `simplewiki-20251201-articles.sqlite` contains identical columns for tooling that prefers SQL.