Battam commited on
Commit
573e0c4
·
verified ·
1 Parent(s): 442db50

portal: data page of repository commit a74634d6772e

Browse files

Files of catalog/portal/ (30), digest 8a056ec095013f44ea1e65855a410ed878e060f2783c4fbd73efb04a95e3057e.

Files changed (10) hide show
  1. README.md +11 -10
  2. app.js +3 -3
  3. first.json +1 -1
  4. index.html +1 -1
  5. llms.txt +2 -2
  6. locales/en.json +1 -1
  7. locales/zh.json +1 -1
  8. manual/manual.en.md +24 -25
  9. manual/manual.zh.md +24 -24
  10. portal.json +3 -3
README.md CHANGED
@@ -70,14 +70,15 @@ The index holds two layers over the same public web, at two depths and for two u
70
  lists them together (#1083).
71
  Task material comes first: material sets, each a batch of files picked from one source (a site, a repository or a
72
  dataset), for building tasks, grouped into units.
73
- A unit is a group of files that its upstream publishes as one thing, delivered whole; its key `unit_id` is defined
 
74
  once, in the index's `docs/sources.md` and dataset card, and the page uses that one word.
75
  Each material set belongs to one collection, a line of `admit_collections.tsv` (catalog column `collection`), grouped
76
  by task family.
77
  Corpora come second: a corpus (plural corpora) is one whole upstream that a collector keeps reading in bulk, such as
78
  Common Crawl's office documents, PyPI's release files, Mendeley Data or NVD, to search when no material set fits;
79
- its rows are pointers to files or API responses, and a corpus is counted in rows, never in units.
80
- A group of corpus rows becomes a material set only by passing admission (#1909).
81
  The names of the two layers, the sentence that says how they differ and the names of the collections come from
82
  `meta/vocabulary.json` (`layers`, `relation`, `collections`), written once in `catalog/domains.yaml`;
83
  the page shows them in its language, with the locale's `kind.*` names when a commit's vocabulary has none.
@@ -100,9 +101,9 @@ word for the source itself), a domain "domain" (in Chinese the word of `filter.d
100
  No number and no heading counts "sources" over both layers.
101
 
102
  Every number says which layer it counts: task material in collections, material sets and units;
103
- corpora in corpora and rows.
104
- A unit is one `unit_id` (a test case, one workbook, one package); files are counted apart.
105
- The page reads the columns `units` (distinct units; a corpus counts rows) and `files` (its rows) of
106
  `meta/catalog.parquet` as they are, and says a material set's counts in one sentence, its units and its files, each
107
  labelled, with the catalog's count of its publishers: the same numbers as its card and the domain pages of `docs/sources.md`.
108
  #2065: a material set whose catalog row has no count of its units says "units not counted yet", as its card does, and
@@ -116,10 +117,10 @@ One color per layer in the charts and the list: material sets in the slate blue
116
  every chart, in the kind mark of a row of the list (drawn only when the list holds both layers) and in the legends.
117
  Pick shows one layer at a time, by the switch "Material sets | Corpora" (material sets by default; #2422: a training
118
  stage takes the layer it counts, and a switch to the other layer leaves that stage out):
119
- every chart draws that layer only, in its measure (material sets in sets or units, corpora in rows), and the list
120
  holds that layer only, material sets grouped by collection.
121
  Corpora are grouped the same way when a collection lists some of them as holding its kind of material (`corpora` in
122
- `catalog/domains.yaml`, #1633), each still counted in rows.
123
 
124
  #2422: the pipeline's own numbers (material sets, units, collections and corpora as totals, the size pointed to, the
125
  share of sizes that match) are not on the page;
@@ -260,7 +261,7 @@ Maps from code to name, and nested `children`, are read too.
260
  | `subject`, `industry`, `occupation`, `business_process`, `resource_type`, `file_format` | the filters by facet: a code of the facet of the catalog column of that name (such as `subject=1.2`, `industry=62`, `resource_type=Software`), `multi` or `unclassified`; a code keeps the sources of that code and of every code under it in the facet's hierarchy |
261
  | `pick` | the picked sources, their ids joined by commas (#1286); while any is picked, "Get the data" takes exactly them |
262
  | `sample` | how many units "Get the data" takes from each source: `1`, `3`, `10`, `30` or `all` (#1524); #2629: without it, `all` when the command takes material sets and `3` when it takes corpora |
263
- | `metric`, `sort`, `dir`, `open` | what the charts of material sets count (`sets`, the default, or `units`; corpora are counted in rows), the sort of the list (default: fit), the open source |
264
  | `view` | the arrangement of the field: `strata` (the default), `domains` or `scale` |
265
  | `lng=<en or zh>` | open the page in English or in Simplified Chinese (and keep that choice) |
266
 
@@ -642,7 +643,7 @@ The data line pushes this folder to the Space when its sha256, or the commit of
642
  Space's `portal.json` records, after the push has passed its outbound checks.
643
  #2510: the push is one commit on top of the Space's main through the Hub's upload API (`HfApi.create_commit`), as the Hub refuses binary files pushed with plain git, and the faces of `fonts/` are binary.
644
  It fills the benchmark sentence into
645
- `llms.txt` (and the size sentences) and adds `first.json`: the index's numbers, per layer and never added together
646
  (task material: collections, material sets, units; corpora: corpora and rows), and the size figures of the whole index
647
  and each layer (`sizes`), all from `meta/size_figures.json` of the commit main of the index points to, read as
648
  `data.js` reads them (format `portal-first/5`);
 
70
  lists them together (#1083).
71
  Task material comes first: material sets, each a batch of files picked from one source (a site, a repository or a
72
  dataset), for building tasks, grouped into units.
73
+ A unit is one item that can be fetched on its own: a file, a record, a web page, or a group of files that its upstream
74
+ publishes as one thing, delivered whole; its key `unit_id` is defined
75
  once, in the index's `docs/sources.md` and dataset card, and the page uses that one word.
76
  Each material set belongs to one collection, a line of `admit_collections.tsv` (catalog column `collection`), grouped
77
  by task family.
78
  Corpora come second: a corpus (plural corpora) is one whole upstream that a collector keeps reading in bulk, such as
79
  Common Crawl's office documents, PyPI's release files, Mendeley Data or NVD, to search when no material set fits;
80
+ its rows are pointers to files or API responses, each row one unit, so a corpus's units are its files or records.
81
+ A group of corpus units becomes a material set only by passing admission (#1909).
82
  The names of the two layers, the sentence that says how they differ and the names of the collections come from
83
  `meta/vocabulary.json` (`layers`, `relation`, `collections`), written once in `catalog/domains.yaml`;
84
  the page shows them in its language, with the locale's `kind.*` names when a commit's vocabulary has none.
 
101
  No number and no heading counts "sources" over both layers.
102
 
103
  Every number says which layer it counts: task material in collections, material sets and units;
104
+ corpora in corpora and their units, one unit a row, which the page's labels call corpus rows.
105
+ A unit of a material set is one `unit_id` (a test case, one workbook, one package); files are counted apart.
106
+ The page reads the columns `units` (distinct units; a corpus's units are its rows, the same number as `files`) and `files` (its rows) of
107
  `meta/catalog.parquet` as they are, and says a material set's counts in one sentence, its units and its files, each
108
  labelled, with the catalog's count of its publishers: the same numbers as its card and the domain pages of `docs/sources.md`.
109
  #2065: a material set whose catalog row has no count of its units says "units not counted yet", as its card does, and
 
117
  every chart, in the kind mark of a row of the list (drawn only when the list holds both layers) and in the legends.
118
  Pick shows one layer at a time, by the switch "Material sets | Corpora" (material sets by default; #2422: a training
119
  stage takes the layer it counts, and a switch to the other layer leaves that stage out):
120
+ every chart draws that layer only, in its measure (material sets in sets or units, corpora in their units, one a row), and the list
121
  holds that layer only, material sets grouped by collection.
122
  Corpora are grouped the same way when a collection lists some of them as holding its kind of material (`corpora` in
123
+ `catalog/domains.yaml`, #1633), each still a corpus.
124
 
125
  #2422: the pipeline's own numbers (material sets, units, collections and corpora as totals, the size pointed to, the
126
  share of sizes that match) are not on the page;
 
261
  | `subject`, `industry`, `occupation`, `business_process`, `resource_type`, `file_format` | the filters by facet: a code of the facet of the catalog column of that name (such as `subject=1.2`, `industry=62`, `resource_type=Software`), `multi` or `unclassified`; a code keeps the sources of that code and of every code under it in the facet's hierarchy |
262
  | `pick` | the picked sources, their ids joined by commas (#1286); while any is picked, "Get the data" takes exactly them |
263
  | `sample` | how many units "Get the data" takes from each source: `1`, `3`, `10`, `30` or `all` (#1524); #2629: without it, `all` when the command takes material sets and `3` when it takes corpora |
264
+ | `metric`, `sort`, `dir`, `open` | what the charts of material sets count (`sets`, the default, or `units`; the charts of corpora count their units, one a row), the sort of the list (default: fit), the open source |
265
  | `view` | the arrangement of the field: `strata` (the default), `domains` or `scale` |
266
  | `lng=<en or zh>` | open the page in English or in Simplified Chinese (and keep that choice) |
267
 
 
643
  Space's `portal.json` records, after the push has passed its outbound checks.
644
  #2510: the push is one commit on top of the Space's main through the Hub's upload API (`HfApi.create_commit`), as the Hub refuses binary files pushed with plain git, and the faces of `fonts/` are binary.
645
  It fills the benchmark sentence into
646
+ `llms.txt` (and the size sentences) and adds `first.json`: the index's numbers, per layer
647
  (task material: collections, material sets, units; corpora: corpora and rows), and the size figures of the whole index
648
  and each layer (`sizes`), all from `meta/size_figures.json` of the commit main of the index points to, read as
649
  `data.js` reads them (format `portal-first/5`);
app.js CHANGED
@@ -7,8 +7,8 @@
7
  // the list of selected sources come from one crossfilter selection (linked.js). An index commit of one kind of source
8
  // (data.js oneKind: its catalog has no column kind, or its labels are labels by method) shows every source in one list,
9
  // counted in units and rows, and takes task material by label (--leaf, --method). On an older commit the two layers
10
- // stay apart everywhere and are never added together (#1083): material sets, grouped into collections and counted in
11
- // sets and units, in the main color; corpora, counted in rows, in gray. Pick then shows one layer at a time (F.kind,
12
  // material sets by default; a training stage takes the layer it counts).
13
  import {
14
  CORPUS, DATASET_URL, FACET_FORMAL, FACET_IDS, fileUrl, KINDS, LABEL_METHODS, loadBatchDates, loadIndex, MATERIAL_SET, num,
@@ -1454,7 +1454,7 @@ function detail(s) {
1454
  : s.publishers ? t('detail.countsFrom', { what: counted, publishers: plural('n.publisher', s.publishers) })
1455
  : t('detail.counts', { what: counted }));
1456
  dl.append(item('doc', t('detail.what'), text.length > 160 ? el('details', {}, el('summary', {}, firstSentence(text)), el('p', {}, text)) : text));
1457
- // 2 a material set's units and files, what each row of a corpus points to (#2065: a corpus is counted in rows); of one
1458
  // kind, a source's units and rows, and what each row points to where its registration says
1459
  const kindCount = (k) => {
1460
  const n = num(s.info.unit[k]);
 
7
  // the list of selected sources come from one crossfilter selection (linked.js). An index commit of one kind of source
8
  // (data.js oneKind: its catalog has no column kind, or its labels are labels by method) shows every source in one list,
9
  // counted in units and rows, and takes task material by label (--leaf, --method). On an older commit the two layers
10
+ // stay apart everywhere (#1083): material sets, grouped into collections and counted in sets and units, in the main
11
+ // color; corpora, counted in their units, one a row, in gray. Pick then shows one layer at a time (F.kind,
12
  // material sets by default; a training stage takes the layer it counts).
13
  import {
14
  CORPUS, DATASET_URL, FACET_FORMAL, FACET_IDS, fileUrl, KINDS, LABEL_METHODS, loadBatchDates, loadIndex, MATERIAL_SET, num,
 
1454
  : s.publishers ? t('detail.countsFrom', { what: counted, publishers: plural('n.publisher', s.publishers) })
1455
  : t('detail.counts', { what: counted }));
1456
  dl.append(item('doc', t('detail.what'), text.length > 160 ? el('details', {}, el('summary', {}, firstSentence(text)), el('p', {}, text)) : text));
1457
+ // 2 a material set's units and files, what each row of a corpus points to (#2065: a corpus's units are its rows); of one
1458
  // kind, a source's units and rows, and what each row points to where its registration says
1459
  const kindCount = (k) => {
1460
  const n = num(s.info.unit[k]);
first.json CHANGED
@@ -2,7 +2,7 @@
2
  "collections": 14,
3
  "date": "2026-11-22",
4
  "format": "portal-first/5",
5
- "index": "f323fc8f7f5b5106588c1f69279aa2acdd8db846",
6
  "raw_rows": 1275880615,
7
  "raw_rows_not_counted": 0,
8
  "raw_sources": 173,
 
2
  "collections": 14,
3
  "date": "2026-11-22",
4
  "format": "portal-first/5",
5
+ "index": "95078c15282fcfb43d5336a9658deafb1d524b37",
6
  "raw_rows": 1275880615,
7
  "raw_rows_not_counted": 0,
8
  "raw_sources": 173,
index.html CHANGED
@@ -252,7 +252,7 @@
252
  commit's meta/coverage.json) -->
253
  <div class="card fewest-card" id="kinds" hidden>
254
  <h3 data-i18n="kinds.title">Units by kind of source and by class</h3>
255
- <p class="small" data-i18n="kinds.text">Every source of this commit, whatever its status, by its kind of source (catalog/source_kinds.tsv) and by the class of its form (catalog/stages.yaml): its material sets with their units, and its corpora with their units, a corpus counting its rows. The units of the two layers are never added together.</p>
256
  <div id="kinds-body"></div>
257
  </div>
258
  </section>
 
252
  commit's meta/coverage.json) -->
253
  <div class="card fewest-card" id="kinds" hidden>
254
  <h3 data-i18n="kinds.title">Units by kind of source and by class</h3>
255
+ <p class="small" data-i18n="kinds.text">Every source of this commit, whatever its status, by its kind of source (catalog/source_kinds.tsv) and by the class of its form (catalog/stages.yaml): its material sets with their units, and its corpora with their units, a corpus's units being its files or records.</p>
256
  <div id="kinds-body"></div>
257
  </div>
258
  </section>
llms.txt CHANGED
@@ -1,7 +1,7 @@
1
  # Training Data Foundation: for agents
2
 
3
- - The index holds sources of one kind over the same public web, each reading one upstream (one dataset or one data catalog). Every source is of one kind, and a unit is task material for a leaf through its labels, each of one method (agent or classifier); a source whose units an agent chose for a leaf (a material set) is counted in units, and every other source (a corpus, one whole upstream read in bulk) in rows, so units and rows are never added together. A unit is task material for a leaf of the domain grid through its labels (`meta/labels.json` and `labels/<source>/`), each with its method: `agent`, a unit an agent judged one by one usable for the leaf (every unit of a source an agent chose for a leaf, a material set, which `collection` names the collection of, one per task family; and the units of other sources the agents judged), and `classifier`, a classifier's score for the leaf, counted at or above the leaf's threshold. A unit is a group of files that its upstream publishes as one thing, delivered whole; its key `unit_id` is the `unit_group` its rows share (`extra.source_meta.unit_group`), defined once, in the glossary of the data page's manual, https://battam-training-data-foundation.static.hf.space/index.html?lng=en#manual/glossary . A unit is material, not a task: one unit may give several tasks, and one task may use several units. A corpus (plural corpora) is a source that is one whole upstream a collector keeps reading, such as Common Crawl's office documents, PyPI's release files, Mendeley Data or NVD: its rows are pointers to files or API responses, and it is counted in rows; `tools/fetch.py` takes a corpus row by row, each under its own key as its `unit_id`.
4
- - Pick sources from `meta/catalog.parquet` (one row per source, about 50 KB; do not download `meta/` whole), or units by label with `--leaf`. Columns: `source`; `collection`, the code of a material set's collection (every code with its name is in `meta/vocabulary.json`), or of the collection that lists a corpus as holding its kind of material (`corpora` in `meta/vocabulary.json`; empty for any other corpus); `domain`, a list of codes D1 to D10 or leaves such as D3.5, or `multi`, `unclassified`; `form`, such as `test-suites` or `spreadsheets`; `upstream_kind`, `upstream_agent` and `upstream_entry`, the source's upstream (`dataset` or `catalog`, its agent, and the address its reading starts from; a source that still reads several upstreams gives each, joined by ` | `); `units` (a material set's distinct `unit_id` values: a test case, one workbook, one package; a corpus is counted in rows, and gives the same number as `files`) and `files` (its rows: for a material set, the files of its units and its README.md and LICENSE); `publishers` (a material set's distinct publisher names over all its rows; empty when its rows name none); `language` (the language codes of the rows' labels, what the default profile filters on; `not recorded` when a row has none); `contamination.level` (by the rule of the default profile of `tools/fetch.py` over `meta/bench_overlap.parquet` and `meta/bench_checked.parquet`: `none` when every data file is compared and kept and no row is removed, the hit class with the most removed rows when some are removed, `not scanned` otherwise); `license.ship`; `pii.level`; `distinct_bytes` (deduplicated size) and `bytes` (recorded size, the sum over rows); `size_check` (the rows read in `meta/sizes.parquet`, `compared` those that compared a size or hash, and how many have each status, `match` when the measured size agrees; the check's share is `match` over `compared`), `unsized_rows` (rows without a recorded size) and `unsized_estimate` (their estimated size, with its 95% range); `fetch_check` (whether the upstream still serves the files: `rows`, the sampled rows read in `meta/sizes.parquet`; `fetched`, those that fetched and matched their recorded size and hash; `read_at`, the day read; `level`, `all`, `some`, `none`, `needs auth` (no row read fetched, and the source's rows need the paying or signed-in reader its `needs_auth` names, which the check, reading anonymously, does not have) or `not read`); the same figures for the whole index, each layer and each collection are in `meta/size_figures.json`. Who published each file of a material set, and under which license and license URL, is in `meta/attribution.parquet` (one row per source, publisher, license and license URL, with its number of files). The vocabulary is `meta/vocabulary.json`: every domain code with its name (and `zh`, its Chinese name), what it covers and its parent, every form with its Chinese name and what it means, every category of `meta/not_included.parquet` with its requirement in English and in Chinese, the two layers with their relation, and every collection with its name, what it holds, its campaigns (take a collection with `--tag campaign:<name>` for each of its campaigns) and the corpora it lists, if any (take one with `--source`), and the criteria the default profile of `tools/fetch.py` applies, in its order (`profile`, each with the option that keeps what it removes).
5
  - Size of this release: Whole index: Recorded size 6.32 PB; deduplicated size 5.84 PB; size check: 99.3% match (35,889 of the 38,608 rows read compared); not compared: address unreachable 145, file gone 167, login needed 526, no size from the server 1,876, other error 5; estimated size of 279,904,705 of the 298,463,449 rows without a recorded size: 514 TB (an estimate; 95% range 252 TB to 1.05 PB, the sum of its sources' ranges, wider than a joint interval; from 4,334 rows read), the other 18,558,744 with too few rows read for an estimate. Task material: Recorded size 36.0 GB; deduplicated size 35.9 GB; size check: 99.2% match (11,918 of the 11,936 rows read compared); not compared: address unreachable 2, file gone 3, login needed 10, other error 3; 9 rows without a recorded size, too few of them read for an estimate. Corpora: Recorded size 6.32 PB; deduplicated size 5.84 PB; size check: 99.4% match (23,971 of the 26,672 rows read compared); not compared: address unreachable 143, file gone 164, login needed 516, no size from the server 1,876, other error 2; estimated size of 279,904,705 of the 298,463,440 rows without a recorded size: 514 TB (an estimate; 95% range 252 TB to 1.05 PB, the sum of its sources' ranges, wider than a joint interval; from 4,334 rows read), the other 18,558,735 with too few rows read for an estimate. Distinct content is the sum of `size_bytes` over the rows minus the sizes of the rows that repeat another row's content (the same sha256, else sha1, else md5 and size, within the same hash scope; one copy of each content is kept, in the first source by registry order), counted after each release over the data files it published, per source in the catalog column `distinct_bytes`; archive members whose archive the same source also lists whole have other hashes, so they are not subtracted. `tools/fetch.py` removes duplicates over your own selection when it reads it. The deduplicated sizes here were counted over the data files of `release-2026-11-21.3`: a release tag, or `<tag>.p<n>`, main as the publish that brought its rows to version n after that tag left it. The recorded size is the sum of `size_bytes` over the rows that have one (catalog column `bytes`). The check reads a sample of rows of every data file (`meta/sizes.parquet`), each day the files with rows of a source not read there yet and those of the sources read longest ago, about a seventh of all the readings, so each is read again within a week: 20 of its rows with a recorded size of each source whose rows it holds, and of its rows without one its share of its source's sample, sized for their mean size within 25% at 95% confidence by the spread of the sizes read so far (at most 400 rows per source per round, 20 for a source with none read yet); its share is the rows that match their recorded size out of the rows it compared (status `match`, `size_mismatch` or `hash_mismatch`), and the rows it could not compare, which never reached their file, are counted beside it by status (`unreachable`, `gone`, `needs_auth`, `no_length`, `error`; catalog column `size_check`). The estimate for a source's rows without a recorded size (catalog columns `unsized_rows` and `unsized_estimate`) is their number times the mean measured size of such rows read, with a 95% BCa bootstrap range (`scipy.stats.bootstrap`, its default resample count); a source with fewer than 10 such rows read has none. Above one source, the estimate is the sum of its sources' estimates and its range the sum of their ranges, which is wider than a joint interval. The figures of every level are in `meta/size_figures.json`.
6
  - Fetch with one command: `uv run https://huggingface.co/datasets/Battam/training-data-foundation/resolve/main/tools/fetch.py --domain D3 --form spreadsheets --sample 3 --out ./data` takes three units of each of those sources; a corpus's whole can be petabytes, so take one with `--sample N` (the data page takes 3 units of each by default) or `--limit N`. Without uv: `pip install duckdb`, download `tools/fetch.py` and run it with `python`. Select with `--source`, `--leaf <code>` (the units labelled for that leaf), `--domain`, `--form`, `--tag`, `--ext`, or `--selection <file>` (a selection file the data page saves: the ids of its sources and its commit); `--sample N` takes at most N units per source, `--limit N` takes N units over the whole selection, `--unit <unit_id>` takes the unit of that `unit_id` whole (with `--source`); `--leaf <code>` takes the units labelled for that leaf (such as `D2.3`; a top-level code such as `D2` also takes those of every leaf under it), of every source: an `agent` label always counts, a `classifier` label at or above its leaf's threshold in `meta/labels.json`, `--method` keeps the labels of one method or more, and the labels are read from `labels/<source>/` at the same commit (`--min-score X` sets another bar; `--sample`, `--seed` and `--limit` work over them as over any units); before its first download the run prints the units, files and total size it selected.
7
  - It pins the commit it reads and prints it; pass `--revision <commit>` to get the same files later. A name that does not exist stops with exit code 2 and the closest names.
 
1
  # Training Data Foundation: for agents
2
 
3
+ - The index holds sources of one kind over the same public web, each reading one upstream (one dataset or one data catalog). Every source is of one kind and is counted in units. A unit is task material for a leaf through its labels, each of one method (agent or classifier); a source whose units an agent chose for a leaf is a material set, and every other source is a corpus, one whole upstream read in bulk. A unit is task material for a leaf of the domain grid through its labels (`meta/labels.json` and `labels/<source>/`), each with its method: `agent`, a unit an agent judged one by one usable for the leaf (every unit of a source an agent chose for a leaf, a material set, which `collection` names the collection of, one per task family; and the units of other sources the agents judged), and `classifier`, a classifier's score for the leaf, counted at or above the leaf's threshold. A unit is one item that can be fetched on its own: a file, a record, a web page, or a group of files that its upstream publishes as one thing (such as a test case with its input and expected output), delivered whole; the key `unit_id` of such a group is the `unit_group` its files share (`extra.source_meta.unit_group`), defined once, in the glossary of the data page's manual, https://battam-training-data-foundation.static.hf.space/index.html?lng=en#manual/glossary . A unit is material, not a task: one unit may give several tasks, and one task may use several units. A corpus (plural corpora) is a source that is one whole upstream a collector keeps reading, such as Common Crawl's office documents, PyPI's release files, Mendeley Data or NVD: each of its units is a pointer to one file or API response, which `tools/fetch.py` takes under its own key as its `unit_id`.
4
+ - Pick sources from `meta/catalog.parquet` (one row per source, about 50 KB; do not download `meta/` whole), or units by label with `--leaf`. Columns: `source`; `collection`, the code of a material set's collection (every code with its name is in `meta/vocabulary.json`), or of the collection that lists a corpus as holding its kind of material (`corpora` in `meta/vocabulary.json`; empty for any other corpus); `domain`, a list of codes D1 to D10 or leaves such as D3.5, or `multi`, `unclassified`; `form`, such as `test-suites` or `spreadsheets`; `upstream_kind`, `upstream_agent` and `upstream_entry`, the source's upstream (`dataset` or `catalog`, its agent, and the address its reading starts from; a source that still reads several upstreams gives each, joined by ` | `); `units` (a material set's distinct `unit_id` values: a test case, one workbook, one package; a corpus's units are its files or records, the same number as `files`) and `files` (for a material set, the files of its units and its README.md and LICENSE); `publishers` (a material set's distinct publisher names over all its rows; empty when its rows name none); `language` (the language codes of the rows' labels, what the default profile filters on; `not recorded` when a row has none); `contamination.level` (by the rule of the default profile of `tools/fetch.py` over `meta/bench_overlap.parquet` and `meta/bench_checked.parquet`: `none` when every data file is compared and kept and no row is removed, the hit class with the most removed rows when some are removed, `not scanned` otherwise); `license.ship`; `pii.level`; `distinct_bytes` (deduplicated size) and `bytes` (recorded size, the sum over rows); `size_check` (the rows read in `meta/sizes.parquet`, `compared` those that compared a size or hash, and how many have each status, `match` when the measured size agrees; the check's share is `match` over `compared`), `unsized_rows` (rows without a recorded size) and `unsized_estimate` (their estimated size, with its 95% range); `fetch_check` (whether the upstream still serves the files: `rows`, the sampled rows read in `meta/sizes.parquet`; `fetched`, those that fetched and matched their recorded size and hash; `read_at`, the day read; `level`, `all`, `some`, `none`, `needs auth` (no row read fetched, and the source's rows need the paying or signed-in reader its `needs_auth` names, which the check, reading anonymously, does not have) or `not read`); the same figures for the whole index, each layer and each collection are in `meta/size_figures.json`. Who published each file of a material set, and under which license and license URL, is in `meta/attribution.parquet` (one row per source, publisher, license and license URL, with its number of files). The vocabulary is `meta/vocabulary.json`: every domain code with its name (and `zh`, its Chinese name), what it covers and its parent, every form with its Chinese name and what it means, every category of `meta/not_included.parquet` with its requirement in English and in Chinese, the two layers with their relation, and every collection with its name, what it holds, its campaigns (take a collection with `--tag campaign:<name>` for each of its campaigns) and the corpora it lists, if any (take one with `--source`), and the criteria the default profile of `tools/fetch.py` applies, in its order (`profile`, each with the option that keeps what it removes).
5
  - Size of this release: Whole index: Recorded size 6.32 PB; deduplicated size 5.84 PB; size check: 99.3% match (35,889 of the 38,608 rows read compared); not compared: address unreachable 145, file gone 167, login needed 526, no size from the server 1,876, other error 5; estimated size of 279,904,705 of the 298,463,449 rows without a recorded size: 514 TB (an estimate; 95% range 252 TB to 1.05 PB, the sum of its sources' ranges, wider than a joint interval; from 4,334 rows read), the other 18,558,744 with too few rows read for an estimate. Task material: Recorded size 36.0 GB; deduplicated size 35.9 GB; size check: 99.2% match (11,918 of the 11,936 rows read compared); not compared: address unreachable 2, file gone 3, login needed 10, other error 3; 9 rows without a recorded size, too few of them read for an estimate. Corpora: Recorded size 6.32 PB; deduplicated size 5.84 PB; size check: 99.4% match (23,971 of the 26,672 rows read compared); not compared: address unreachable 143, file gone 164, login needed 516, no size from the server 1,876, other error 2; estimated size of 279,904,705 of the 298,463,440 rows without a recorded size: 514 TB (an estimate; 95% range 252 TB to 1.05 PB, the sum of its sources' ranges, wider than a joint interval; from 4,334 rows read), the other 18,558,735 with too few rows read for an estimate. Distinct content is the sum of `size_bytes` over the rows minus the sizes of the rows that repeat another row's content (the same sha256, else sha1, else md5 and size, within the same hash scope; one copy of each content is kept, in the first source by registry order), counted after each release over the data files it published, per source in the catalog column `distinct_bytes`; archive members whose archive the same source also lists whole have other hashes, so they are not subtracted. `tools/fetch.py` removes duplicates over your own selection when it reads it. The deduplicated sizes here were counted over the data files of `release-2026-11-21.3`: a release tag, or `<tag>.p<n>`, main as the publish that brought its rows to version n after that tag left it. The recorded size is the sum of `size_bytes` over the rows that have one (catalog column `bytes`). The check reads a sample of rows of every data file (`meta/sizes.parquet`), each day the files with rows of a source not read there yet and those of the sources read longest ago, about a seventh of all the readings, so each is read again within a week: 20 of its rows with a recorded size of each source whose rows it holds, and of its rows without one its share of its source's sample, sized for their mean size within 25% at 95% confidence by the spread of the sizes read so far (at most 400 rows per source per round, 20 for a source with none read yet); its share is the rows that match their recorded size out of the rows it compared (status `match`, `size_mismatch` or `hash_mismatch`), and the rows it could not compare, which never reached their file, are counted beside it by status (`unreachable`, `gone`, `needs_auth`, `no_length`, `error`; catalog column `size_check`). The estimate for a source's rows without a recorded size (catalog columns `unsized_rows` and `unsized_estimate`) is their number times the mean measured size of such rows read, with a 95% BCa bootstrap range (`scipy.stats.bootstrap`, its default resample count); a source with fewer than 10 such rows read has none. Above one source, the estimate is the sum of its sources' estimates and its range the sum of their ranges, which is wider than a joint interval. The figures of every level are in `meta/size_figures.json`.
6
  - Fetch with one command: `uv run https://huggingface.co/datasets/Battam/training-data-foundation/resolve/main/tools/fetch.py --domain D3 --form spreadsheets --sample 3 --out ./data` takes three units of each of those sources; a corpus's whole can be petabytes, so take one with `--sample N` (the data page takes 3 units of each by default) or `--limit N`. Without uv: `pip install duckdb`, download `tools/fetch.py` and run it with `python`. Select with `--source`, `--leaf <code>` (the units labelled for that leaf), `--domain`, `--form`, `--tag`, `--ext`, or `--selection <file>` (a selection file the data page saves: the ids of its sources and its commit); `--sample N` takes at most N units per source, `--limit N` takes N units over the whole selection, `--unit <unit_id>` takes the unit of that `unit_id` whole (with `--source`); `--leaf <code>` takes the units labelled for that leaf (such as `D2.3`; a top-level code such as `D2` also takes those of every leaf under it), of every source: an `agent` label always counts, a `classifier` label at or above its leaf's threshold in `meta/labels.json`, `--method` keeps the labels of one method or more, and the labels are read from `labels/<source>/` at the same commit (`--min-score X` sets another bar; `--sample`, `--seed` and `--limit` work over them as over any units); before its first download the run prints the units, files and total size it selected.
7
  - It pins the commit it reads and prints it; pass `--revision <commit>` to get the same files later. A name that does not exist stops with exit code 2 and the closest names.
locales/en.json CHANGED
@@ -221,7 +221,7 @@
221
  "leaves.methodAll": "Every method",
222
  "leaves.textClassifier": "Every leaf of the domain grid with its units by method: agent, the units of the material sets whose domain holds the leaf, each chosen by an agent, and classifier, the corpus units scored by a classifier at or above the leaf's threshold, then the classifier's units by class. Each row's command takes the leaf's classifier units straight from the corpora (--kind corpus --leaf).",
223
  "kinds.title": "Units by kind of source and by class",
224
- "kinds.text": "Every source of this commit, whatever its status, by its kind of source (catalog/source_kinds.tsv) and by the class of its form (catalog/stages.yaml): its material sets with their units, and its corpora with their units, a corpus counting its rows. The units of the two layers are never added together.",
225
  "kinds.none": "This commit's projection gives no counts by kind of source yet.",
226
  "th.kind": "Kind of source",
227
  "th.class": "Class",
 
221
  "leaves.methodAll": "Every method",
222
  "leaves.textClassifier": "Every leaf of the domain grid with its units by method: agent, the units of the material sets whose domain holds the leaf, each chosen by an agent, and classifier, the corpus units scored by a classifier at or above the leaf's threshold, then the classifier's units by class. Each row's command takes the leaf's classifier units straight from the corpora (--kind corpus --leaf).",
223
  "kinds.title": "Units by kind of source and by class",
224
+ "kinds.text": "Every source of this commit, whatever its status, by its kind of source (catalog/source_kinds.tsv) and by the class of its form (catalog/stages.yaml): its material sets with their units, and its corpora with their units, a corpus's units being its files or records.",
225
  "kinds.none": "This commit's projection gives no counts by kind of source yet.",
226
  "th.kind": "Kind of source",
227
  "th.class": "Class",
locales/zh.json CHANGED
@@ -198,7 +198,7 @@
198
  "leaves.methodAll": "所有方法",
199
  "leaves.textClassifier": "领域网格中的每个叶子按方法分的单元:Agent 逐个判过的,即领域含这个叶子的材料集的单元;分类器打分的,即对这个叶子的分数不低于其阈值的语料库单元;再按类别分分类器打分的单元。每一行的命令直接从语料库取这个叶子分类器打分的单元(--kind corpus --leaf)。",
200
  "kinds.title": "\u6309\u6765\u6e90\u7c7b\u578b\u548c\u7c7b\u522b\u5206\u7684\u5355\u5143",
201
- "kinds.text": "\u8fd9\u4e2a\u63d0\u4ea4\u7684\u6bcf\u4e2a\u6765\u6e90\uff0c\u4e0d\u8bba\u72b6\u6001\uff0c\u6309\u6765\u6e90\u7c7b\u578b\uff08catalog/source_kinds.tsv\uff09\u548c\u5176\u5f62\u6001\u7684\u7c7b\u522b\uff08catalog/stages.yaml\uff09\u5206\uff1a\u6750\u6599\u96c6\u53ca\u5176\u5355\u5143\uff0c\u8bed\u6599\u5e93\u53ca\u5176\u5355\u5143\uff08\u8bed\u6599\u5e93\u6309\u884c\u8ba1\uff09\u3002\u4e24\u5c42\u7684\u5355\u5143\u4ece\u4e0d\u76f8\u52a0\u3002",
202
  "kinds.none": "\u8fd9\u4e2a\u63d0\u4ea4\u7684\u6295\u5f71\u8fd8\u6ca1\u6709\u6309\u6765\u6e90\u7c7b\u578b\u7684\u8ba1\u6570\u3002",
203
  "th.kind": "\u6765\u6e90\u7c7b\u578b",
204
  "th.class": "\u7c7b\u522b",
 
198
  "leaves.methodAll": "所有方法",
199
  "leaves.textClassifier": "领域网格中的每个叶子按方法分的单元:Agent 逐个判过的,即领域含这个叶子的材料集的单元;分类器打分的,即对这个叶子的分数不低于其阈值的语料库单元;再按类别分分类器打分的单元。每一行的命令直接从语料库取这个叶子分类器打分的单元(--kind corpus --leaf)。",
200
  "kinds.title": "\u6309\u6765\u6e90\u7c7b\u578b\u548c\u7c7b\u522b\u5206\u7684\u5355\u5143",
201
+ "kinds.text": "\u8fd9\u4e2a\u63d0\u4ea4\u7684\u6bcf\u4e2a\u6765\u6e90\uff0c\u4e0d\u8bba\u72b6\u6001\uff0c\u6309\u6765\u6e90\u7c7b\u578b\uff08catalog/source_kinds.tsv\uff09\u548c\u5176\u5f62\u6001\u7684\u7c7b\u522b\uff08catalog/stages.yaml\uff09\u5206\uff1a\u6750\u6599\u96c6\u53ca\u5176\u5355\u5143\uff0c\u8bed\u6599\u5e93\u53ca\u5176\u5355\u5143\uff08\u8bed\u6599\u5e93\u7684\u5355\u5143\u5c31\u662f\u5b83\u7684\u6587\u4ef6\u6216\u8bb0\u5f55\uff09\u3002",
202
  "kinds.none": "\u8fd9\u4e2a\u63d0\u4ea4\u7684\u6295\u5f71\u8fd8\u6ca1\u6709\u6309\u6765\u6e90\u7c7b\u578b\u7684\u8ba1\u6570\u3002",
203
  "th.kind": "\u6765\u6e90\u7c7b\u578b",
204
  "th.class": "\u7c7b\u522b",
manual/manual.en.md CHANGED
@@ -24,7 +24,7 @@ commands are pinned to `release-2026-11-21.3`.
24
 
25
  ```sh
26
  uv run https://huggingface.co/datasets/Battam/training-data-foundation/resolve/release-2026-11-21.3/tools/fetch.py \
27
- --selection training-data-foundation-selection-f323fc8.json \
28
  --revision release-2026-11-21.3 \
29
  --out ./data
30
  ```
@@ -56,7 +56,7 @@ commands are pinned to `release-2026-11-21.3`.
56
 
57
  ```sh
58
  uv run https://huggingface.co/datasets/Battam/training-data-foundation/resolve/release-2026-11-21.3/tools/fetch.py \
59
- --selection training-data-foundation-selection-f323fc8.json \
60
  --revision release-2026-11-21.3 \
61
  --training-only \
62
  --no-personal-data \
@@ -339,7 +339,7 @@ the dataset https://huggingface.co/datasets/Battam/training-data-foundation .
339
  | Watch the index in use, in the page's language, with subtitles | [Usage video on the data page](https://huggingface.co/spaces/Battam/training-data-foundation#usage-video) |
340
  | Check every number of the dataset card and of the tables here | [`meta/stage_figures.json`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-21.3/meta/stage_figures.json) and [`meta/size_figures.json`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-21.3/meta/size_figures.json) |
341
 
342
- Each row of the data files under `data/` points to one file or record (Row, in the [glossary](#manual/glossary));
343
  the catalog's column `data_files` names the files of each source, and one material set or corpus is read from exactly those files, as in the queries of the dataset card and with `tools/fetch.py`.
344
  The Dataset Viewer has a second subset, `preview`, the first 10 rows of each.
345
  The fields of a row used most:
@@ -522,17 +522,16 @@ to cite it:
522
  <details id="manual/glossary">
523
  <summary>Glossary</summary>
524
 
525
- - **Row:** one pointer, a row of the data files under `data/`: where to download one file or record, its size, its hashes and its license.
526
- Corpora are counted in rows.
527
- - **Unit:** a group of files that its upstream publishes as one thing (a test case, one workbook, one package), delivered whole.
528
- Its key `unit_id` is the `unit_group` its rows share in the row column `extra` (`extra.source_meta.unit_group`), unique within its material set.
529
- Material sets are counted in units.
530
  A unit is material, not a task: one unit may give several tasks, and one task may use several units.
531
  - **Material set:** the units admitted from one source, which reads one upstream, for building tasks, with the README.md and LICENSE the index writes for it, which belong to no unit.
532
  It is counted in units;
533
  its files are the files of its units and those two.
534
  - **Corpus** (plural corpora): one whole upstream that a collector keeps reading in bulk, such as a package registry, a bug tracker, a mailing list or a web archive.
535
- It is counted in rows.
536
  - **Upstream:** where a source's files come from, in the terms of W3C DCAT 3: exactly one dataset, "a collection of data, published or curated by a single agent", such as one repository, one deposit or one bucket of one publisher, or one data catalog, a "curated collection of metadata about resources" kept by a single agent, whose entries others may publish and host anywhere, such as a package registry, a government data portal or a DOI registry.
537
  It has one agent, the dataset's or catalog's `dcterms:publisher` ("the entity responsible for making the resource available"), and one entry address, where the reading starts.
538
  One source reads one upstream;
@@ -554,14 +553,14 @@ to cite it:
554
  rows of any license and rows marked as carrying personal data come unless `--training-only` or `--no-personal-data` leaves them out ([docs/for-agents.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-21.3/docs/for-agents.md)).
555
 
556
  Every row carries a `unit_id`: in a material set, the key of its unit;
557
- in a corpus, the row's own key (its `uri`, then `@<range_offset>` for a byte range, then `!/<member_path>` for an archive member), and `tools/fetch.py` puts the file of a corpus row in a folder named after it.
558
 
559
  </details>
560
 
561
  <details id="manual/numbers">
562
  <summary>Where this manual's numbers come from</summary>
563
 
564
- The numbers and command outputs of this manual were filled in at deploy time, from the index commit `f323fc8f7f5b5106588c1f69279aa2acdd8db846` (release tag `release-2026-11-21.3`).
565
  This release holds 2,223 material sets with 5,582 units in 14 collections and 173 corpora with 1,275,880,615 rows, which point to 5.84 PB of deduplicated content, and of the 35,889 rows whose size was compared with their file, 99.3% matched.
566
 
567
  </details>
@@ -691,7 +690,7 @@ or add `&open=zenodo-workbooks-cc-by` to the address.
691
  <h4 id="manual/workbooks-5">5. Go to "Get the data" and keep the selection</h4>
692
 
693
  **Do**: click "Get the data" at the top;
694
- under "Keep this selection" click "Download the selection list (JSON)" and put `training-data-foundation-selection-f323fc8.json` in your fetch folder.
695
 
696
  **See**: the heading "Take every unit of each of 52 material sets".
697
  The list records release, filters and sources:
@@ -724,7 +723,7 @@ for 200 in all, use `--limit`.
724
 
725
  ```sh
726
  uv run https://huggingface.co/datasets/Battam/training-data-foundation/resolve/release-2026-11-21.3/tools/fetch.py \
727
- --selection training-data-foundation-selection-f323fc8.json \
728
  --revision release-2026-11-21.3 \
729
  --ext xlsx \
730
  --ext xlsm \
@@ -753,8 +752,8 @@ ok austender-ict-procurement-statistics workbooks/2016-17-austender-ict-contract
753
  ...
754
  305 files fetched and checked (109MB) into take; details in take/_meta/fetch_run.json
755
  files of units: 1 failed, 219 ok; files of the sources themselves: 86 ok
756
- run_id 20261122T113932.318646Z: 1 failed, 305 ok (lines in take/_meta/fetch_manifest.jsonl)
757
- its lines that are not ok, in DuckDB: SELECT json FROM read_json_objects('take/_meta/fetch_manifest.jsonl') WHERE json_extract_string(json, 'run_id') = '20261122T113932.318646Z' AND json_extract_string(json, 'status') NOT IN ('ok', 'selected')
758
  ```
759
 
760
  Before the first download, `removed by` gives the units the default profile removed and the option that keeps them, counted in the data files read as far as `--limit` needed;
@@ -770,8 +769,8 @@ failed western-australia-government-workbooks workbooks/wa-gross-regional-produc
770
  incomplete: 1 unit miss a file (the files fetched are kept; _meta/fetch_manifest.jsonl says why): ...
771
  5 files fetched and checked (1.35MB) into probe; details in probe/_meta/fetch_run.json
772
  files of units: 1 failed, 1 ok; files of the sources themselves: 4 ok
773
- run_id 20261122T114211.074901Z: 1 failed, 5 ok (lines in probe/_meta/fetch_manifest.jsonl)
774
- its lines that are not ok, in DuckDB: SELECT json FROM read_json_objects('probe/_meta/fetch_manifest.jsonl') WHERE json_extract_string(json, 'run_id') = '20261122T114211.074901Z' AND json_extract_string(json, 'status') NOT IN ('ok', 'selected')
775
  ```
776
 
777
  **Get**: every `ok` file matched its recorded size and hash.
@@ -843,7 +842,7 @@ a workbook stores the cached results of its formulas, so a task that asks for co
843
  **See** (truncated):
844
 
845
  ```text
846
- Dataset commit f323fc8f7f5b5106588c1f69279aa2acdd8db846: https://huggingface.co/datasets/Battam/training-data-foundation/tree/f323fc8f7f5b5106588c1f69279aa2acdd8db846
847
  ...
848
  - Source: `austender-ict-procurement-statistics`
849
  - License: CC-BY-3.0-AU
@@ -915,7 +914,7 @@ ok dosfstools-fsck-cases README.md: 3.32kB
915
  ok exfatprogs-fsck-cases cases/bad_bitmap/exfat.img: 5.24MB
916
  59 files fetched and checked (110MB) into data; details in data/_meta/fetch_run.json
917
  files of units: 52 ok; files of the sources themselves: 7 ok
918
- run_id 20261122T114217.844254Z: 59 ok (lines in data/_meta/fetch_manifest.jsonl)
919
  ```
920
 
921
  An exFAT image is `exfat.img.tar.xz` upstream;
@@ -1067,8 +1066,8 @@ training and redistribution are recorded apart, the two that matter most for tra
1067
 
1068
  A material set is split into units, ready to build tasks;
1069
  a corpus is all the files of one upstream, large, for you to pick from.
1070
- The two differ in depth and use, so they are listed apart and their counts are never added (units and rows are not the same thing);
1071
- only sizes add up.
1072
  Look in the material sets first, then the corpora.
1073
 
1074
  </details>
@@ -1097,16 +1096,16 @@ A checked manifest shows that you deliver the file the index describes, and `sha
1097
  <details id="manual/admission">
1098
  <summary>From corpora to material sets</summary>
1099
 
1100
- Every source is of one kind, and a unit is task material for a leaf through its labels, each of one method (agent or classifier); a source whose units an agent chose for a leaf (a material set) is counted in units, and every other source (a corpus, one whole upstream read in bulk) in rows, so units and rows are never added together.
1101
 
1102
  - **Corpora** come from the collectors: each reads one whole upstream in bulk and records a row for every file or record it lists, with its address, size, hashes and license as the upstream gives them.
1103
  - **Admission** makes the material sets.
1104
- Its candidates are the works the search found upstream for the task family of a collection, and the units of a group of corpus rows chosen with `tools/fetch.py` (`--where` and `--sample`), which the fetch tool fetched and checked against their recorded size and sha256.
1105
  It takes a candidate when its pointer facts hold: a download address, a recorded size and sha256, a recorded license, no legal block, no fact found wrong, and content not already in the index;
1106
  every candidate it does not take is listed with its reason in `meta/not_included.parquet` ([docs/access.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-21.3/docs/access.md)).
1107
  - **What admission adds:** the candidate's files as one unit with its `unit_id`, the material set's README.md and LICENSE, its collection (the one of its task family), its form, its upstream, and labels such as language, robots and terms.
1108
  The collect step then fetches every file of every unit again and checks its sha256 before the material set is published.
1109
- - A material set made from corpus rows is a source of its own, apart from the corpus: the same file is a row of the corpus and a file of a unit, so the two layers' counts are never added;
1110
  the deduplicated size counts its content once.
1111
 
1112
  </details>
@@ -1132,7 +1131,7 @@ a unit may hold several stages.
1132
  The release records the fields these read for every unit of a material set and every row of a corpus at every tag, with how many of the rules every stage shares it passes, in this order: the benchmark rule (a row that matches a public benchmark task is left out), the rule on rows not compared with the benchmark list yet and deduplication (`meta/stage_fields.parquet`);
1133
  each stage counts what its first methods place before those rules and after each of them, and its count after the last one is what it can take.
1134
  Every unit has one status on each stage, the first that holds: archive of recorded members (an archive whose members the index records as units of their own, such as the monthly tar archives of arXiv' sources, named under `containers` of the table: no stage counts it, so the members are not counted twice); overlapping a benchmark; not yet judged (no strong hash to compare with the benchmark list, not counted by the release yet, or a corpus unit only the classifier could place that it has not scored); judged below threshold (no method places it); a duplicate of a counted unit; counted, by the first method that places it; of a size not recorded; else judged below threshold (a file not in English or over 20 MB).
1135
- A stage's units of every status add up to every unit of the catalog (a corpus counting its rows as units), in `statuses` of [`meta/stage_figures.json`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-21.3/meta/stage_figures.json);
1136
  a source of which the release counted more units than the catalog now holds (units let go since) gives each status its share of the catalog's units;
1137
  the data page shows them under each stage's tile, the counted ones by method, and the table under [What each training stage can take](#manual/stage-tables) gives them in full.
1138
  The training permit and the personal-data mark are labels of every row, neither a condition nor a rule of any stage.
 
24
 
25
  ```sh
26
  uv run https://huggingface.co/datasets/Battam/training-data-foundation/resolve/release-2026-11-21.3/tools/fetch.py \
27
+ --selection training-data-foundation-selection-95078c1.json \
28
  --revision release-2026-11-21.3 \
29
  --out ./data
30
  ```
 
56
 
57
  ```sh
58
  uv run https://huggingface.co/datasets/Battam/training-data-foundation/resolve/release-2026-11-21.3/tools/fetch.py \
59
+ --selection training-data-foundation-selection-95078c1.json \
60
  --revision release-2026-11-21.3 \
61
  --training-only \
62
  --no-personal-data \
 
339
  | Watch the index in use, in the page's language, with subtitles | [Usage video on the data page](https://huggingface.co/spaces/Battam/training-data-foundation#usage-video) |
340
  | Check every number of the dataset card and of the tables here | [`meta/stage_figures.json`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-21.3/meta/stage_figures.json) and [`meta/size_figures.json`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-21.3/meta/size_figures.json) |
341
 
342
+ Each row of the data files under `data/` points to one file or record of a unit (Unit, in the [glossary](#manual/glossary));
343
  the catalog's column `data_files` names the files of each source, and one material set or corpus is read from exactly those files, as in the queries of the dataset card and with `tools/fetch.py`.
344
  The Dataset Viewer has a second subset, `preview`, the first 10 rows of each.
345
  The fields of a row used most:
 
522
  <details id="manual/glossary">
523
  <summary>Glossary</summary>
524
 
525
+ - **Unit:** one item that can be fetched on its own: a file, a record, a web page, or a group of files that its upstream publishes as one thing (a test case with its input and expected output, one workbook, one package), delivered whole.
526
+ Every source is counted in units.
527
+ Each file or record of a unit is one row of the data files under `data/`, a pointer: where to download it, its size, its hashes and its license.
528
+ In a material set, a unit's key `unit_id` is the `unit_group` its files share in the row column `extra` (`extra.source_meta.unit_group`), unique within its material set.
 
529
  A unit is material, not a task: one unit may give several tasks, and one task may use several units.
530
  - **Material set:** the units admitted from one source, which reads one upstream, for building tasks, with the README.md and LICENSE the index writes for it, which belong to no unit.
531
  It is counted in units;
532
  its files are the files of its units and those two.
533
  - **Corpus** (plural corpora): one whole upstream that a collector keeps reading in bulk, such as a package registry, a bug tracker, a mailing list or a web archive.
534
+ It is counted in units: its units are its files or records.
535
  - **Upstream:** where a source's files come from, in the terms of W3C DCAT 3: exactly one dataset, "a collection of data, published or curated by a single agent", such as one repository, one deposit or one bucket of one publisher, or one data catalog, a "curated collection of metadata about resources" kept by a single agent, whose entries others may publish and host anywhere, such as a package registry, a government data portal or a DOI registry.
536
  It has one agent, the dataset's or catalog's `dcterms:publisher` ("the entity responsible for making the resource available"), and one entry address, where the reading starts.
537
  One source reads one upstream;
 
553
  rows of any license and rows marked as carrying personal data come unless `--training-only` or `--no-personal-data` leaves them out ([docs/for-agents.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-21.3/docs/for-agents.md)).
554
 
555
  Every row carries a `unit_id`: in a material set, the key of its unit;
556
+ in a corpus, where each row is a unit of its own, the row's own key (its `uri`, then `@<range_offset>` for a byte range, then `!/<member_path>` for an archive member), and `tools/fetch.py` puts the file of a corpus row in a folder named after it.
557
 
558
  </details>
559
 
560
  <details id="manual/numbers">
561
  <summary>Where this manual's numbers come from</summary>
562
 
563
+ The numbers and command outputs of this manual were filled in at deploy time, from the index commit `95078c15282fcfb43d5336a9658deafb1d524b37` (release tag `release-2026-11-21.3`).
564
  This release holds 2,223 material sets with 5,582 units in 14 collections and 173 corpora with 1,275,880,615 rows, which point to 5.84 PB of deduplicated content, and of the 35,889 rows whose size was compared with their file, 99.3% matched.
565
 
566
  </details>
 
690
  <h4 id="manual/workbooks-5">5. Go to "Get the data" and keep the selection</h4>
691
 
692
  **Do**: click "Get the data" at the top;
693
+ under "Keep this selection" click "Download the selection list (JSON)" and put `training-data-foundation-selection-95078c1.json` in your fetch folder.
694
 
695
  **See**: the heading "Take every unit of each of 52 material sets".
696
  The list records release, filters and sources:
 
723
 
724
  ```sh
725
  uv run https://huggingface.co/datasets/Battam/training-data-foundation/resolve/release-2026-11-21.3/tools/fetch.py \
726
+ --selection training-data-foundation-selection-95078c1.json \
727
  --revision release-2026-11-21.3 \
728
  --ext xlsx \
729
  --ext xlsm \
 
752
  ...
753
  305 files fetched and checked (109MB) into take; details in take/_meta/fetch_run.json
754
  files of units: 1 failed, 219 ok; files of the sources themselves: 86 ok
755
+ run_id 20261122T121113.642277Z: 1 failed, 305 ok (lines in take/_meta/fetch_manifest.jsonl)
756
+ its lines that are not ok, in DuckDB: SELECT json FROM read_json_objects('take/_meta/fetch_manifest.jsonl') WHERE json_extract_string(json, 'run_id') = '20261122T121113.642277Z' AND json_extract_string(json, 'status') NOT IN ('ok', 'selected')
757
  ```
758
 
759
  Before the first download, `removed by` gives the units the default profile removed and the option that keeps them, counted in the data files read as far as `--limit` needed;
 
769
  incomplete: 1 unit miss a file (the files fetched are kept; _meta/fetch_manifest.jsonl says why): ...
770
  5 files fetched and checked (1.35MB) into probe; details in probe/_meta/fetch_run.json
771
  files of units: 1 failed, 1 ok; files of the sources themselves: 4 ok
772
+ run_id 20261122T121800.263068Z: 1 failed, 5 ok (lines in probe/_meta/fetch_manifest.jsonl)
773
+ its lines that are not ok, in DuckDB: SELECT json FROM read_json_objects('probe/_meta/fetch_manifest.jsonl') WHERE json_extract_string(json, 'run_id') = '20261122T121800.263068Z' AND json_extract_string(json, 'status') NOT IN ('ok', 'selected')
774
  ```
775
 
776
  **Get**: every `ok` file matched its recorded size and hash.
 
842
  **See** (truncated):
843
 
844
  ```text
845
+ Dataset commit 95078c15282fcfb43d5336a9658deafb1d524b37: https://huggingface.co/datasets/Battam/training-data-foundation/tree/95078c15282fcfb43d5336a9658deafb1d524b37
846
  ...
847
  - Source: `austender-ict-procurement-statistics`
848
  - License: CC-BY-3.0-AU
 
914
  ok exfatprogs-fsck-cases cases/bad_bitmap/exfat.img: 5.24MB
915
  59 files fetched and checked (110MB) into data; details in data/_meta/fetch_run.json
916
  files of units: 52 ok; files of the sources themselves: 7 ok
917
+ run_id 20261122T121829.598737Z: 59 ok (lines in data/_meta/fetch_manifest.jsonl)
918
  ```
919
 
920
  An exFAT image is `exfat.img.tar.xz` upstream;
 
1066
 
1067
  A material set is split into units, ready to build tasks;
1068
  a corpus is all the files of one upstream, large, for you to pick from.
1069
+ The two differ in depth and use, so they are listed apart;
1070
+ both are counted in units, a corpus's units being its files or records.
1071
  Look in the material sets first, then the corpora.
1072
 
1073
  </details>
 
1096
  <details id="manual/admission">
1097
  <summary>From corpora to material sets</summary>
1098
 
1099
+ Every source is of one kind and is counted in units. A unit is task material for a leaf through its labels, each of one method (agent or classifier); a source whose units an agent chose for a leaf is a material set, and every other source is a corpus, one whole upstream read in bulk.
1100
 
1101
  - **Corpora** come from the collectors: each reads one whole upstream in bulk and records a row for every file or record it lists, with its address, size, hashes and license as the upstream gives them.
1102
  - **Admission** makes the material sets.
1103
+ Its candidates are the works the search found upstream for the task family of a collection, and a group of corpus units chosen with `tools/fetch.py` (`--where` and `--sample`), which the fetch tool fetched and checked against their recorded size and sha256.
1104
  It takes a candidate when its pointer facts hold: a download address, a recorded size and sha256, a recorded license, no legal block, no fact found wrong, and content not already in the index;
1105
  every candidate it does not take is listed with its reason in `meta/not_included.parquet` ([docs/access.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-21.3/docs/access.md)).
1106
  - **What admission adds:** the candidate's files as one unit with its `unit_id`, the material set's README.md and LICENSE, its collection (the one of its task family), its form, its upstream, and labels such as language, robots and terms.
1107
  The collect step then fetches every file of every unit again and checks its sha256 before the material set is published.
1108
+ - A material set made from corpus units is a source of its own, apart from the corpus: the same file is a unit of the corpus and a file of a unit of the material set, so it is counted in each layer;
1109
  the deduplicated size counts its content once.
1110
 
1111
  </details>
 
1131
  The release records the fields these read for every unit of a material set and every row of a corpus at every tag, with how many of the rules every stage shares it passes, in this order: the benchmark rule (a row that matches a public benchmark task is left out), the rule on rows not compared with the benchmark list yet and deduplication (`meta/stage_fields.parquet`);
1132
  each stage counts what its first methods place before those rules and after each of them, and its count after the last one is what it can take.
1133
  Every unit has one status on each stage, the first that holds: archive of recorded members (an archive whose members the index records as units of their own, such as the monthly tar archives of arXiv' sources, named under `containers` of the table: no stage counts it, so the members are not counted twice); overlapping a benchmark; not yet judged (no strong hash to compare with the benchmark list, not counted by the release yet, or a corpus unit only the classifier could place that it has not scored); judged below threshold (no method places it); a duplicate of a counted unit; counted, by the first method that places it; of a size not recorded; else judged below threshold (a file not in English or over 20 MB).
1134
+ A stage's units of every status add up to every unit of the catalog (a corpus's units being its files or records), in `statuses` of [`meta/stage_figures.json`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-21.3/meta/stage_figures.json);
1135
  a source of which the release counted more units than the catalog now holds (units let go since) gives each status its share of the catalog's units;
1136
  the data page shows them under each stage's tile, the counted ones by method, and the table under [What each training stage can take](#manual/stage-tables) gives them in full.
1137
  The training permit and the personal-data mark are labels of every row, neither a condition nor a rule of any stage.
manual/manual.zh.md CHANGED
@@ -24,7 +24,7 @@
24
 
25
  ```sh
26
  uv run https://huggingface.co/datasets/Battam/training-data-foundation/resolve/release-2026-11-21.3/tools/fetch.py \
27
- --selection training-data-foundation-selection-f323fc8.json \
28
  --revision release-2026-11-21.3 \
29
  --out ./data
30
  ```
@@ -56,7 +56,7 @@
56
 
57
  ```sh
58
  uv run https://huggingface.co/datasets/Battam/training-data-foundation/resolve/release-2026-11-21.3/tools/fetch.py \
59
- --selection training-data-foundation-selection-f323fc8.json \
60
  --revision release-2026-11-21.3 \
61
  --training-only \
62
  --no-personal-data \
@@ -336,7 +336,7 @@ tau2-bench|0
336
  | 观看本索引的使用示例视频,用页面的语言,带字幕 | [数据页上的使用示例视频](https://huggingface.co/spaces/Battam/training-data-foundation#usage-video) |
337
  | 核对数据集卡片和这里各表的每个数字 | [`meta/stage_figures.json`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-21.3/meta/stage_figures.json) 和 [`meta/size_figures.json`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-21.3/meta/size_figures.json) |
338
 
339
- `data/` 下数据文件的每一行指向一个文件或一条记录(见[术语](#manual/glossary)中的「行」);
340
  目录的 `data_files` 列列出每个来源的文件,单个材料集或语料库就从这些文件读取,见数据集卡片中的查询和 `tools/fetch.py`。
341
  数据集查看器还有第二个子集 `preview`,每个的前 10 行。
342
  一行中最常用的字段:
@@ -528,17 +528,16 @@ tau2-bench|0
528
  <details id="manual/glossary">
529
  <summary>术语</summary>
530
 
531
- - **行:** 一个指针,即 `data/` 下数据文件中的一行:在哪里下载一个文件或一条记录,以及它的大小、哈希值和许可证。
532
- 语料库按行计数。
533
- - **单元:** 上游作为一件东西发布的一组文件(一个测试用例、一个工作簿、一个软件包),整体交付。
534
- 它的键 `unit_id` 是它的各行在行列 `extra` 中共用的 `unit_group`(`extra.source_meta.unit_group`),在所属材料集内唯一。
535
- 材料集按单元计数。
536
  单元是材料,不是题:一个单元可以出几道题,一道题也可以用几个单元。
537
  - **材料集:** 为构建任务从一个来源(它读取一个上游)收录的单元,加上索引为它写的 README.md 和 LICENSE,这两个文件不属于任何单元。
538
  材料集按单元计数;
539
  它的文件是它的单元的文件和这两个文件。
540
  - **语料库:** 采集器持续整批读取的一个完整上游,例如软件包仓库、问题跟踪系统、邮件列表或网页存档。
541
- 语料库按行计数。
542
  - **上游:** 一个来源的文件的来处,用 W3C DCAT 3 的术语来说,恰好是一个数据集,即"由单一主体发布或管理的数据集合",例如一个仓库、一份存档或一个发布方的一个存储桶,或者一个数据目录,即由单一主体维护的一份"关于资源的元数据的整理集合",其中的条目可以由他人发布、托管在任何地方,例如一个软件包注册表、一个政府数据门户或一个 DOI 注册机构。
543
  它有一个发布主体,即这个数据集或数据目录的 `dcterms:publisher`("负责使该资源可用的实体"),和一个入口地址,即读取开始的地方。
544
  一个来源读取一个上游;
@@ -560,14 +559,14 @@ tau2-bench|0
560
  任何许可证的行和标为带有个人数据的行都会进来,除非 `--training-only` 或 `--no-personal-data` 把它们去掉([docs/for-agents.zh.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-21.3/docs/for-agents.zh.md))。
561
 
562
  每一行都带有 `unit_id`:在材料集中,是它所属单元的键;
563
- 在语料库中,是该行自己的键(它的 `uri`,字节范围再接 `@<range_offset>`,存档成员再接 `!/<member_path>`),`tools/fetch.py` 把语料库一行的文件放进以它命名的文件夹。
564
 
565
  </details>
566
 
567
  <details id="manual/numbers">
568
  <summary>本手册的数字从哪来</summary>
569
 
570
- 本手册的数字和命令输出是部署时填入的,取自索引提交 `f323fc8f7f5b5106588c1f69279aa2acdd8db846`(发布标签 `release-2026-11-21.3`)。
571
  本次发布有 2,223 个材料集,共 5,582 个单元,分在 14 个合集,以及 173 个语料库,共 1,275,880,615 行,指向去重后共 5.84 PB 的内容,与文件比对过大小的 35,889 行中有 99.3% 一致。
572
 
573
  </details>
@@ -695,7 +694,7 @@ tau2-bench|0
695
 
696
  <h4 id="manual/workbooks-5">5. 到「获取数据」,保存选择清单</h4>
697
 
698
- **做**:点顶部「获取数据」,在「保存这次选择」里点「下载选择清单(JSON)」,把 `training-data-foundation-selection-f323fc8.json` 放进取件目录。
699
 
700
  **看到**:标题「从 52 个材料集中获取全部单元」。
701
  清单记着版本、筛选和来源:
@@ -728,7 +727,7 @@ tau2-bench|0
728
 
729
  ```sh
730
  uv run https://huggingface.co/datasets/Battam/training-data-foundation/resolve/release-2026-11-21.3/tools/fetch.py \
731
- --selection training-data-foundation-selection-f323fc8.json \
732
  --revision release-2026-11-21.3 \
733
  --ext xlsx \
734
  --ext xlsm \
@@ -757,8 +756,8 @@ ok austender-ict-procurement-statistics workbooks/2016-17-austender-ict-contract
757
  ...
758
  305 files fetched and checked (109MB) into take; details in take/_meta/fetch_run.json
759
  files of units: 1 failed, 219 ok; files of the sources themselves: 86 ok
760
- run_id 20261122T113932.318646Z: 1 failed, 305 ok (lines in take/_meta/fetch_manifest.jsonl)
761
- its lines that are not ok, in DuckDB: SELECT json FROM read_json_objects('take/_meta/fetch_manifest.jsonl') WHERE json_extract_string(json, 'run_id') = '20261122T113932.318646Z' AND json_extract_string(json, 'status') NOT IN ('ok', 'selected')
762
  ```
763
 
764
  第一次下载之前,`removed by` 是默认配置去掉的单元和保留它们的开关,数的是 `--limit` 需要读到的那些数据文件;
@@ -774,8 +773,8 @@ failed western-australia-government-workbooks workbooks/wa-gross-regional-produc
774
  incomplete: 1 unit miss a file (the files fetched are kept; _meta/fetch_manifest.jsonl says why): ...
775
  5 files fetched and checked (1.35MB) into probe; details in probe/_meta/fetch_run.json
776
  files of units: 1 failed, 1 ok; files of the sources themselves: 4 ok
777
- run_id 20261122T114211.074901Z: 1 failed, 5 ok (lines in probe/_meta/fetch_manifest.jsonl)
778
- its lines that are not ok, in DuckDB: SELECT json FROM read_json_objects('probe/_meta/fetch_manifest.jsonl') WHERE json_extract_string(json, 'run_id') = '20261122T114211.074901Z' AND json_extract_string(json, 'status') NOT IN ('ok', 'selected')
779
  ```
780
 
781
  **得到**:`ok` 的文件已按记录的大小和哈希核对。
@@ -845,7 +844,7 @@ GROUP BY ALL ORDER BY source;
845
  **看到**(截短):
846
 
847
  ```text
848
- Dataset commit f323fc8f7f5b5106588c1f69279aa2acdd8db846: https://huggingface.co/datasets/Battam/training-data-foundation/tree/f323fc8f7f5b5106588c1f69279aa2acdd8db846
849
  ...
850
  - Source: `austender-ict-procurement-statistics`
851
  - License: CC-BY-3.0-AU
@@ -917,7 +916,7 @@ ok dosfstools-fsck-cases README.md: 3.32kB
917
  ok exfatprogs-fsck-cases cases/bad_bitmap/exfat.img: 5.24MB
918
  59 files fetched and checked (110MB) into data; details in data/_meta/fetch_run.json
919
  files of units: 52 ok; files of the sources themselves: 7 ok
920
- run_id 20261122T114217.844254Z: 59 ok (lines in data/_meta/fetch_manifest.jsonl)
921
  ```
922
 
923
  exFAT 镜像在原站是 `exfat.img.tar.xz`,脚本解出后再按单元自己的 SHA-256 核对,盘上只留镜像。
@@ -1065,7 +1064,8 @@ GDPval 在比对清单 `meta/benchmarks.parquet` 里(220 道题),这一版
1065
 
1066
  材料集分好了单元,拿来就能造任务;
1067
  语料库是一个上游的全部文件,量大,要自己挑。
1068
- 两层深度和用途不同,所以分开列,计数从不相加(单元和行不是一种东西),只有大小能相加。
 
1069
  先在材料集里找,没有再去语料库。
1070
 
1071
  </details>
@@ -1093,16 +1093,16 @@ GDPval 在比对清单 `meta/benchmarks.parquet` 里(220 道题),这一版
1093
  <details id="manual/admission">
1094
  <summary>从语料库到材料集</summary>
1095
 
1096
- 每个来源都是同一种来源,单元通过它的标签成为某个叶子的任务材料,每个标签来自一种方法(agent 或 classifier);Agent 为某个叶子选定其单元的来源(材料集)按单元计数,其他每个来源(语料库,整批读取的一个完整上游)按行计数,所以单元和行从不相加。
1097
 
1098
  - **语料库**来自采集器:每个采集器整批读取一个完整上游,为它列出的每个文件或每条记录记一行,带有上游给出的地址、大小、哈希值和许可证。
1099
  - **收录**产生材料集。
1100
- 它的候选是检索为某个合集的任务类别在上游找到的作品,以及用 `tools/fetch.py`(`--where` 和 `--sample`)选出的一组语料库行中的单元,这些单元由下载工具取回,并按记录的大小和 sha256 校验过。
1101
  候选的指针事实成立时才收录:有下载地址,记录了大小和 sha256,记录了许可证,没有法律封锁,没有发现事实有误,内容也不在索引中;
1102
  未收录的每个候选都连同原因列在 `meta/not_included.parquet` 中([docs/access.zh.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-21.3/docs/access.zh.md))。
1103
  - **收录添加的内容:** 把候选的文件作为一个单元并给出它的 `unit_id`,材料集的 README.md 和 LICENSE,它的合集(它的任务类别所属的合集),它的形式,它的上游,以及语言(`language`)、`robots` 和使用条款(`terms`)等标签。
1104
  之后采集步骤再次取回每个单元的每个文件,并在材料集发布之前校验它的 sha256。
1105
- - 由语料库行做成的材料集是一个独立的来源,与那个语料库分开:同一个文件既是语料库的一行,又是一个单元的一个文件,所以两层的计数从不相加;
1106
  去重后大小只把它的内容算一次。
1107
 
1108
  </details>
@@ -1128,7 +1128,7 @@ GDPval 在比对清单 `meta/benchmarks.parquet` 里(220 道题),这一版
1128
  发布在每个标签上为材料集的每个单元和语料库的每一行记录这些方法所读的字段,并记录它按以下顺序通过了各阶段共用规则中的几条:基准测试规则(与公开基准测试任务相符的行被去掉)、还没有与基准测试清单比对的行的规则和去重(`meta/stage_fields.parquet`);
1129
  每个阶段在这些规则之前和每条规则之后统计它的首要方法放入的材料,最后一条规则之后的计数就是它能用的材料。
1130
  每个单元在每个阶段上都有一个状态,取下列第一个成立的:成员已记录的归档(其成员已由索引作为单元各自记录的归档,例如 arXiv 源文件的月度 tar 归档,写在阶段表的 `containers` 下:没有阶段计入它,所以成员不会被计两次);与基准测试重叠;尚未判定(没有可与基准测试清单比对的强哈希、发布还没有计数它,或者是只有分类器才能放入而分类器还没打分的语料库单元);判定低于阈值(没有任何方法放入它);与已计入的单元重复;已计入,按放入它的第一个方法计;大小未记录;否则判定低于阈值(有文件不是英文或超过 20 MB)。
1131
- 一个阶段各状态的单元数加起来就是目录中的全部单元(语料库把它的行当作单元),见 [`meta/stage_figures.json`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-21.3/meta/stage_figures.json) 的 `statuses`;
1132
  发布计数的单元多于目录现有单元的来源(之后有单元被移出),各状态按比例分得目录中的单元数;
1133
  数据页在每个阶段那一块下面显示它们,已计入的按方法分,[每个训练阶段能用多少](#manual/stage-tables)下面的表给出完整数字。
1134
  训练许可和个人数据标记是每一行的标签,既不是任何阶段的条件,也不是规则。
 
24
 
25
  ```sh
26
  uv run https://huggingface.co/datasets/Battam/training-data-foundation/resolve/release-2026-11-21.3/tools/fetch.py \
27
+ --selection training-data-foundation-selection-95078c1.json \
28
  --revision release-2026-11-21.3 \
29
  --out ./data
30
  ```
 
56
 
57
  ```sh
58
  uv run https://huggingface.co/datasets/Battam/training-data-foundation/resolve/release-2026-11-21.3/tools/fetch.py \
59
+ --selection training-data-foundation-selection-95078c1.json \
60
  --revision release-2026-11-21.3 \
61
  --training-only \
62
  --no-personal-data \
 
336
  | 观看本索引的使用示例视频,用页面的语言,带字幕 | [数据页上的使用示例视频](https://huggingface.co/spaces/Battam/training-data-foundation#usage-video) |
337
  | 核对数据集卡片和这里各表的每个数字 | [`meta/stage_figures.json`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-21.3/meta/stage_figures.json) 和 [`meta/size_figures.json`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-21.3/meta/size_figures.json) |
338
 
339
+ `data/` 下数据文件的每一行指向一个单元的一个文件或一条记录(见[术语](#manual/glossary)中的「单元」);
340
  目录的 `data_files` 列列出每个来源的文件,单个材料集或语料库就从这些文件读取,见数据集卡片中的查询和 `tools/fetch.py`。
341
  数据集查看器还有第二个子集 `preview`,每个的前 10 行。
342
  一行中最常用的字段:
 
528
  <details id="manual/glossary">
529
  <summary>术语</summary>
530
 
531
+ - **单元:** 能单独取回的一件东西:一个文件、一条记录、一个网页,或上游作为一件东西发布的一组文件(一个带输入和预期输出的测试用例、一个工作簿、一个软件包),整体交付。
532
+ 每个来源都按单元计数。
533
+ 单元的每个文件或每条记录是 `data/` 下数据文件中的一行,即一个指针:在哪里下载它,以及它的大小、哈希值和许可证。
534
+ 在材料集中,单元的键 `unit_id` 是它的各文件在行列 `extra` 中共用的 `unit_group`(`extra.source_meta.unit_group`),在所属材料集内唯一。
 
535
  单元是材料,不是题:一个单元可以出几道题,一道题也可以用几个单元。
536
  - **材料集:** 为构建任务从一个来源(它读取一个上游)收录的单元,加上索引为它写的 README.md 和 LICENSE,这两个文件不属于任何单元。
537
  材料集按单元计数;
538
  它的文件是它的单元的文件和这两个文件。
539
  - **语料库:** 采集器持续整批读取的一个完整上游,例如软件包仓库、问题跟踪系统、邮件列表或网页存档。
540
+ 语料库按单元计数:它的单元就是它的文件或记录。
541
  - **上游:** 一个来源的文件的来处,用 W3C DCAT 3 的术语来说,恰好是一个数据集,即"由单一主体发布或管理的数据集合",例如一个仓库、一份存档或一个发布方的一个存储桶,或者一个数据目录,即由单一主体维护的一份"关于资源的元数据的整理集合",其中的条目可以由他人发布、托管在任何地方,例如一个软件包注册表、一个政府数据门户或一个 DOI 注册机构。
542
  它有一个发布主体,即这个数据集或数据目录的 `dcterms:publisher`("负责使该资源可用的实体"),和一个入口地址,即读取开始的地方。
543
  一个来源读取一个上游;
 
559
  任何许可证的行和标为带有个人数据的行都会进来,除非 `--training-only` 或 `--no-personal-data` 把它们去掉([docs/for-agents.zh.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-21.3/docs/for-agents.zh.md))。
560
 
561
  每一行都带有 `unit_id`:在材料集中,是它所属单元的键;
562
+ 在语料库中,每一行自成一个单元,`unit_id` 是该行自己的键(它的 `uri`,字节范围再接 `@<range_offset>`,存档成员再接 `!/<member_path>`),`tools/fetch.py` 把语料库一行的文件放进以它命名的文件夹。
563
 
564
  </details>
565
 
566
  <details id="manual/numbers">
567
  <summary>本手册的数字从哪来</summary>
568
 
569
+ 本手册的数字和命令输出是部署时填入的,取自索引提交 `95078c15282fcfb43d5336a9658deafb1d524b37`(发布标签 `release-2026-11-21.3`)。
570
  本次发布有 2,223 个材料集,共 5,582 个单元,分在 14 个合集,以及 173 个语料库,共 1,275,880,615 行,指向去重后共 5.84 PB 的内容,与文件比对过大小的 35,889 行中有 99.3% 一致。
571
 
572
  </details>
 
694
 
695
  <h4 id="manual/workbooks-5">5. 到「获取数据」,保存选择清单</h4>
696
 
697
+ **做**:点顶部「获取数据」,在「保存这次选择」里点「下载选择清单(JSON)」,把 `training-data-foundation-selection-95078c1.json` 放进取件目录。
698
 
699
  **看到**:标题「从 52 个材料集中获取全部单元」。
700
  清单记着版本、筛选和来源:
 
727
 
728
  ```sh
729
  uv run https://huggingface.co/datasets/Battam/training-data-foundation/resolve/release-2026-11-21.3/tools/fetch.py \
730
+ --selection training-data-foundation-selection-95078c1.json \
731
  --revision release-2026-11-21.3 \
732
  --ext xlsx \
733
  --ext xlsm \
 
756
  ...
757
  305 files fetched and checked (109MB) into take; details in take/_meta/fetch_run.json
758
  files of units: 1 failed, 219 ok; files of the sources themselves: 86 ok
759
+ run_id 20261122T121113.642277Z: 1 failed, 305 ok (lines in take/_meta/fetch_manifest.jsonl)
760
+ its lines that are not ok, in DuckDB: SELECT json FROM read_json_objects('take/_meta/fetch_manifest.jsonl') WHERE json_extract_string(json, 'run_id') = '20261122T121113.642277Z' AND json_extract_string(json, 'status') NOT IN ('ok', 'selected')
761
  ```
762
 
763
  第一次下载之前,`removed by` 是默认配置去掉的单元和保留它们的开关,数的是 `--limit` 需要读到的那些数据文件;
 
773
  incomplete: 1 unit miss a file (the files fetched are kept; _meta/fetch_manifest.jsonl says why): ...
774
  5 files fetched and checked (1.35MB) into probe; details in probe/_meta/fetch_run.json
775
  files of units: 1 failed, 1 ok; files of the sources themselves: 4 ok
776
+ run_id 20261122T121800.263068Z: 1 failed, 5 ok (lines in probe/_meta/fetch_manifest.jsonl)
777
+ its lines that are not ok, in DuckDB: SELECT json FROM read_json_objects('probe/_meta/fetch_manifest.jsonl') WHERE json_extract_string(json, 'run_id') = '20261122T121800.263068Z' AND json_extract_string(json, 'status') NOT IN ('ok', 'selected')
778
  ```
779
 
780
  **得到**:`ok` 的文件已按记录的大小和哈希核对。
 
844
  **看到**(截短):
845
 
846
  ```text
847
+ Dataset commit 95078c15282fcfb43d5336a9658deafb1d524b37: https://huggingface.co/datasets/Battam/training-data-foundation/tree/95078c15282fcfb43d5336a9658deafb1d524b37
848
  ...
849
  - Source: `austender-ict-procurement-statistics`
850
  - License: CC-BY-3.0-AU
 
916
  ok exfatprogs-fsck-cases cases/bad_bitmap/exfat.img: 5.24MB
917
  59 files fetched and checked (110MB) into data; details in data/_meta/fetch_run.json
918
  files of units: 52 ok; files of the sources themselves: 7 ok
919
+ run_id 20261122T121829.598737Z: 59 ok (lines in data/_meta/fetch_manifest.jsonl)
920
  ```
921
 
922
  exFAT 镜像在原站是 `exfat.img.tar.xz`,脚本解出后再按单元自己的 SHA-256 核对,盘上只留镜像。
 
1064
 
1065
  材料集分好了单元,拿来就能造任务;
1066
  语料库是一个上游的全部文件,量大,要自己挑。
1067
+ 两层深度和用途不同,所以分开列;
1068
+ 两层都按单元计数,语料库的单元就是它的文件或记录。
1069
  先在材料集里找,没有再去语料库。
1070
 
1071
  </details>
 
1093
  <details id="manual/admission">
1094
  <summary>从语料库到材料集</summary>
1095
 
1096
+ 每个来源都是同一种来源,都按单元计数。单元通过它的标签成为某个叶子的任务材料,每个标签来自一种方法(agent 或 classifier);agent 为某个叶子选定其单元的来源是材料集,其他每个来源是语料库,即整批读取的一个完整上游。
1097
 
1098
  - **语料库**来自采集器:每个采集器整批读取一个完整上游,为它列出的每个文件或每条记录记一行,带有上游给出的地址、大小、哈希值和许可证。
1099
  - **收录**产生材料集。
1100
+ 它的候选是检索为某个合集的任务类别在上游找到的作品,以及用 `tools/fetch.py`(`--where` 和 `--sample`)选出的一组语料库单元,这些单元由下载工具取回,并按记录的大小和 sha256 校验过。
1101
  候选的指针事实成立时才收录:有下载地址,记录了大小和 sha256,记录了许可证,没有法律封锁,没有发现事实有误,内容也不在索引中;
1102
  未收录的每个候选都连同原因列在 `meta/not_included.parquet` 中([docs/access.zh.md](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-21.3/docs/access.zh.md))。
1103
  - **收录添加的内容:** 把候选的文件作为一个单元并给出它的 `unit_id`,材料集的 README.md 和 LICENSE,它的合集(它的任务类别所属的合集),它的形式,它的上游,以及语言(`language`)、`robots` 和使用条款(`terms`)等标签。
1104
  之后采集步骤再次取回每个单元的每个文件,并在材料集发布之前校验它的 sha256。
1105
+ - 由语料库单元做成的材料集是一个独立的来源,与那个语料库分开:同一个文件既是语料库的一个单元,又是材料集一个单元的一个文件,所以它在两层中各计一次;
1106
  去重后大小只把它的内容算一次。
1107
 
1108
  </details>
 
1128
  发布在每个标签上为材料集的每个单元和语料库的每一行记录这些方法所读的字段,并记录它按以下顺序通过了各阶段共用规则中的几条:基准测试规则(与公开基准测试任务相符的行被去掉)、还没有与基准测试清单比对的行的规则和去重(`meta/stage_fields.parquet`);
1129
  每个阶段在这些规则之前和每条规则之后统计它的首要方法放入的材料,最后一条规则之后的计数就是它能用的材料。
1130
  每个单元在每个阶段上都有一个状态,取下列第一个成立的:成员已记录的归档(其成员已由索引作为单元各自记录的归档,例如 arXiv 源文件的月度 tar 归档,写在阶段表的 `containers` 下:没有阶段计入它,所以成员不会被计两次);与基准测试重叠;尚未判定(没有可与基准测试清单比对的强哈希、发布还没有计数它,或者是只有分类器才能放入而分类器还没打分的语料库单元);判定低于阈值(没有任何方法放入它);与已计入的单元重复;已计入,按放入它的第一个方法计;大小未记录;否则判定低于阈值(有文件不是英文或超过 20 MB)。
1131
+ 一个阶段各状态的单元数加起来就是目录中的全部单元(语料库的单元就是它的文件或记录),见 [`meta/stage_figures.json`](https://huggingface.co/datasets/Battam/training-data-foundation/blob/release-2026-11-21.3/meta/stage_figures.json) 的 `statuses`;
1132
  发布计数的单元多于目录现有单元的来源(之后有单元被移出),各状态按比例分得目录中的单元数;
1133
  数据页在每个阶段那一块下面显示它们,已计入的按方法分,[每个训练阶段能用多少](#manual/stage-tables)下面的表给出完整数字。
1134
  训练许可和个人数据标记是每一行的标签,既不是任何阶段的条件,也不是规则。
portal.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
- "commit": "38eed9b7fbbaa5781a9c6a12df52a21f28c03e2e",
3
- "digest": "b12671f8be803f0726c0961f439bba4f129b685da670478dce9aee098761f69c",
4
  "files": 30,
5
  "format": "portal-deploy/1",
6
  "funnel": "93c9d8ae26cfb409122f4cd4222359d30c31566c",
7
- "index": "f323fc8f7f5b5106588c1f69279aa2acdd8db846"
8
  }
 
1
  {
2
+ "commit": "a74634d6772e9a6532e2d2c981baf127634f0f84",
3
+ "digest": "8a056ec095013f44ea1e65855a410ed878e060f2783c4fbd73efb04a95e3057e",
4
  "files": 30,
5
  "format": "portal-deploy/1",
6
  "funnel": "93c9d8ae26cfb409122f4cd4222359d30c31566c",
7
+ "index": "95078c15282fcfb43d5336a9658deafb1d524b37"
8
  }