Vasily Alexeev commited on
Commit
c6189e5
·
1 Parent(s): bab6ace

add info in readme

Browse files
Files changed (1) hide show
  1. README.md +215 -1
README.md CHANGED
@@ -1,3 +1,217 @@
1
  ---
2
- license: mit
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - ru
4
+ license: cc-by-sa-4.0
5
+ pretty_name: Russian Wikipedia quality articles (20261001)
6
+ configs:
7
+ - config_name: articles
8
+ default: true
9
+ data_files:
10
+ - split: corpus
11
+ path: data/articles.jsonl.gz
12
+ - config_name: categories
13
+ data_files:
14
+ - split: corpus
15
+ path: data/categories.jsonl.gz
16
  ---
17
+
18
+ # Russian Wikipedia quality articles — 20261001
19
+
20
+ A Russian-language corpus of **17,413 Wikipedia articles** with active community
21
+ quality status in the **20261001** Russian Wikipedia dump, accompanied by a
22
+ catalog of **831,556 categories**. Each article includes its title, source
23
+ wikitext, extracted readable text, direct categories, quality status and revision
24
+ links. The category catalog supports inspection of direct membership and parent
25
+ relationships; it is not a curated subject taxonomy.
26
+
27
+ ## Coverage and selection
28
+
29
+ The corpus is the union of namespace-0 articles in these direct SQL categories:
30
+
31
+ | Status value | Russian designation | Selection category | Articles |
32
+ | --- | --- | --- | ---: |
33
+ | `recommended` | Добротные статьи | `Википедия:Добротные_статьи_по_алфавиту` | 9,937 |
34
+ | `good` | Хорошие статьи | `Википедия:Хорошие_статьи_по_алфавиту` | 5,264 |
35
+ | `featured` | Избранные статьи | `Википедия:Избранные_статьи_по_алфавиту` | 2,212 |
36
+
37
+ Redirects and disambiguation pages are excluded. Statuses are stored as lists:
38
+ multiple active statuses are preserved rather than ranked or collapsed. Former
39
+ status categories are retained separately and do not exclude an article that has
40
+ an active status. These are community editorial designations at this snapshot,
41
+ not independent factual checks or current assessments.
42
+
43
+ All selected articles are retained. There is no thematic filtering, sampling,
44
+ NLP processing, subject-label assignment or research train/test split. There are
45
+ no exact duplicate `wikitext` or `raw_text` values in this snapshot; the selection
46
+ procedure does not remove records because they share text. The `corpus`
47
+ partition is a storage partition, not a research split.
48
+
49
+ ## Loading
50
+
51
+ Both configurations use compressed JSON Lines and require no dataset script.
52
+ With Hugging Face Datasets:
53
+
54
+ ```python
55
+ from datasets import load_dataset
56
+
57
+ articles = load_dataset(
58
+ "TopicNet/RuWiki-Good-2026-V2", "articles", split="corpus"
59
+ )
60
+ categories = load_dataset(
61
+ "TopicNet/RuWiki-Good-2026-V2", "categories", split="corpus"
62
+ )
63
+ print(len(articles)) # 17413
64
+ print(len(categories)) # 831556
65
+ ```
66
+
67
+ From a downloaded repository, the same files can be loaded directly:
68
+
69
+ ```python
70
+ articles = load_dataset(
71
+ "json", data_files={"corpus": "data/articles.jsonl.gz"}, split="corpus"
72
+ )
73
+ categories = load_dataset(
74
+ "json", data_files={"corpus": "data/categories.jsonl.gz"}, split="corpus"
75
+ )
76
+ ```
77
+
78
+ ## Article fields
79
+
80
+ | Field | JSON type | Meaning |
81
+ | --- | --- | --- |
82
+ | `id` | string | Stable page identity, `ruwiki/<page_id>`. |
83
+ | `page_id` | integer | Russian Wikipedia page ID. |
84
+ | `title` | string | Article title with spaces, separate from the text. |
85
+ | `wikitext` | string | XML-decoded revision wikitext. |
86
+ | `raw_text` | string | Readable text extracted from `wikitext`; not rendered HTML. |
87
+ | `wikitext_sha256` | string | SHA-256 of UTF-8 encoded `wikitext`. |
88
+ | `raw_text_sha256` | string | SHA-256 of UTF-8 encoded `raw_text`. |
89
+ | `quality_statuses` | array of strings | Active `recommended`, `good` and/or `featured` statuses from SQL. |
90
+ | `former_quality_categories` | array of strings | Direct former-status category names from SQL; may be empty. |
91
+ | `categories` | array of strings | All direct SQL category names, including maintenance categories. |
92
+ | `wikidata_id` | string or null | Wikidata QID from SQL page properties, when available. |
93
+ | `revision_id` | integer | Content revision ID from XML. |
94
+ | `revision_timestamp` | string | XML revision timestamp in UTC, such as `2026-09-26T22:17:57Z`. |
95
+ | `metadata_revision_id` | integer | SQL page revision ID; may differ from `revision_id`. |
96
+ | `page_url` | string | Page-ID URL for the source page and access to its history. |
97
+ | `revision_url` | string | Permanent URL for the content revision. |
98
+
99
+ The table describes the stored JSON types. Hugging Face Datasets 5.0.0 infers
100
+ `revision_timestamp` as `timestamp[s]` and `former_quality_categories` as
101
+ `List(null)` for this release, whose former-status lists are empty. Nullable
102
+ scalar fields remain nullable when loaded.
103
+
104
+ For example, the following is an actual record projected onto a few fields (the
105
+ text and remaining fields are omitted here):
106
+
107
+ ```json
108
+ {
109
+ "id": "ruwiki/21",
110
+ "page_id": 21,
111
+ "title": "Социология",
112
+ "quality_statuses": ["featured"],
113
+ "wikidata_id": "Q21201",
114
+ "revision_id": 155304860,
115
+ "metadata_revision_id": 155304860,
116
+ "revision_timestamp": "2026-09-26T22:17:57Z",
117
+ "page_url": "https://ru.wikipedia.org/?curid=21",
118
+ "revision_url": "https://ru.wikipedia.org/w/index.php?oldid=155304860"
119
+ }
120
+ ```
121
+
122
+ ## Category fields and joins
123
+
124
+ | Field | JSON type | Meaning |
125
+ | --- | --- | --- |
126
+ | `title` | string | Category name without the category namespace prefix, preserving SQL underscores. |
127
+ | `page_id` | integer or null | Category page ID; null for redlinks. |
128
+ | `wikidata_id` | string or null | Wikidata QID, when available. |
129
+ | `is_hidden` | boolean or null | Hidden-category flag; null for redlinks. |
130
+ | `is_redirect` | boolean or null | Category-page redirect flag; null for redlinks. |
131
+ | `parents` | array of strings | Direct parent category names in the same spelling as `title`. |
132
+
133
+ The catalog includes all category pages in the SQL snapshot and referenced
134
+ categories without a page (redlinks), rather than only categories used by the
135
+ selected articles. There are **72,676 redlinks**, **2,047,936 parent links** and
136
+ **269,139 direct article-category links**. Redlink records have null page ID,
137
+ flags and QID and an empty parent list. Parent cycles and redirect flags are
138
+ preserved; parent links do not define a tree or validated semantic hierarchy.
139
+
140
+ Join an article's `categories` entries, or a category's `parents` entries, to
141
+ category `title` exactly, without converting underscores to spaces. Article
142
+ `title` uses spaces and is not the join key. For instance, `Социология` is a direct
143
+ category of article `ruwiki/21`. The following complete category record illustrates
144
+ the stored format:
145
+
146
+ ```json
147
+ {
148
+ "is_hidden": false,
149
+ "is_redirect": false,
150
+ "page_id": 3042229,
151
+ "parents": [
152
+ "Википедия:Категории_с_основной_статьёй_из_Викиданных",
153
+ "Категории_музыкальных_коллективов_США"
154
+ ],
155
+ "title": "(hed)_P.E.",
156
+ "wikidata_id": "Q7573257"
157
+ }
158
+ ```
159
+
160
+ ## Sources and revision semantics
161
+
162
+ The source is the [Russian Wikipedia 20261001 dump](https://dumps.wikimedia.org/ruwiki/20261001/).
163
+ The exact source files are listed below with their SHA-256 digests. Dump mirrors
164
+ may later remove this dated snapshot; the filenames and digests identify the
165
+ inputs independently of their continued availability.
166
+
167
+ | File | SHA-256 |
168
+ | --- | --- |
169
+ | `ruwiki-20261001-page.sql.gz` | `24250cca6122fff02896a1ced0a85b7afa4d6be00fa119c169a5eeef3fbe5830` |
170
+ | `ruwiki-20261001-page_props.sql.gz` | `fc9d5aeaf3487d932b82d18a16bc96f0e4e4702e1149cbbdc482eb509f6deb60` |
171
+ | `ruwiki-20261001-categorylinks.sql.gz` | `1ecb32ffaff28a120b6a8f4297d4b228b65c49beb593eae022b5811ae41512e1` |
172
+ | `ruwiki-20261001-linktarget.sql.gz` | `bc1f24b7b8eb06298cbe70fdfb010ec023586d05bd2d3403ba2370091e1edc4a` |
173
+ | `ruwiki-20261001-pages-articles-multistream.xml.bz2` | `c22b6441176d2bc572ed6883abc6292fe168efca211f6cdd61d8772a78492a1b` |
174
+ | `ruwiki-20261001-pages-articles-multistream-index.txt.bz2` | `17c6a4cebb90ecb2b0f881e04aa3b49356bd6ee6add802a7201b9ca1a9b093e3` |
175
+
176
+ SQL provides selection, titles, page properties and category relationships. XML
177
+ provides article content, `revision_id` and `revision_timestamp`. **11 articles**
178
+ have differing SQL and XML revision IDs; the metadata and content should not be
179
+ assumed to describe one atomic revision. Use `revision_url` to identify the exact
180
+ text revision, and retain both IDs when recording provenance. Live pages and
181
+ categories can differ from this snapshot.
182
+
183
+ Readable extraction uses `mwparserfromhell` 0.7.2 and deterministic markup cleanup.
184
+ It does not render Wikipedia or expand templates fully. Templates, infoboxes,
185
+ tables, references, captions, formulae and formatting may be removed or simplified;
186
+ fragments of markup or awkward text may remain. `wikitext` is retained so readers
187
+ can inspect these losses or apply a different extraction procedure. Neither
188
+ `raw_text` nor the category metadata is a manually corrected annotation.
189
+
190
+ ## Attribution, license and use
191
+
192
+ Article text and wikitext are attributed to **Russian Wikipedia contributors**
193
+ and distributed under [Creative Commons Attribution-ShareAlike 4.0](https://creativecommons.org/licenses/by-sa/4.0/).
194
+ Each record's `revision_url` identifies the revision used; `page_url` provides
195
+ access to the page and its edit history for contributor attribution. Follow
196
+ attribution and share-alike requirements when redistributing text or adaptations,
197
+ identify your changes, and preserve appropriate source links. Wikipedia can
198
+ contain quotations or other third-party material with additional terms. Wikidata
199
+ identifiers refer to [Wikidata](https://www.wikidata.org/wiki/Wikidata:Licensing),
200
+ whose structured data is available under CC0; their presence does not change the
201
+ license of the article text. Images and other media binaries are not included.
202
+
203
+ Potential uses include Russian text analysis, inspection of markup extraction and
204
+ research on Wikipedia editorial metadata or category relationships. This is a
205
+ small, editorially selected portion of Russian Wikipedia, not a representative
206
+ sample of Russian writing or an evenly balanced subject collection. Quality
207
+ status does not guarantee accuracy, neutrality, completeness or suitability for
208
+ any downstream application. Articles can contain sensitive, biased, outdated or
209
+ offensive material. Any subject labels, deduplication policy, preprocessing and
210
+ research splits needed for a downstream study must be specified separately.
211
+
212
+ ## Published file identity
213
+
214
+ | File | Compressed bytes | SHA-256 |
215
+ | --- | ---: | --- |
216
+ | `data/articles.jsonl.gz` | 409,970,311 | `c51f9b6bee4c85f25ffb861060f52490a9276bae289d2aa2db7e0d10e2dda950` |
217
+ | `data/categories.jsonl.gz` | 22,459,573 | `d07ab1e6c07da28cc162d786853a73c54e300289e21bcc6667c4072158abdf8f` |