Dataset Viewer
Auto-converted to Parquet Duplicate
categories
list
former_quality_categories
list
id
string
metadata_revision_id
int64
page_id
int64
page_url
string
quality_statuses
list
raw_text
string
raw_text_sha256
string
revision_id
int64
revision_timestamp
timestamp[s]
revision_url
string
title
string
wikidata_id
string
wikitext
string
wikitext_sha256
string
["Википедия:Избранные_статьи_о_культуре_и_обществе","Ви(...TRUNCATED)
[]
ruwiki/21
155,304,860
21
https://ru.wikipedia.org/?curid=21
[ "featured" ]
"Социоло́гия (от и ) ― наука о совместной жизни групп и (...TRUNCATED)
6035e0b34830cf0c929374357c093bf4d629adcc7f6200dc81135c901a5562b7
155,304,860
2026-09-26T22:17:57
https://ru.wikipedia.org/w/index.php?oldid=155304860
Социология
Q21201
"[[Файл:P Society violet.png|безрамки|right|250px]]\n'''Социоло́гия''' (от (...TRUNCATED)
753c7c54197530f983e8958a4385b25b5ce8423e2cd5a4fd9894c0d0acf3011a
["Бывшие_столицы","Википедия:Cite_web_(заменить_webcitation-архив(...TRUNCATED)
[]
ruwiki/45
155,340,816
45
https://ru.wikipedia.org/?curid=45
[ "featured" ]
"Санкт-Петербу́рг (сокр. СПб; в 1914—1924 годах — Петрогра(...TRUNCATED)
004699ccec40697439522bdcdcf31f0ce831aa1731619fd7e6ab877a4b915991
155,340,816
2026-09-29T06:21:07
https://ru.wikipedia.org/w/index.php?oldid=155340816
Санкт-Петербург
Q656
"{{значения}}\n{{redirect-multi|3|Ленинград|Петроград|Петербург}}(...TRUNCATED)
9c47b440b906ce71fa31f01dbbb02dd146a500ae7b68a60d2c488f4405c0f395
["Антропогенные_географические_объекты_по_алфавиту","В(...TRUNCATED)
[]
ruwiki/49
155,353,474
49
https://ru.wikipedia.org/?curid=49
[ "good" ]
"Дворцо́вая пло́щадь (с 1918 до 1944 — площадь Урицкого) —(...TRUNCATED)
012127b6b224517a9f254e9ade3249d30d4aeb680916c8321dd4247e8e0d0cf1
155,353,474
2026-09-30T00:24:24
https://ru.wikipedia.org/w/index.php?oldid=155353474
Дворцовая площадь
Q1132624
"{{другие значения}}\n{{Площадь|Санкт-Петербурга\n |назван(...TRUNCATED)
e015362ae5e624cd9299e79284e62132655b1e0df96f244e897141bb38b9ef46
["Википедия:Нет_источников_с_октября_2018","Википедия:Ста(...TRUNCATED)
[]
ruwiki/61
155,268,935
61
https://ru.wikipedia.org/?curid=61
[ "good" ]
"Греко-персидские войны (500—449 годы до н. э., с перерыва(...TRUNCATED)
0e9cea42aa1cd0a8935b6ea065c04262bcdc5bd0d6e804b446038d2927899cda
155,268,935
2026-09-24T15:15:53
https://ru.wikipedia.org/w/index.php?oldid=155268935
Греко-персидские войны
Q76026
"{{Вооружённый конфликт\n| конфликт = Греко-персидские в(...TRUNCATED)
c61c74001af65e0d993377747e69b8866c4987460bc2aac1d3776f41a2b56246
["Википедия:Cite_web_(недоступные_ссылки_без_архивной_копи(...TRUNCATED)
[]
ruwiki/98
155,213,029
98
https://ru.wikipedia.org/?curid=98
[ "good" ]
"Тихий океан\nТи́хий океа́н (устар. Великий океан<TAG><TAG><T(...TRUNCATED)
16d14729e938ff07031870d5926de278bfc490393f09fb05cd3aa000a807abf6
155,213,029
2026-09-20T16:33:13
https://ru.wikipedia.org/w/index.php?oldid=155213029
Тихий океан
Q98
"{{другие значения|Тихий океан (значения)|тип=топоним}}\n{(...TRUNCATED)
77ac7216de04b14cd54e6e7a34092a1acdb837a2fcee8f6aac2ac56a20788cc4
["Атлантический_океан","Википедия:Cite_web_(не_указан_язык)",(...TRUNCATED)
[]
ruwiki/99
154,424,998
99
https://ru.wikipedia.org/?curid=99
[ "good" ]
"Атланти́ческий океа́н — второй по площади и глубине (...TRUNCATED)
0ec9df53dc00e6d92ae7e33ad5e9c505033c1ddfc7a4495fb190563c004624c1
154,424,998
2026-08-14T09:27:55
https://ru.wikipedia.org/w/index.php?oldid=154424998
Атлантический океан
Q97
"{{перенаправление|Атлантика}}\n{{Море\n |Название (...TRUNCATED)
8687688741a909c7f0dd6ef858e0d95ad2d4847a5735c16a95f87ddace4b3b27
["Википедия:Cite_web_(заменить_webcitation-архив:_deadlink_no)","Википе(...TRUNCATED)
[]
ruwiki/101
154,425,002
101
https://ru.wikipedia.org/?curid=101
[ "good" ]
"Нева́ — река в России, протекающая по территории Лени(...TRUNCATED)
726d711f80aadc12f377299db5c9b62d9796934c7dcbc4f06772ab9b724a4db7
154,425,002
2026-08-14T09:28:04
https://ru.wikipedia.org/w/index.php?oldid=154425002
Нева
Q645
"{{другие значения}}\n{{Река\n |Название = Нева\n |Н(...TRUNCATED)
115172a08179b106d899921ef2570cdd54f23cf0c2174c08ce4020fe715a21f1
["Википедия:Хорошие_статьи_по_алфавиту","Википедия:Хоро(...TRUNCATED)
[]
ruwiki/138
140,998,763
138
https://ru.wikipedia.org/?curid=138
[ "good" ]
"Тонкослойная хроматограмма чёрных чернил\nТонкослойн(...TRUNCATED)
a0545ee46595a22337623896e6bd0fdff2828ef73985f882b74f9d1122bc84ae
140,998,763
2024-10-23T15:44:18
https://ru.wikipedia.org/w/index.php?oldid=140998763
Тонкослойная хроматография
Q746133
"[[Файл:TLC black ink.jpg|мини|Тонкослойная хроматограмма чёрн(...TRUNCATED)
7d1fae6f2545a6874a413b33649b38394dc29a3ce3f39d169c6c627a734384da
["Аналитическая_химия","Википедия:Добротные_статьи:Хим(...TRUNCATED)
[]
ruwiki/150
152,389,657
150
https://ru.wikipedia.org/?curid=150
[ "recommended" ]
"А́томно-абсорбцио́нная спектрометри́я (ААС) — распро(...TRUNCATED)
d1485b7df757e40b16df5d1b951da9ca4622b2c32d0d5f9d51d81cd0ce61e701
152,389,657
2026-03-25T07:33:59
https://ru.wikipedia.org/w/index.php?oldid=152389657
Атомно-абсорбционная спектрометрия
Q655346
"{{redirect|ААС<!-- это кириллица!-->|Advanced Audio Coding|о формате зву(...TRUNCATED)
539c4c08abf91cba89d2618ae1ac59f008f0294b7247c69c5ccaf639bc2cd5d0
["Белки","Биоинформатика","Википедия:Хорошие_статьи_по_а(...TRUNCATED)
[]
ruwiki/168
148,661,005
168
https://ru.wikipedia.org/?curid=168
[ "good" ]
"Протео́мика () — область молекулярной биологии, посвя(...TRUNCATED)
8194c49d6d72c1cc906d009f668353c64a1625e28bbd49b20133625d11e89e33
148,661,005
2025-09-20T12:12:43
https://ru.wikipedia.org/w/index.php?oldid=148661005
Протеомика
Q471857
"'''Протео́мика''' ({{lang-en|proteomics}}) — область [[Молекулярна(...TRUNCATED)
c4728c49bbcdfd99e52e87cd6c4c0ff8196c67bae502b7fdf6853b484989cbcf
End of preview. Expand in Data Studio

RuWiki-Good-2026 — Russian Wikipedia quality articles

A Russian-language corpus of 17,413 Wikipedia articles with active community quality status in the 20261001 Russian Wikipedia dump, accompanied by a catalog of 831,556 categories. Each article includes its title, source wikitext, extracted readable text, direct categories, quality status and revision links. The category catalog supports inspection of direct membership and parent relationships; it is not a curated subject taxonomy.

The full collection is published as TopicNet/RuWiki-Good-2026. Its subject-labeled companion is TopicNet/RuWiki-Good-Thematized-2026. In the preparation commands below, these datasets are called Full and Thematized, respectively.

Files at a glance

File Purpose Bytes
data/articles.jsonl.gz Source article records, readable text and provenance. 409,970,311
data/categories.jsonl.gz Category catalog and direct parent relationships. 22,459,573
data/noow.csv Whole-document text and ordered normalized VW features. 1,128,356,201
data/bow.csv The same documents with counted VW features. 883,080,852

The reusable code, environment locks and source/output pins are in preprocessing/. SHA256SUMS covers the published data and preparation files; see file verification.

Coverage and selection

The corpus is the union of namespace-0 articles in these direct SQL categories:

Status value Russian designation Selection category Articles
recommended Добротные статьи Википедия:Добротные_статьи_по_алфавиту 9,937
good Хорошие статьи Википедия:Хорошие_статьи_по_алфавиту 5,264
featured Избранные статьи Википедия:Избранные_статьи_по_алфавиту 2,212

Redirects and disambiguation pages are excluded. Statuses are stored as lists: multiple active statuses are preserved rather than ranked or collapsed. Former status categories are retained separately and do not exclude an article that has an active status. These are community editorial designations at this snapshot, not independent factual checks or current assessments.

All selected articles are retained. Source selection applies no thematic filtering, sampling, subject-label assignment or research train/test split. The original JSON records are preserved; the optional preparation workflow below produces separate NLP CSV files. There are no exact duplicate wikitext or raw_text values in this snapshot; the selection procedure does not remove records because they share text. The corpus partition is a storage partition, not a research split.

Quick start: load the published files

The articles configuration is the default. articles and categories use compressed JSON Lines and the corpus split, with no dataset script. With Hugging Face Datasets:

from datasets import load_dataset

articles = load_dataset(
    "TopicNet/RuWiki-Good-2026", "articles", split="corpus"
)
categories = load_dataset(
    "TopicNet/RuWiki-Good-2026", "categories", split="corpus"
)
print(len(articles))    # 17413
print(len(categories))  # 831556

From a downloaded repository, the same files can be loaded directly:

articles = load_dataset(
    "json", data_files={"corpus": "data/articles.jsonl.gz"}, split="corpus"
)
categories = load_dataset(
    "json", data_files={"corpus": "data/categories.jsonl.gz"}, split="corpus"
)

The prepared NLP files data/noow.csv and data/bow.csv contain the same 17,413 article IDs, in source order, with string columns id, raw_text, vw_text. Use the CSV reader for these files, separately from the repository's JSON Lines configurations:

noow = load_dataset(
    "csv",
    data_files={"corpus": "hf://datasets/TopicNet/RuWiki-Good-2026/data/noow.csv"},
    split="corpus",
)
bow = load_dataset(
    "csv",
    data_files={"corpus": "hf://datasets/TopicNet/RuWiki-Good-2026/data/bow.csv"},
    split="corpus",
)

From the root of the downloaded repository:

noow = load_dataset(
    "csv", data_files={"corpus": "data/noow.csv"}, split="corpus"
)
bow = load_dataset(
    "csv", data_files={"corpus": "data/bow.csv"}, split="corpus"
)

CSV is the primary prepared format. The explicit "csv" builder above is required: these files are not additional YAML configurations, because combining JSON and CSV builders in one repository configuration did not load reliably. The published CSV files have been fully read with Hugging Face Datasets.

To export one VW document per line without loading the CSV into memory, run this from the downloaded repository. Choose an output path outside the repository:

import csv
from pathlib import Path

csv.field_size_limit(2**31 - 1)
with Path("data/noow.csv").open(encoding="utf-8", newline="") as source:
    with Path("../noow.vw").open("w", encoding="utf-8", newline="") as output:
        for row in csv.DictReader(source):
            output.write(row["vw_text"] + "\n")

The field-size setting is needed only for Python's standard csv reader; it does not configure Hugging Face Datasets. Use bow.csv in the same example for counted features. CSV records contain whole documents and may include embedded newlines in raw_text, so splitting the CSV by physical lines is unsafe. The repository does not store a second permanent copy as VW text files.

The NLP preparation section describes the normalized namespaces and text fields.

Article fields

Field JSON type Meaning
id string Stable page identity, ruwiki/<page_id>.
page_id integer Russian Wikipedia page ID.
title string Article title with spaces, separate from the text.
wikitext string XML-decoded revision wikitext.
raw_text string Readable text extracted from wikitext; not rendered HTML.
wikitext_sha256 string SHA-256 of UTF-8 encoded wikitext.
raw_text_sha256 string SHA-256 of UTF-8 encoded raw_text.
quality_statuses array of strings Active recommended, good and/or featured statuses from SQL.
former_quality_categories array of strings Direct former-status category names from SQL; may be empty.
categories array of strings All direct SQL category names, including maintenance categories.
wikidata_id string or null Wikidata QID from SQL page properties, when available.
revision_id integer Content revision ID from XML.
revision_timestamp string XML revision timestamp in UTC, such as 2026-09-26T22:17:57Z.
metadata_revision_id integer SQL page revision ID; may differ from revision_id.
page_url string Page-ID URL for the source page and access to its history.
revision_url string Permanent URL for the content revision.

The table describes the stored JSON types. Hugging Face Datasets 5.0.0 infers revision_timestamp as timestamp[s] and former_quality_categories as List(null) for this release, whose former-status lists are empty. Nullable scalar fields remain nullable when loaded.

For example, the following is an actual record projected onto a few fields (the text and remaining fields are omitted here):

{
  "id": "ruwiki/21",
  "page_id": 21,
  "title": "Социология",
  "quality_statuses": ["featured"],
  "wikidata_id": "Q21201",
  "revision_id": 155304860,
  "metadata_revision_id": 155304860,
  "revision_timestamp": "2026-09-26T22:17:57Z",
  "page_url": "https://ru.wikipedia.org/?curid=21",
  "revision_url": "https://ru.wikipedia.org/w/index.php?oldid=155304860"
}

Category fields and joins

Field JSON type Meaning
title string Category name without the category namespace prefix, preserving SQL underscores.
page_id integer or null Category page ID; null for redlinks.
wikidata_id string or null Wikidata QID, when available.
is_hidden boolean or null Hidden-category flag; null for redlinks.
is_redirect boolean or null Category-page redirect flag; null for redlinks.
parents array of strings Direct parent category names in the same spelling as title.

The catalog includes all category pages in the SQL snapshot and referenced categories without a page (redlinks), rather than only categories used by the selected articles. There are 72,676 redlinks, 2,047,936 parent links and 269,139 direct article-category links. Redlink records have null page ID, flags and QID and an empty parent list. Parent cycles and redirect flags are preserved; parent links do not define a tree or validated semantic hierarchy.

Join an article's categories entries, or a category's parents entries, to category title exactly, without converting underscores to spaces. Article title uses spaces and is not the join key. For instance, Социология is a direct category of article ruwiki/21. The following complete category record illustrates the stored format:

{
  "is_hidden": false,
  "is_redirect": false,
  "page_id": 3042229,
  "parents": [
    "Википедия:Категории_с_основной_статьёй_из_Викиданных",
    "Категории_музыкальных_коллективов_США"
  ],
  "title": "(hed)_P.E.",
  "wikidata_id": "Q7573257"
}

Sources and revision semantics

The source is the Russian Wikipedia 20261001 dump. The source and output pins record the names, byte sizes and SHA-256 digests of all six inputs: page, page properties, category links and link targets SQL dumps, plus the multistream article XML and its index. Dump mirrors may later remove this dated snapshot; the pins identify the inputs independently of their availability.

SQL provides selection, titles, page properties and category relationships. XML provides article content, revision_id and revision_timestamp. 11 articles have differing SQL and XML revision IDs; the metadata and content should not be assumed to describe one atomic revision. Use revision_url to identify the exact text revision, and retain both IDs when recording provenance. Live pages and categories can differ from this snapshot.

Readable extraction uses mwparserfromhell 0.7.2 and deterministic markup cleanup. It does not render Wikipedia or expand templates fully. Templates, infoboxes, tables, references, captions, formulae and formatting may be removed or simplified; fragments of markup or awkward text may remain. wikitext is retained so readers can inspect these losses or apply a different extraction procedure. Neither raw_text nor the category metadata is a manually corrected annotation.

NLP preparation

The standalone preparation code builds noow.csv and bow.csv from the pinned article snapshots without modifying their JSON files. Full uses all 17,413 articles. Each CSV has exactly three columns: id, raw_text, vw_text. IDs and article order are preserved. CSV raw_text is the title, two LF characters and the original readable body with only its leading CR/LF characters removed. In the original JSON, raw_text remains the readable body alone. Standard CSV quoting preserves embedded newlines; one whole-document row can span many physical lines.

vw_text uses Vowpal Wabbit namespaces in this order:

Namespace Contents
@title Normalized title tokens.
@word Normalized body tokens only; the title is not prepended.
@bigram Accepted adjacent body bigrams.
@trigram Accepted adjacent body trigrams.
@category All direct Wikipedia categories, including service and maintenance categories.

NOOW preserves the normalized token sequence within each namespace, not the raw prose. BOW counts exactly those NOOW tokens independently in each namespace. It does not trim the token sequence or remove articles. There are no research splits, deduplication, model training or chain extraction in this workflow.

Normalization uses spacy.blank("ru"), pymorphy3 normal forms and the union of spaCy Russian and NLTK Russian stopwords. Punctuation and whitespace tokens are removed; HTML tags, URLs and email addresses become <TAG>, <URL> and <MAIL>. Cyrillic stress marks are removed; lexical Cyrillic compounds with ASCII hyphen, U+2010 or U+2011 are normalized to ASCII hyphens and kept as single tokens. Person names are not masked.

Bigrams and trigrams are selected independently using NLTK PMI after a corpus frequency threshold of 5, with nbest(32100)[100:] for each order. Selection uses all normalized article bodies in the chosen collection; it is corpus-global, not fitted only on a later training split. Full and Thematized therefore have separately selected n-gram vocabularies. These CSVs are not a claim of evaluation without information from held-out documents. For text-only experiments, use only @word; title, category and subject metadata may reveal evaluation targets.

Rebuild NLP CSVs from ready article snapshots

Run the preparation commands from preprocessing/ in the downloaded Full collection. Local repository directories may have any names. Replace the paths below with your own absolute paths: work_dir is a separate working directory, and selected_data points to the Thematized collection's data/ directory. Choose fresh output and scratch paths on a disk with enough space; corpus output and scratch inside a published clone are rejected. Python 3.11.15 is the pinned runtime for both build and verify: VW escaping depends on its Unicode database. On Linux x86-64, use the supplied locks:

cd "/absolute/path/to/full/preprocessing"
work_dir="/absolute/path/to/ruwiki-rebuild"
selected_data="/absolute/path/to/selected/data"

conda create --name ruwiki-nlp --file conda-linux-64.lock.txt
conda activate ruwiki-nlp
python -m pip install -r pip-linux-x86_64.lock.txt
python prepare.py --help
python prepare.py --stage nlp --action download --dataset both \
  --sources-dir "$work_dir/nlp-sources"
python prepare.py --stage nlp --action build --dataset both \
  --sources-dir "$work_dir/nlp-sources" \
  --output-dir "$work_dir/nlp-output" \
  --scratch-dir "$work_dir/nlp-scratch"
python prepare.py --stage nlp --action verify --dataset both \
  --sources-dir "$work_dir/nlp-sources" \
  --output-dir "$work_dir/nlp-output"

Local paths above are independent of Hugging Face repository names. Online loading examples and cross-repository links use the published Hugging Face IDs. If those IDs change, the links and the downloader's pinned source addresses need to be reviewed separately; renaming a local directory does not change them.

--stage nlp is the default, so earlier commands without --stage continue to work. Choose --dataset full, selected or both. The pinned NLP contract records source revisions, source payload hashes and runtime requirements. The corpus contract additionally pins the expected published NLP output bytes. requirements.txt lists direct dependencies, including mwparserfromhell==0.7.2 for corpus extraction. The locks retain the complete environment used for NLP; no downloaded spaCy language model is needed. If installing only the direct requirements in a separate environment, retain Python 3.11.15.

Download checks existing source files against their pins, fetches missing files, and acquires the pinned NLTK archive at $work_dir/nlp-sources/nltk_data/corpora/stopwords.zip. To reuse downloaded JSONL files, place them at $work_dir/nlp-sources/full/articles.jsonl.gz, $work_dir/nlp-sources/selected/articles.jsonl.gz and $work_dir/nlp-sources/selected/topics.jsonl.gz before running download. This step creates the local NLTK resource directory; no pre-existing nltk_data is required. Use --nltk-data to select a different local NLTK resource directory.

Hugging Face downloads use anonymous Python urllib. For restricted repositories, fetch the pinned files with authenticated tools, place them at the paths above, and rerun download. The script does not handle authentication tokens. Build runs offline, checks runtime versions and Russian stopword content, and writes $work_dir/nlp-output/full and $work_dir/nlp-output/selected. Keep outputs and scratch separate from published data and use a fresh scratch directory for a new build. Progress messages identify phases and document counts. Each build manifest records counts and ordered IDs of documents with an empty @word namespace; those articles remain in the output.

Verification needs no NLP packages. It checks source identities, output hashes against the build manifest, schemas, source text and NOOW/BOW token-count agreement. The shared entry point then independently checks the generated CSVs and Thematized labels against published byte sizes and SHA-256 pins in the corpus contract, reporting PUBLISHED_NLP_OK on success. These expectations are separate from the newly generated manifest. Verification does not rerun tokenization, lemmatization or PMI selection.

A measured build of both NLP collections from the ready JSONL snapshots took 42 min 5.83 s, with 10.58 GiB peak resident memory, approximately 3.74 GiB of final output and 0.53 GiB of scratch files. These measurements exclude raw dump downloads and corpus reconstruction; they are an example from one environment, not a bound for other machines.

Load a generated CSV directly:

from pathlib import Path

# Use the same work directory as in the shell commands.
work_dir = Path("/absolute/path/to/ruwiki-rebuild")
output_dir = work_dir / "nlp-output/full"
noow = load_dataset(
    "csv", data_files={"corpus": str(output_dir / "noow.csv")}, split="corpus"
)
bow = load_dataset(
    "csv", data_files={"corpus": str(output_dir / "bow.csv")}, split="corpus"
)

Rebuild the corpus from Wikimedia dumps

The same entry point supports --stage corpus, with download, build and verify actions. The corpus contract pins the six 20261001 dump files, the published article/category payloads and the retained Thematized annotations. This public raw-dump replay has not yet been run end to end. Its download time, build time and peak disk and memory requirements have not been measured; the NLP measurements above do not describe this stage.

Keep the same preprocessing/ working directory and path variables as in the NLP commands above. The Thematized annotation directory must already contain labels.json and topics.jsonl.gz. These retained mappings reproduce the published subject assignments; the script does not rerun AI labeling.

python prepare.py --stage corpus --action download --dataset both \
  --sources-dir "$work_dir/dump-sources"
# Resume an interrupted dump download explicitly:
python prepare.py --stage corpus --action download --dataset both \
  --sources-dir "$work_dir/dump-sources" \
  --resume
python prepare.py --stage corpus --action build --dataset both \
  --sources-dir "$work_dir/dump-sources" \
  --annotations-dir "$selected_data" \
  --output-dir "$work_dir/corpus-output" \
  --scratch-dir "$work_dir/corpus-scratch"
python prepare.py --stage corpus --action verify --dataset both \
  --sources-dir "$work_dir/dump-sources" \
  --output-dir "$work_dir/corpus-output"

Download stores and checks the six pinned files beneath --sources-dir. After all files are present, build is offline. It reconstructs SQL metadata, selects qualifying article IDs, extracts the indexed XML revisions, and applies the readable-text cleanup. It writes $work_dir/corpus-output/full/articles.jsonl.gz and categories.jsonl.gz, plus $work_dir/corpus-output/selected/articles.jsonl.gz and topics.jsonl.gz. Use separate fresh output and scratch directories, leaving published data/ untouched. Corpus verification compares outputs with the independently bundled expected published payloads, rather than trusting hashes newly written by the build itself.

For Full only, set --dataset full and omit --annotations-dir. Thematized can also be reconstructed from a previously accepted Full corpus without rereading the dumps. From the same preprocessing/ directory, resolve Full's data path:

full_data="$(cd ../data && pwd -P)"
python prepare.py --stage corpus --action build --dataset selected \
  --sources-dir "$full_data" \
  --full-dir "$full_data" \
  --annotations-dir "$selected_data" \
  --output-dir "$work_dir/selected-output" \
  --scratch-dir "$work_dir/selected-scratch"
python prepare.py --stage corpus --action verify --dataset selected \
  --sources-dir "$full_data" \
  --output-dir "$work_dir/selected-output"

This Thematized-only workflow has been verified byte for byte against the published archive of all 17,251 articles, the labels file and the topic definitions.

To continue from reconstructed JSONL to NLP, the corpus output root is directly usable as --sources-dir. Download then supplies the pinned NLTK archive before the offline NLP build:

python prepare.py --stage nlp --action download --dataset both \
  --sources-dir "$work_dir/corpus-output"
python prepare.py --stage nlp --action build --dataset both \
  --sources-dir "$work_dir/corpus-output" \
  --output-dir "$work_dir/replay-nlp-output" \
  --scratch-dir "$work_dir/replay-nlp-scratch"
python prepare.py --stage nlp --action verify --dataset both \
  --sources-dir "$work_dir/corpus-output" \
  --output-dir "$work_dir/replay-nlp-output"

The code in preprocessing/ is available under its MIT license. The article text and its normalized derivatives retain the CC BY-SA 4.0 terms and attribution requirements described below.

Attribution, license and use

Article text and wikitext are attributed to Russian Wikipedia contributors and distributed under Creative Commons Attribution-ShareAlike 4.0. Each record's revision_url identifies the revision used; page_url provides access to the page and its edit history for contributor attribution. Follow attribution and share-alike requirements when redistributing text or adaptations, identify your changes, and preserve appropriate source links. Wikipedia can contain quotations or other third-party material with additional terms. Wikidata identifiers refer to Wikidata, whose structured data is available under CC0; their presence does not change the license of the article text. Images and other media binaries are not included.

Potential uses include Russian text analysis, inspection of markup extraction and research on Wikipedia editorial metadata or category relationships. This is a small, editorially selected portion of Russian Wikipedia, not a representative sample of Russian writing or an evenly balanced subject collection. Quality status does not guarantee accuracy, neutrality, completeness or suitability for any downstream application. Articles can contain sensitive, biased, outdated or offensive material. Any further subject labels, deduplication policy, preprocessing and research splits needed for a downstream study must be specified separately.

File verification

From the root of the downloaded repository, verify the distributed data and preparation files with:

sha256sum -c SHA256SUMS

SHA256SUMS lists those files without embedding long digests in this card. It excludes this README and Git/service metadata. The corpus and NLP contracts in preprocessing/ pin source inputs, while the corpus contract also pins expected published corpus and NLP payloads independently of a new build. A successful checksum check establishes agreement with the supplied manifest; use a trusted repository revision when establishing provenance.

Downloads last month
110