Vasily Alexeev commited on
Commit
58b8c16
·
1 Parent(s): b7065ae
.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 CHANGED
@@ -1,3 +1,250 @@
1
  ---
2
- license: mit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-46985
27
+
28
+ This TopicNet preparation contains 46,972 retained English scientific abstracts from the 46,985-row WOS-46985 source, with 134 observed global classes and 7 parent codes. It provides raw abstracts, two normalized text representations, labels, the original numeric hierarchy and generated research splits. It is a derived preparation of the [Web of Science dataset, version 6](https://data.mendeley.com/datasets/9rw3vkcfy4/6), DOI [10.17632/9rw3vkcfy4.6](https://doi.org/10.17632/9rw3vkcfy4.6).
29
+
30
+ ## Population, labels and splits
31
+
32
+ Raw duplicate identity is source abstract text after casefold and whitespace collapse. Raw duplicates are checked first, then identical ordered lemma sequences: a same-class group keeps its smallest document ID, while a group with conflicting global classes is quarantined in full. Documents with empty normalized sequences are removed. The removal counts are 0 same-class raw duplicates, 0 rows in raw conflicts, 13 same-class lemma duplicates, 0 rows in lemma conflicts and 0 empty normalized documents; 13 rows are removed in total.
33
+
34
+ Near duplicates are grouped, not deleted: body five-token shingle Jaccard similarity ≥0.9 identifies 18 pairs among retained documents. Families combine the raw/lemma duplicate relations and these near-duplicate links. Each family stays in one split. Iterative multilabel stratification uses seeds 20260824 and 20260825, targeting approximately 60%/20%/20%. These are newly generated research splits, not official source train/test splits: **fit 28,181, calibration 9,366, validation 9,425**. They are disjoint and exhaustive. The Hugging Face split `corpus` contains every retained document; it is not `fit`.
35
+
36
+ `Y.txt` supplies the authoritative global class, stored as a string in `data/labels.json`. `YL1.txt` supplies the parent code and `YL2.txt` the local child code, which must be interpreted together with its parent. The observed source codes have 134 global classes and seven parent codes. The source hierarchy is inconsistent: global classes 40 and 43 each occur under parents 2 and 5, and global class 76 occurs under parents 4 and 5. These source values are preserved. No class names are inferred and numeric classes are not assumed comparable across WOS subsets.
37
+
38
+ Retained class counts:
39
+
40
+ | Global class | Documents |
41
+ | --- | ---: |
42
+ | 0 | 432 |
43
+ | 1 | 398 |
44
+ | 2 | 445 |
45
+ | 3 | 387 |
46
+ | 4 | 379 |
47
+ | 5 | 412 |
48
+ | 6 | 415 |
49
+ | 7 | 443 |
50
+ | 8 | 377 |
51
+ | 9 | 416 |
52
+ | 10 | 403 |
53
+ | 11 | 43 |
54
+ | 12 | 402 |
55
+ | 13 | 379 |
56
+ | 14 | 425 |
57
+ | 15 | 392 |
58
+ | 16 | 365 |
59
+ | 17 | 447 |
60
+ | 18 | 44 |
61
+ | 19 | 375 |
62
+ | 20 | 54 |
63
+ | 21 | 426 |
64
+ | 22 | 417 |
65
+ | 23 | 392 |
66
+ | 24 | 413 |
67
+ | 25 | 646 |
68
+ | 26 | 378 |
69
+ | 27 | 148 |
70
+ | 28 | 276 |
71
+ | 29 | 274 |
72
+ | 30 | 344 |
73
+ | 31 | 429 |
74
+ | 32 | 419 |
75
+ | 33 | 389 |
76
+ | 34 | 397 |
77
+ | 35 | 391 |
78
+ | 36 | 394 |
79
+ | 37 | 387 |
80
+ | 38 | 350 |
81
+ | 39 | 387 |
82
+ | 40 | 510 |
83
+ | 41 | 376 |
84
+ | 42 | 365 |
85
+ | 43 | 373 |
86
+ | 44 | 368 |
87
+ | 45 | 296 |
88
+ | 46 | 389 |
89
+ | 47 | 404 |
90
+ | 48 | 395 |
91
+ | 49 | 362 |
92
+ | 50 | 416 |
93
+ | 51 | 360 |
94
+ | 52 | 371 |
95
+ | 53 | 402 |
96
+ | 54 | 346 |
97
+ | 55 | 420 |
98
+ | 56 | 386 |
99
+ | 57 | 387 |
100
+ | 58 | 361 |
101
+ | 59 | 289 |
102
+ | 60 | 335 |
103
+ | 61 | 410 |
104
+ | 62 | 423 |
105
+ | 63 | 384 |
106
+ | 64 | 441 |
107
+ | 65 | 447 |
108
+ | 66 | 395 |
109
+ | 67 | 148 |
110
+ | 68 | 418 |
111
+ | 69 | 384 |
112
+ | 70 | 412 |
113
+ | 71 | 373 |
114
+ | 72 | 309 |
115
+ | 73 | 357 |
116
+ | 74 | 368 |
117
+ | 75 | 321 |
118
+ | 76 | 264 |
119
+ | 77 | 317 |
120
+ | 78 | 262 |
121
+ | 79 | 294 |
122
+ | 80 | 309 |
123
+ | 81 | 339 |
124
+ | 82 | 260 |
125
+ | 83 | 335 |
126
+ | 84 | 350 |
127
+ | 85 | 198 |
128
+ | 86 | 237 |
129
+ | 87 | 353 |
130
+ | 88 | 327 |
131
+ | 89 | 97 |
132
+ | 90 | 290 |
133
+ | 91 | 222 |
134
+ | 92 | 372 |
135
+ | 93 | 341 |
136
+ | 94 | 129 |
137
+ | 95 | 291 |
138
+ | 96 | 288 |
139
+ | 97 | 182 |
140
+ | 98 | 358 |
141
+ | 99 | 315 |
142
+ | 100 | 246 |
143
+ | 101 | 336 |
144
+ | 102 | 90 |
145
+ | 103 | 305 |
146
+ | 104 | 267 |
147
+ | 105 | 254 |
148
+ | 106 | 371 |
149
+ | 107 | 178 |
150
+ | 108 | 253 |
151
+ | 109 | 197 |
152
+ | 110 | 359 |
153
+ | 111 | 301 |
154
+ | 112 | 320 |
155
+ | 113 | 339 |
156
+ | 114 | 343 |
157
+ | 115 | 298 |
158
+ | 116 | 148 |
159
+ | 117 | 128 |
160
+ | 118 | 202 |
161
+ | 119 | 188 |
162
+ | 120 | 118 |
163
+ | 121 | 257 |
164
+ | 122 | 365 |
165
+ | 123 | 142 |
166
+ | 124 | 361 |
167
+ | 125 | 746 |
168
+ | 126 | 566 |
169
+ | 127 | 622 |
170
+ | 128 | 652 |
171
+ | 129 | 566 |
172
+ | 130 | 576 |
173
+ | 131 | 749 |
174
+ | 132 | 699 |
175
+ | 133 | 509 |
176
+
177
+ ## Representations and preprocessing
178
+
179
+ The aligned source files are `WOS46985/X.txt`, `Y.txt`, `YL1.txt` and `YL2.txt` in `WebOfScience.zip`. Stable IDs are `wos46985_<six-digit-zero-based-source-row>`. `raw_text` is the complete source `X.txt` line without its line terminator. There is no title field.
180
+
181
+ Both UTF-8 CSV files have exactly `id,raw_text,vw_text` columns and lexicographically ordered IDs. The VW string begins with the document ID and contains only the `|@word` namespace; labels are separate metadata. In `noow`, normalized token occurrences retain their order. In `bow`, the same tokens are represented as `token:count` with lexicographically sorted tokens. Neither representation truncates the prepared token sequence.
182
+
183
+ NOOW means occurrence order after normalization, not original or reversible prose. English preprocessing uses Python 3.11.15, NLTK 3.9.2 and NLTK-data commit `550b6625bcef1f2abff2ff770a5a0d272c9c6b2a`: WordPunctTokenizer, lowercase, lowercased input token length at least 2 before POS tagging and lemmatization, `averaged_perceptron_tagger_eng`, WordNet POS mapping J/V/N/R with noun fallback, English stopword removal and `lemma.isalpha()` filtering. Output lemmas are not filtered by length and can contain one character. Names are not masked. Near-duplicate shingles use lowercased WordPunct body tokens of length at least two containing letters only.
184
+
185
+ ## Loading and metadata
186
+
187
+ The default configuration is `noow`; the alternative is `bow`. Both expose the full retained population as `corpus`:
188
+
189
+ ```python
190
+ from datasets import load_dataset
191
+
192
+ repo = "TopicNet/WOS-46985"
193
+ corpus = load_dataset(repo, "noow", split="corpus")
194
+ bow = load_dataset(repo, "bow", split="corpus")
195
+ ```
196
+
197
+ Obtain the complete local package, including actual Git LFS contents. Set `HF_DATASETS_OFFLINE=1` and `HF_HUB_OFFLINE=1` before Python starts for offline loading, and choose a writable cache directory:
198
+
199
+ ```python
200
+ import json
201
+ from pathlib import Path
202
+ from datasets import load_dataset
203
+
204
+ package = Path("/path/to/WOS-46985")
205
+ corpus = load_dataset(str(package), "noow", split="corpus",
206
+ cache_dir="/writable/cache")
207
+ bow = load_dataset(str(package), "bow", split="corpus",
208
+ cache_dir="/writable/cache")
209
+ labels = json.loads((package / "data/labels.json").read_text(encoding="utf-8"))
210
+ splits = json.loads((package / "data/splits.json").read_text(encoding="utf-8"))
211
+ hierarchy = json.loads((package / "data/hierarchy.json").read_text(encoding="utf-8"))
212
+ membership = {doc_id: split for split, ids in splits.items() for doc_id in ids}
213
+ annotated = corpus.map(lambda row: {"labels": labels[row["id"]],
214
+ "source_hierarchy": hierarchy[row["id"]],
215
+ "research_split": membership[row["id"]]})
216
+ fit = annotated.filter(lambda row: row["research_split"] == "fit")
217
+ ```
218
+
219
+ `labels.json` directly maps each ID to `[Y]`, a list containing one string class. `splits.json` directly maps `fit`, `calibration` and `validation` to ordered ID arrays. `hierarchy.json` directly maps each ID to `{"Y": "...", "YL1": "...", "YL2": "..."}`, preserving the three source codes as strings. Join all metadata by ID, not by JSON position.
220
+
221
+ For remote metadata, download each auxiliary file and use the same ID joins:
222
+
223
+ ```python
224
+ import json
225
+ from huggingface_hub import hf_hub_download
226
+
227
+ metadata = {}
228
+ for name in ("labels", "splits", "hierarchy"):
229
+ path = hf_hub_download(repo, f"data/{name}.json", repo_type="dataset")
230
+ with open(path, encoding="utf-8") as handle:
231
+ metadata[name] = json.load(handle)
232
+ ```
233
+
234
+ ## Related datasets and overlap
235
+
236
+ Related preparations are [TopicNet/WOS-5736](https://huggingface.co/datasets/TopicNet/WOS-5736), [TopicNet/WOS-11967](https://huggingface.co/datasets/TopicNet/WOS-11967) and [TopicNet/WOS-46985](https://huggingface.co/datasets/TopicNet/WOS-46985). They are not independent datasets. Comparing the original source abstracts after casefold and whitespace collapse gives 5,736 shared abstract identities between WOS-5736 and WOS-46985, 11,268 between WOS-11967 and WOS-46985, and 1,708 between WOS-5736 and WOS-11967. These counts describe source abstracts, not final retained populations. WOS-11967 is not entirely contained in WOS-46985 under this comparison. Research splits are generated independently for each preparation; combining subsets for training and evaluation can therefore leak shared documents across splits.
237
+
238
+ ## Files and integrity
239
+
240
+ The package contains `.gitattributes`, this card, [SHA256SUMS](SHA256SUMS), the verbatim [SOURCE_README.txt](SOURCE_README.txt), `data/noow.csv`, `data/bow.csv`, [labels](data/labels.json), [splits](data/splits.json) and [hierarchy](data/hierarchy.json). Run `sha256sum -c SHA256SUMS` from the package root to check every publication file except the checksum list itself. Git internals are excluded from the list.
241
+
242
+ ## Rights, limitations and citation
243
+
244
+ The [official version 6 release](https://data.mendeley.com/datasets/9rw3vkcfy4/6) declares CC BY 4.0. [SOURCE_README.txt](SOURCE_README.txt) is preserved verbatim, including Copyright (c) 2017 Kamran Kowsari, the permission notice and the request to cite HDLTex. Preserve the copyright and permission notices in copies or substantial portions and cite the source. The release license does not establish that all abstracts or other third-party content are free of additional rights.
245
+
246
+ Source selection, historical coverage and class imbalance limit generalization. Source hierarchy codes are preserved without inferred corrections. Grouping limits known duplicate leakage but does not establish that every semantic duplicate was detected. Normalization changes text and does not guarantee current facts, absence of personal information or suitability for downstream decisions.
247
+
248
+ 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*](https://arxiv.org/abs/1709.08267), IEEE ICMLA. DOI: [10.1109/ICMLA.2017.0-134](https://doi.org/10.1109/ICMLA.2017.0-134).
249
+
250
+ When citing this preparation, identify its retained population and repository revision as well as the source publication.
SHA256SUMS ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ 9e75dd981de037ec3769f24f790e126bc5a160b6871f510214e68dc70649aeeb .gitattributes
2
+ e888c4293f207a1abe0e1e08b736561fed5829c4325d0618e2e7f9c9ff329fa7 README.md
3
+ 6da4ab1e624c4ef61c46600d727770f873ff4db3c15541fb481e7af8a715c0ec SOURCE_README.txt
4
+ 039c213b7d7cc3dd2256418443bfc23a8a3e927eadd87ffe5ac08a34f692aebd data/bow.csv
5
+ 1f714d3a953c7e3517f647f431d9a5d75f429b05574e66336166f2d5476a1f47 data/hierarchy.json
6
+ 4ccc24e6f281cb85f6db04665a46d82072bdfb72a8485a814fd8182722b50a5d data/labels.json
7
+ dba99ba99feaaf4de483969b64b5cd3bc1dca456cdcce367811517f69d251eff data/noow.csv
8
+ 4b10199d6da28e55713e324a4d9ef0264b6c6b131232d684649acf99e0132ee8 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/bow.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:039c213b7d7cc3dd2256418443bfc23a8a3e927eadd87ffe5ac08a34f692aebd
3
+ size 106747458
data/hierarchy.json ADDED
The diff for this file is too large to render. See raw diff
 
data/labels.json ADDED
The diff for this file is too large to render. See raw diff
 
data/noow.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dba99ba99feaaf4de483969b64b5cd3bc1dca456cdcce367811517f69d251eff
3
+ size 113457365
data/splits.json ADDED
The diff for this file is too large to render. See raw diff