Vasily Alexeev commited on
Commit
2654347
·
1 Parent(s): 4c786bc

add base data

Browse files
Files changed (4) hide show
  1. .gitattributes +4 -0
  2. README.md +160 -0
  3. data/bow.csv +3 -0
  4. data/noow.csv +3 -0
.gitattributes CHANGED
@@ -58,3 +58,7 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ *.csv filter=lfs diff=lfs merge=lfs -text
62
+ *.jsonl filter=lfs diff=lfs merge=lfs -text
63
+ *.vw filter=lfs diff=lfs merge=lfs -text
64
+ *.native filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,160 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: cc-by-4.0
5
+ task_categories:
6
+ - text-classification
7
+ tags:
8
+ - topic-modeling
9
+ - topic-modelling
10
+ - text-clustering
11
+ - document-representation
12
+ size_categories:
13
+ - 10K<n<100K
14
+ configs:
15
+ - config_name: noow
16
+ default: true
17
+ data_files:
18
+ - split: corpus
19
+ path: data/noow.csv
20
+ - config_name: bow
21
+ data_files:
22
+ - split: corpus
23
+ path: data/bow.csv
24
+ ---
25
+
26
+ # WOS-11967
27
+
28
+ This TopicNet derived preparation contains 11,965 retained scientific abstracts from the WOS-11967 release, with 33 observed integer labels serialized as strings. The source has 11,967 rows. The source README declares 35 categories and seven parents, but Y.txt actually contains 33 observed labels (0–32). Names for those 33 labels are not inferred from other WOS subsets. This is a derived research preparation, not the original release.
29
+
30
+ ## Population, labels and research splits
31
+
32
+ Raw duplicate identity is body text after casefold and whitespace collapse. There are no raw duplicate groups or cross-label conflicts. Two identical lemma-sequence groups remove two rows; five near-duplicate pairs join families without removing their members. Y.txt is the authoritative global class. YL1.txt/YL2.txt remain provenance only: global label 6 has child values 2 and 3, label 10 has child values 2 and 3, and parent/child pair (2,3) maps to global labels 10 and 11. These ambiguities are preserved without repairing Y or inventing class names.
33
+
34
+ Family groups combine raw/lemma duplicate relations, source URL/DOI relations where present, and body five-token shingle Jaccard similarity ≥0.9. Groups are assigned by iterative multilabel stratification with seeds 20260824 and 20260825; all retained members of a group stay together. The resulting disjoint, exhaustive research splits are **fit 7,182, calibration 2,391, validation 2,392**. The Hugging Face split `corpus` contains every retained document; it is not `fit`. Original source membership is preserved in accepted audit/documents metadata and does not define these research splits.
35
+
36
+ Retained class supports come directly from `audit.json.output_rows`:
37
+
38
+ | Label | Documents |
39
+ | --- | ---: |
40
+ | 0 | 298 |
41
+ | 1 | 301 |
42
+ | 2 | 300 |
43
+ | 3 | 300 |
44
+ | 4 | 299 |
45
+ | 5 | 300 |
46
+ | 6 | 406 |
47
+ | 7 | 426 |
48
+ | 8 | 389 |
49
+ | 9 | 397 |
50
+ | 10 | 392 |
51
+ | 11 | 393 |
52
+ | 12 | 387 |
53
+ | 13 | 371 |
54
+ | 14 | 402 |
55
+ | 15 | 346 |
56
+ | 16 | 420 |
57
+ | 17 | 386 |
58
+ | 18 | 410 |
59
+ | 19 | 423 |
60
+ | 20 | 384 |
61
+ | 21 | 441 |
62
+ | 22 | 449 |
63
+ | 23 | 309 |
64
+ | 24 | 357 |
65
+ | 25 | 368 |
66
+ | 26 | 321 |
67
+ | 27 | 262 |
68
+ | 28 | 351 |
69
+ | 29 | 340 |
70
+ | 30 | 401 |
71
+ | 31 | 335 |
72
+ | 32 | 301 |
73
+
74
+ ## Representations and pinned preparation
75
+
76
+ The source adapter reads aligned X/Y/YL1/YL2 lines with zero-based row indices. IDs are `wos11967_<six-digit-row-index>`. The CSV body is the saved X.txt line without its line terminator; no title is present.
77
+
78
+ Both configurations read a single UTF-8 CSV with exactly `id,raw_text,vw_text`, sorted lexicographically by ID. `raw_text` is only the saved `documents.jsonl.raw_text` body. Title text is separate metadata. NOOW VW preserves the saved prepared line exactly, excluding its line terminator: document ID followed by only `|@word`. It retains every prepared occurrence, including terms outside the fitted vocabulary. BOW counts those same terms separately within each namespace as `token:count`, with lexicographic token ordering and the same namespace ordering. Class labels never appear as VW namespaces.
79
+
80
+ NOOW means occurrence order after preprocessing, not untouched or reversible prose. The accepted English preprocessing pins Python 3.11.15, NLTK 3.9.2 and NLTK-data commit `550b6625bcef1f2abff2ff770a5a0d272c9c6b2a`: WordPunctTokenizer, lowercase per original span, minimum token length 2, averaged_perceptron_tagger_eng, WordNet POS mapping J/V/N/R with noun fallback, English stopword removal and `lemma.isalpha()` filtering. The copied audit records the exact stopwords and resource hashes. Names are not masked.
81
+
82
+ The research model uses **only @word**, with vocabulary fitted on `fit` only, `min_df=5` and `max_df=0.9`. The saved `*-model.vw` and `*.vw` inputs project prepared text to @word; the separate fitted dictionary controls the vocabulary while the sequence retains OOV positions. The CSVs preserve full prepared sequences, including the title namespace where present. Occurrence offsets and chains are separate saved artifacts, not CSV columns.
83
+
84
+ `data/accepted/documents.jsonl` stores `offsets` and `title_offsets` as `[start, end]` arrays: zero-based Python character positions with an exclusive end (not byte offsets), relative to `raw_text` and `raw_title`, respectively. WOS has an empty `raw_title` and empty title arrays; no additional title text is included. The corresponding `occurrences` and `title_occurrences` records contain `lemma`, `start`, `end` and `occurrence_index`, aligned in occurrence order with `tokens`/`offsets` and `title_tokens`/`title_offsets`; a lemma need not equal the raw substring. Per-split `data/accepted/wos-11967/*-occurrences.jsonl` files contain TF-IDF decision records keyed by `document_id` and `occurrence_index`, rather than raw spans. Join `document_id` to the document's `id` and use `occurrence_index` to select its body occurrence and raw span.
85
+
86
+ `tfidf-bank.json` and `*-chains.jsonl` preserve the immutable accepted TF-IDF reference bank and extracted chains. These are automatic reference constructions, not gold human annotations. This packaging converts saved representations and does not rerun preprocessing, dictionary creation, reference fitting, scoring or model training. Candidate model results and selected human-audit examples are not included.
87
+
88
+ ## Loading and metadata joins
89
+
90
+ Authenticate with an account that has access if the intended remote repository is private:
91
+
92
+ ```python
93
+ from datasets import load_dataset
94
+
95
+ repo = "TopicNet/WOS-11967"
96
+ corpus = load_dataset(repo, "noow", split="corpus", token=True)
97
+ bow = load_dataset(repo, "bow", split="corpus", token=True)
98
+ ```
99
+
100
+ Labels and research splits are auxiliary JSON files. Their actual schema is a direct ID-to-label-list object and a direct split-name-to-ID-list object, respectively; there are no `labels` or `splits` wrappers:
101
+
102
+ ```python
103
+ import json
104
+ from huggingface_hub import hf_hub_download
105
+
106
+ def metadata_path(name):
107
+ return hf_hub_download(repo, "data/accepted/wos-11967/" + name,
108
+ repo_type="dataset", token=True)
109
+
110
+ with open(metadata_path("labels.json"), encoding="utf-8") as handle:
111
+ labels = json.load(handle)
112
+ with open(metadata_path("splits.json"), encoding="utf-8") as handle:
113
+ splits = json.load(handle)
114
+ membership = {doc_id: split for split, ids in splits.items() for doc_id in ids}
115
+ annotated = corpus.map(lambda row: {"labels": labels[row["id"]],
116
+ "research_split": membership[row["id"]]})
117
+ fit = annotated.filter(lambda row: row["research_split"] == "fit")
118
+ ```
119
+
120
+ For offline access, obtain the complete package including actual LFS contents and set `HF_DATASETS_OFFLINE=1` and `HF_HUB_OFFLINE=1` before starting Python. Use a writable cache:
121
+
122
+ ```python
123
+ import json
124
+ from pathlib import Path
125
+ from datasets import load_dataset
126
+
127
+ package = Path("/path/to/WOS-11967")
128
+ corpus = load_dataset(str(package), "noow", split="corpus",
129
+ cache_dir="/writable/cache")
130
+ bow = load_dataset(str(package), "bow", split="corpus",
131
+ cache_dir="/writable/cache")
132
+ with (package / "data/accepted/wos-11967/labels.json").open(encoding="utf-8") as handle:
133
+ labels = json.load(handle)
134
+ with (package / "data/accepted/wos-11967/splits.json").open(encoding="utf-8") as handle:
135
+ splits = json.load(handle)
136
+ membership = {doc_id: split for split, ids in splits.items() for doc_id in ids}
137
+ fit = corpus.filter(lambda row: membership[row["id"]] == "fit")
138
+ ```
139
+
140
+ An explicit CSV reader is also available:
141
+ `load_dataset("csv", data_files={"corpus": str(package / "data/noow.csv")}, split="corpus", cache_dir="/writable/cache")`.
142
+ For independent Python CSV inspection, raise `csv.field_size_limit` when needed for long bodies.
143
+
144
+ ## Accepted files and integrity
145
+
146
+ The byte-preserving accepted tree totals **537,238,307 bytes** before adding export CSVs. NOOW CSV is **28,197,299 bytes** and BOW CSV is **26,653,958 bytes**.
147
+
148
+ All 34 files from the accepted source subtree are preserved byte for byte under `data/accepted/`, including the original nested `wos-11967/` directory. Root accepted files include documents, audit, config, spec, diagnostics, manifest, checksum manifest and TF-IDF bank. The nested directory retains labels, splits, vocabulary, eligible labels, dictionary exports/native dictionary and per-split prepared/model VW, occurrences, summaries and chains. Saved machine paths are provenance, not loading requirements.
149
+
150
+ [EXPORT_PROVENANCE.json](EXPORT_PROVENANCE.json) records each original file size/hash, input source pins, the pinned source manifest digest, verbatim source README identity, conversion rules and both CSV sizes/hashes. The original inner checksum manifests are unchanged. Root [SHA256SUMS](SHA256SUMS) covers every package file except itself and Git internals; run `sha256sum -c SHA256SUMS` from this directory. Git LFS attributes apply to CSV, JSONL, VW and native dictionaries; small JSON metadata and cards remain ordinary Git files.
151
+
152
+ ## Rights, limitations and citation
153
+
154
+ The [Mendeley release, version 6](https://data.mendeley.com/datasets/9rw3vkcfy4/6) declares CC BY 4.0. The verbatim [SOURCE_README.txt](SOURCE_README.txt) retains Copyright (c) 2017 Kamran Kowsari and the permission notice requiring the copyright and permission notices in copies or substantial portions. Preserve those notices and cite the source. The release license is not a blanket guarantee that abstracts or other third-party content have no additional rights.
155
+
156
+ These local packages are intended for private research storage; remote visibility has not been verified or changed. Private storage does not supply redistribution permission. Labels and topic distributions reflect source selection, historical coverage, class imbalance and automatic preprocessing. Family grouping limits known leakage but does not establish that every semantic duplicate was detected. Normalized representations do not guarantee current facts, absence of personal information or suitability for downstream decisions.
157
+
158
+ Kamran Kowsari, Donald E. Brown, Mojtaba Heidarysafa, Kiana Jafari Meimandi, Matthew S. Gerber and Laura E. Barnes (2017), *HDLTex: Hierarchical Deep Learning for Text Classification*, IEEE ICMLA.
159
+
160
+ Report this TopicNet derived population and the source manifest hash in [EXPORT_PROVENANCE.json](EXPORT_PROVENANCE.json). The [research repository](https://github.com/Alvant/Alekseev2026IntraTextCoherence) contains the [source adapters and preprocessing](https://github.com/Alvant/Alekseev2026IntraTextCoherence/blob/master/work/wintra/lib/dataset_adapters.py) and [model input preparation](https://github.com/Alvant/Alekseev2026IntraTextCoherence/blob/master/work/wintra/experiments/prepare_model_inputs.py). It is currently private and access-controlled; viewing those links requires permission. Code is linked rather than bundled, and this package does not promise public standalone reproducibility.
data/bow.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4e27d8e46bad08061568222a0931b963f6ad637074b1b227de095af05757d339
3
+ size 26653958
data/noow.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:101d1c8a690ae0fe1b68491cb144ff42114280e12770f8a332647106bd12580e
3
+ size 28197299