Vasily Alexeev commited on
Commit
362a49e
·
1 Parent(s): 6570903

add splits

Browse files
Files changed (3) hide show
  1. README.md +52 -4
  2. SHA256SUMS +1 -0
  3. data/splits.json +0 -0
README.md CHANGED
@@ -36,6 +36,7 @@ definitions. The full category catalog remains in the source collection.
36
  | `data/topic-provenance.jsonl.gz` | Frozen initial/final assignments and review status for all Full IDs. | 127,895 |
37
  | `data/noow.csv` | Whole-document text and ordered normalized VW features. | 1,118,455,706 |
38
  | `data/bow.csv` | The same documents with counted VW features. | 875,143,956 |
 
39
 
40
  [SHA256SUMS](SHA256SUMS) covers this repository's published data. Preparation code,
41
  environment locks and source/output pins are maintained once in the
@@ -94,7 +95,8 @@ are not thereby certified correct.
94
 
95
  The original JSON records have no NLP preprocessing or model scoring. The
96
  optional preparation workflow below produces separate NLP CSV files without a
97
- research train/test split. The `corpus` split is a storage partition. Source text
 
98
  has not been shortened or rewritten for subject selection. No exact duplicate source text was
99
  removed. This collection is not a representative sample of Russian writing.
100
 
@@ -161,6 +163,51 @@ required: these files are not additional YAML configurations, because combining
161
  JSON and CSV builders in one repository configuration did not load reliably.
162
  The published CSV files have been fully read with Hugging Face Datasets.
163
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
164
  To export one VW document per line without loading the CSV into memory, run this
165
  from the downloaded repository. Choose an output path outside the repository:
166
 
@@ -545,8 +592,9 @@ sample of Russian writing or an evenly balanced subject collection. Quality
545
  status does not guarantee accuracy, neutrality, completeness or suitability for
546
  any downstream application. Articles can contain sensitive, biased, outdated or
547
  offensive material. The partial subject labels described here do not establish a complete reference
548
- annotation. Further downstream preprocessing, deduplication policy and research
549
- splits must be specified separately.
 
550
 
551
  ## File verification
552
 
@@ -556,7 +604,7 @@ Run from this downloaded repository's root:
556
  sha256sum -c SHA256SUMS
557
  ```
558
 
559
- [SHA256SUMS](SHA256SUMS) covers all six data files, excluding this README and
560
  Git/service metadata. Full has its own manifest for its data and shared
561
  preparation files. The shared corpus contract independently pins expected
562
  published reconstruction payloads. A successful local checksum check establishes
 
36
  | `data/topic-provenance.jsonl.gz` | Frozen initial/final assignments and review status for all Full IDs. | 127,895 |
37
  | `data/noow.csv` | Whole-document text and ordered normalized VW features. | 1,118,455,706 |
38
  | `data/bow.csv` | The same documents with counted VW features. | 875,143,956 |
39
+ | `data/splits.json` | Optional fit/calibration/validation memberships by article ID. | 291,038 |
40
 
41
  [SHA256SUMS](SHA256SUMS) covers this repository's published data. Preparation code,
42
  environment locks and source/output pins are maintained once in the
 
95
 
96
  The original JSON records have no NLP preprocessing or model scoring. The
97
  optional preparation workflow below produces separate NLP CSV files without a
98
+ research train/test split; a fixed reference partition is supplied separately in
99
+ `data/splits.json`. The `corpus` split is a storage partition. Source text
100
  has not been shortened or rewritten for subject selection. No exact duplicate source text was
101
  removed. This collection is not a representative sample of Russian writing.
102
 
 
163
  JSON and CSV builders in one repository configuration did not load reliably.
164
  The published CSV files have been fully read with Hugging Face Datasets.
165
 
166
+ ### Optional reference splits
167
+
168
+ [data/splits.json](data/splits.json) maps each partition name to an ordered list
169
+ of article IDs. The lists are disjoint and together cover all 17,251 articles:
170
+
171
+ | Partition | Documents | Intended use |
172
+ | --- | ---: | --- |
173
+ | `fit` | 10,342 | Fit models and training-dependent vocabularies or statistics. |
174
+ | `calibration` | 3,434 | Tune parameters and make development decisions. |
175
+ | `validation` | 3,475 | Evaluate the selected procedure on held-out documents. |
176
+
177
+ The partition uses multilabel group stratification with approximate proportions
178
+ 60/20/20 and seeds 20260824 and 20260825 for the two successive splits.
179
+ Near-duplicate articles, identified by Jaccard similarity ≥0.9 between sets of
180
+ five-word shingles, stay in the same partition. The procedure found one such
181
+ pair; both articles are in `fit`. No articles were removed.
182
+
183
+ The same IDs occur in `articles`, `noow.csv`, `bow.csv` and `labels.json`.
184
+ The Hugging Face split `corpus` still contains the whole collection; use the
185
+ stored memberships when you want this reference partition. After loading
186
+ `articles` above, run from the root of a downloaded repository:
187
+
188
+ ```python
189
+ import json
190
+ from pathlib import Path
191
+ from datasets import DatasetDict
192
+
193
+ splits = json.loads(Path("data/splits.json").read_text(encoding="utf-8"))
194
+ index = {doc_id: i for i, doc_id in enumerate(articles["id"])}
195
+ partitioned = DatasetDict({
196
+ name: articles.select([index[doc_id] for doc_id in ids])
197
+ for name, ids in splits.items()
198
+ })
199
+ print({name: len(part) for name, part in partitioned.items()})
200
+ # {'calibration': 3434, 'fit': 10342, 'validation': 3475}
201
+ ```
202
+
203
+ For either CSV representation, replace `articles` with the loaded `noow` or
204
+ `bow` dataset. Selection preserves the order recorded in `splits.json`.
205
+ The shared corpus/NLP preparation workflow does not generate this supplementary
206
+ partition. Its published ngrams use all article bodies, so applying the
207
+ memberships does not make those features training-only; see the NLP preparation
208
+ section below. Text-only modeling can use `@word` and fit any further vocabulary
209
+ or statistics on `fit` alone.
210
+
211
  To export one VW document per line without loading the CSV into memory, run this
212
  from the downloaded repository. Choose an output path outside the repository:
213
 
 
592
  status does not guarantee accuracy, neutrality, completeness or suitability for
593
  any downstream application. Articles can contain sensitive, biased, outdated or
594
  offensive material. The partial subject labels described here do not establish a complete reference
595
+ annotation. The optional reference splits above provide one document partition;
596
+ further downstream preprocessing, deduplication and any alternative split policy
597
+ must be specified for each study.
598
 
599
  ## File verification
600
 
 
604
  sha256sum -c SHA256SUMS
605
  ```
606
 
607
+ [SHA256SUMS](SHA256SUMS) covers all seven data files, excluding this README and
608
  Git/service metadata. Full has its own manifest for its data and shared
609
  preparation files. The shared corpus contract independently pins expected
610
  published reconstruction payloads. A successful local checksum check establishes
SHA256SUMS CHANGED
@@ -4,3 +4,4 @@ e7ceacd69d76601df24bb42e6d0177f46142d0b8ac1bf6e8c22ad4d5a0b0ca70 data/labels.js
4
  2c71aa6b5a327ebe924f5f0160eaf6f923a86da1a3a7fe8c68aa67f8858f8b6b data/noow.csv
5
  c8cf602a924f18255e155cdcaa9357907461851e849113c72051c2b89484f22c data/topics.jsonl.gz
6
  f5749b942b8028f955863cea1afc44d06bc0b36eaf83dc9071e11913029b807f data/topic-provenance.jsonl.gz
 
 
4
  2c71aa6b5a327ebe924f5f0160eaf6f923a86da1a3a7fe8c68aa67f8858f8b6b data/noow.csv
5
  c8cf602a924f18255e155cdcaa9357907461851e849113c72051c2b89484f22c data/topics.jsonl.gz
6
  f5749b942b8028f955863cea1afc44d06bc0b36eaf83dc9071e11913029b807f data/topic-provenance.jsonl.gz
7
+ 798a38e397af640901e7f832694d69457d4d6d2982d435fe2d5756e2e5e4aa0b data/splits.json
data/splits.json ADDED
The diff for this file is too large to render. See raw diff