Vasily Alexeev commited on
Commit
483b98e
·
1 Parent(s): 2654347
Files changed (5) hide show
  1. README.md +23 -51
  2. SHA256SUMS +7 -0
  3. SOURCE_README.txt +71 -0
  4. data/labels.json +0 -0
  5. data/splits.json +0 -0
README.md CHANGED
@@ -27,13 +27,14 @@ configs:
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
  | --- | ---: |
@@ -71,53 +72,28 @@ Retained class supports come directly from `audit.json.output_rows`:
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
@@ -129,25 +105,21 @@ 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
 
@@ -157,4 +129,4 @@ These local packages are intended for private research storage; remote visibilit
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.
 
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
 
31
+ ## Population, labels and splits
32
 
33
+ 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. Exported labels use only Y.txt, the authoritative global class. The original source hierarchy has these ambiguities: 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. The original YL1.txt/YL2.txt files and per-document hierarchy metadata are not included in this package. Y values are not repaired and class names are not invented.
34
 
35
+ 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`.
36
+
37
+ Retained class counts:
38
 
39
  | Label | Documents |
40
  | --- | ---: |
 
72
  | 31 | 335 |
73
  | 32 | 301 |
74
 
 
 
 
 
 
75
 
76
+ ## Representations and preprocessing
77
 
78
+ 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.
79
 
80
+ Each UTF-8 CSV has exactly `id,raw_text,vw_text` columns and lexicographically ordered document IDs. `raw_text` contains the source abstract. The VW string starts with the document ID followed by only `|@word`. There is no title namespace. Labels are separate from the VW string. `noow` preserves normalized token occurrences in order; `bow` counts the same tokens independently per namespace as `token:count`, with lexicographic token order. The full prepared token sequences are included.
81
 
82
+ NOOW means occurrence order after preprocessing, not untouched or reversible prose. English preprocessing uses 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. Names are not masked.
83
 
84
+ ## Loading and metadata
85
 
86
+ The default configuration is `noow`; `bow` contains aggregated counts. Both expose the complete population as the Hugging Face split `corpus`. Labels and the stored fit/calibration/validation memberships are auxiliary files, joined by document ID. `data/labels.json` directly maps each string ID to a list of string labels; `data/splits.json` directly maps each split name to an ordered ID list.
87
 
88
  ```python
89
  from datasets import load_dataset
90
 
91
  repo = "TopicNet/WOS-11967"
92
+ corpus = load_dataset(repo, "noow", split="corpus")
93
+ bow = load_dataset(repo, "bow", split="corpus")
94
  ```
95
 
96
+ For local use, obtain the complete package including actual Git LFS contents. Set `HF_DATASETS_OFFLINE=1` and `HF_HUB_OFFLINE=1` before Python starts and choose a writable cache directory:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
97
 
98
  ```python
99
  import json
 
105
  cache_dir="/writable/cache")
106
  bow = load_dataset(str(package), "bow", split="corpus",
107
  cache_dir="/writable/cache")
108
+ with (package / "data/labels.json").open(encoding="utf-8") as handle:
109
  labels = json.load(handle)
110
+ with (package / "data/splits.json").open(encoding="utf-8") as handle:
111
  splits = json.load(handle)
112
  membership = {doc_id: split for split, ids in splits.items() for doc_id in ids}
113
+ annotated = corpus.map(lambda row: {"labels": labels[row["id"]],
114
+ "research_split": membership[row["id"]]})
115
+ fit = annotated.filter(lambda row: row["research_split"] == "fit")
116
  ```
117
 
118
+ For remote metadata, download `data/labels.json` and `data/splits.json` with `huggingface_hub.hf_hub_download(repo, filename, repo_type="dataset")`, then read the same direct mappings. Private repositories require authorized authentication.
 
 
 
 
 
 
119
 
120
+ ## Files and integrity
121
 
122
+ The package contains this card, unchanged `.gitattributes`, [SHA256SUMS](SHA256SUMS), two CSV representations and [labels](data/labels.json)/[splits](data/splits.json) metadata, plus the verbatim source README. Run `sha256sum -c SHA256SUMS` from the package root to check every publication file except the checksum list itself. The representation files retain their original generated bytes.
123
 
124
  ## Rights, limitations and citation
125
 
 
129
 
130
  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.
131
 
132
+ When citing this preparation, identify its retained population and repository revision as well as the source publication.
SHA256SUMS ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ 947f03cf79a99d7f9061220c575021c918ae95f64ab75c4112917be804fb51cd .gitattributes
2
+ 303bf68fc20feb4b23046647f098f9d0533c65c7b4710eac8588283ff92bc5cd README.md
3
+ 6da4ab1e624c4ef61c46600d727770f873ff4db3c15541fb481e7af8a715c0ec SOURCE_README.txt
4
+ 4e27d8e46bad08061568222a0931b963f6ad637074b1b227de095af05757d339 data/bow.csv
5
+ 138c7a5ed0ae4787afdbd306a7fd2732b392ad8db65c22e7ce312c33a178470c data/labels.json
6
+ 101d1c8a690ae0fe1b68491cb144ff42114280e12770f8a332647106bd12580e data/noow.csv
7
+ 608c14b244f02df40b897dfc7de3411352079bed0a507f2fd8ccf70b9c5996d7 data/splits.json
SOURCE_README.txt ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright (c) 2017 Kamran Kowsari
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this dataset and associated documentation files (the "Dataset"), to deal
5
+ in the dataset without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Dataset, and to permit persons to whom the dataset is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Dataset.
12
+
13
+ If you use this dataset please cite:
14
+ Referenced paper: HDLTex: Hierarchical Deep Learning for Text Classification
15
+
16
+
17
+ Description of Dataset:
18
+
19
+ Here is three datasets which include WOS-11967 , WOS-46985, and WOS-5736
20
+ Each folder contains:
21
+ -X.txt
22
+ -Y.txt
23
+ -YL1.txt
24
+ -YL2.txt
25
+
26
+ X is input data that include text sequences
27
+ Y is target value
28
+ YL1 is target value of level one (parent label)
29
+ YL2 is target value of level one (child label)
30
+
31
+ Meta-data:
32
+ This folder contain on data file as following attribute:
33
+ Y1 Y2 Y Domain area keywords Abstract
34
+
35
+ Abstract is input data that include text sequences of 46,985 published paper
36
+ Y is target value
37
+ YL1 is target value of level one (parent label)
38
+ YL2 is target value of level one (child label)
39
+ Domain is majaor domain which include 7 labales: {Computer Science,Electrical Engineering, Psychology, Mechanical Engineering,Civil Engineering, Medical Science, biochemistry}
40
+ area is subdomain or area of the paper such as CS-> computer graphics which contain 134 labels.
41
+ keywords : is authors keyword of the papers
42
+
43
+
44
+
45
+
46
+ Web of Science Dataset WOS-11967
47
+ -This dataset contains 11,967 documents with 35 categories which include 7 parents categories.
48
+
49
+
50
+ Web of Science Dataset WOS-46985
51
+ -This dataset contains 46,985 documents with 134 categories which include 7 parents categories.
52
+
53
+
54
+ Web of Science Dataset WOS-5736
55
+ -This dataset contains 5,736 documents with 11 categories which include 3 parents categories.
56
+
57
+
58
+
59
+
60
+
61
+ Referenced paper: HDLTex: Hierarchical Deep Learning for Text Classification
62
+
63
+ Bib:
64
+
65
+ @inproceedings{kowsari2017HDLTex,
66
+ title={HDLTex: Hierarchical Deep Learning for Text Classification},
67
+ author={Kowsari, Kamran and Brown, Donald E and Heidarysafa, Mojtaba and Jafari Meimandi, Kiana and and Gerber, Matthew S and Barnes, Laura E},
68
+ booktitle={Machine Learning and Applications (ICMLA), 2017 16th IEEE International Conference on},
69
+ year={2017},
70
+ organization={IEEE}
71
+ }
data/labels.json ADDED
The diff for this file is too large to render. See raw diff
 
data/splits.json ADDED
The diff for this file is too large to render. See raw diff