Datasets:
Tasks:
Text Classification
Modalities:
Text
Formats:
csv
Languages:
English
Size:
10K - 100K
License:
Vasily Alexeev commited on
Commit ·
e15f04f
1
Parent(s): 2f15b2f
add base data
Browse files- .gitattributes +4 -0
- README.md +136 -0
- data/bow.csv +3 -0
- 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,136 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
# SciNews
|
| 27 |
+
|
| 28 |
+
This TopicNet derived preparation contains the full retained population of 41,854 scientific news bodies with nine source labels, from SciNews by Dongqi Liu, Yifan Wang, Jia Loy and Vera Demberg. It is not the historical 5,000-document screening sample. Original scholarly article text and abstracts are not substituted for news bodies. 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. Same-label duplicates retain the lexicographically smallest ID. Two raw duplicate groups remove two documents; eight cross-label conflict groups quarantine 16 documents. There are no identical lemma-sequence duplicate groups. Source URL and normalized DOI families are joined before splitting; one near-duplicate pair joins families without deleting its members. Original source train/test/val counts are 33,497/4,188/4,187 and are provenance, not the research memberships.
|
| 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 25,109, calibration 8,370, validation 8,375**. 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 |
+
| Biology | 8571 |
|
| 41 |
+
| Chemistry | 3381 |
|
| 42 |
+
| Computer | 1142 |
|
| 43 |
+
| Earth | 3856 |
|
| 44 |
+
| Medicine | 15098 |
|
| 45 |
+
| Nano | 2638 |
|
| 46 |
+
| Other | 1164 |
|
| 47 |
+
| Physics | 4851 |
|
| 48 |
+
| Space | 1153 |
|
| 49 |
+
|
| 50 |
+
## Representations and pinned preparation
|
| 51 |
+
|
| 52 |
+
The source adapter maps `News_Body` to raw_text, `News_Title` to separate title metadata and `Topic` to the external label. IDs are `scinews_<original-split>_<six-digit-row-index>`; their original split component does not imply research membership.
|
| 53 |
+
|
| 54 |
+
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 `|@title` followed by `|@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.
|
| 55 |
+
|
| 56 |
+
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.
|
| 57 |
+
|
| 58 |
+
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.
|
| 59 |
+
|
| 60 |
+
`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. 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/scinews/*-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.
|
| 61 |
+
|
| 62 |
+
`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.
|
| 63 |
+
|
| 64 |
+
## Loading and metadata joins
|
| 65 |
+
|
| 66 |
+
Authenticate with an account that has access if the intended remote repository is private:
|
| 67 |
+
|
| 68 |
+
```python
|
| 69 |
+
from datasets import load_dataset
|
| 70 |
+
|
| 71 |
+
repo = "TopicNet/SciNews"
|
| 72 |
+
corpus = load_dataset(repo, "noow", split="corpus", token=True)
|
| 73 |
+
bow = load_dataset(repo, "bow", split="corpus", token=True)
|
| 74 |
+
```
|
| 75 |
+
|
| 76 |
+
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:
|
| 77 |
+
|
| 78 |
+
```python
|
| 79 |
+
import json
|
| 80 |
+
from huggingface_hub import hf_hub_download
|
| 81 |
+
|
| 82 |
+
def metadata_path(name):
|
| 83 |
+
return hf_hub_download(repo, "data/accepted/scinews/" + name,
|
| 84 |
+
repo_type="dataset", token=True)
|
| 85 |
+
|
| 86 |
+
with open(metadata_path("labels.json"), encoding="utf-8") as handle:
|
| 87 |
+
labels = json.load(handle)
|
| 88 |
+
with open(metadata_path("splits.json"), encoding="utf-8") as handle:
|
| 89 |
+
splits = json.load(handle)
|
| 90 |
+
membership = {doc_id: split for split, ids in splits.items() for doc_id in ids}
|
| 91 |
+
annotated = corpus.map(lambda row: {"labels": labels[row["id"]],
|
| 92 |
+
"research_split": membership[row["id"]]})
|
| 93 |
+
fit = annotated.filter(lambda row: row["research_split"] == "fit")
|
| 94 |
+
```
|
| 95 |
+
|
| 96 |
+
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:
|
| 97 |
+
|
| 98 |
+
```python
|
| 99 |
+
import json
|
| 100 |
+
from pathlib import Path
|
| 101 |
+
from datasets import load_dataset
|
| 102 |
+
|
| 103 |
+
package = Path("/path/to/SciNews")
|
| 104 |
+
corpus = load_dataset(str(package), "noow", split="corpus",
|
| 105 |
+
cache_dir="/writable/cache")
|
| 106 |
+
bow = load_dataset(str(package), "bow", split="corpus",
|
| 107 |
+
cache_dir="/writable/cache")
|
| 108 |
+
with (package / "data/accepted/scinews/labels.json").open(encoding="utf-8") as handle:
|
| 109 |
+
labels = json.load(handle)
|
| 110 |
+
with (package / "data/accepted/scinews/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 |
+
fit = corpus.filter(lambda row: membership[row["id"]] == "fit")
|
| 114 |
+
```
|
| 115 |
+
|
| 116 |
+
An explicit CSV reader is also available:
|
| 117 |
+
`load_dataset("csv", data_files={"corpus": str(package / "data/noow.csv")}, split="corpus", cache_dir="/writable/cache")`.
|
| 118 |
+
For independent Python CSV inspection, raise `csv.field_size_limit` when needed for long bodies.
|
| 119 |
+
|
| 120 |
+
## Accepted files and integrity
|
| 121 |
+
|
| 122 |
+
The byte-preserving accepted tree totals **5,428,036,902 bytes** before adding export CSVs. NOOW CSV is **287,965,748 bytes** and BOW CSV is **259,061,878 bytes**.
|
| 123 |
+
|
| 124 |
+
All 34 files from the accepted source subtree are preserved byte for byte under `data/accepted/`, including the original nested `scinews/` 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.
|
| 125 |
+
|
| 126 |
+
[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.
|
| 127 |
+
|
| 128 |
+
## Rights, limitations and citation
|
| 129 |
+
|
| 130 |
+
The [official dataset card](https://huggingface.co/datasets/dongqi-me/SciNews) declares CC BY 4.0 and also imposes gated access terms restricting use to non-commercial academic research or education. Both statements are retained in the verbatim [SOURCE_README.md](SOURCE_README.md); the CC BY tag does not erase the gate conditions. Their applicability to redistribution needs clarification, and redistribution remains unresolved. News articles can carry third-party copyright and other obligations.
|
| 131 |
+
|
| 132 |
+
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.
|
| 133 |
+
|
| 134 |
+
Dongqi Liu, Yifan Wang, Jia Loy and Vera Demberg (2024), [*SciNews: From Scholarly Complexities to Public Narratives – A Dataset for Scientific News Report Generation*](https://aclanthology.org/2024.lrec-main.1258/), LREC-COLING. See the [project page](https://dongqi.me/projects/SciNews).
|
| 135 |
+
|
| 136 |
+
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:a37cd1f1cb47681e9a0d8a2054a56844fb1a9738eddb67668de22d06d78231d0
|
| 3 |
+
size 259061878
|
data/noow.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:40df21605e7e4dd6a8f58a49938b252329cb78781c933645d0dc5ff605078c9c
|
| 3 |
+
size 287965748
|