Datasets:
Tasks:
Text Classification
Modalities:
Text
Formats:
csv
Languages:
English
Size:
10K - 100K
ArXiv:
License:
Vasily Alexeev commited on
Commit ·
483b98e
1
Parent(s): 2654347
add info
Browse files- README.md +23 -51
- SHA256SUMS +7 -0
- SOURCE_README.txt +71 -0
- data/labels.json +0 -0
- 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 |
-
|
| 33 |
|
| 34 |
-
|
| 35 |
|
| 36 |
-
|
|
|
|
|
|
|
| 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 |
-
|
| 81 |
|
| 82 |
-
The
|
| 83 |
|
| 84 |
-
|
| 85 |
|
| 86 |
-
|
| 87 |
|
| 88 |
-
## Loading and metadata
|
| 89 |
|
| 90 |
-
|
| 91 |
|
| 92 |
```python
|
| 93 |
from datasets import load_dataset
|
| 94 |
|
| 95 |
repo = "TopicNet/WOS-11967"
|
| 96 |
-
corpus = load_dataset(repo, "noow", split="corpus"
|
| 97 |
-
bow = load_dataset(repo, "bow", split="corpus"
|
| 98 |
```
|
| 99 |
|
| 100 |
-
|
| 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/
|
| 133 |
labels = json.load(handle)
|
| 134 |
-
with (package / "data/
|
| 135 |
splits = json.load(handle)
|
| 136 |
membership = {doc_id: split for split, ids in splits.items() for doc_id in ids}
|
| 137 |
-
|
|
|
|
|
|
|
| 138 |
```
|
| 139 |
|
| 140 |
-
|
| 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 |
-
|
| 149 |
|
| 150 |
-
|
| 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 |
-
|
|
|
|
| 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
|
|
|