Vasily Alexeev commited on
Commit ·
79f3c83
1
Parent(s): 602717d
add full text in noow
Browse files- README.md +88 -2
- SHA256SUMS +8 -0
- data/document-correspondence.json +0 -0
- data/noow/postnauka.csv.gz +2 -2
README.md
CHANGED
|
@@ -36,7 +36,67 @@ tags:
|
|
| 36 |
|
| 37 |
# PostNauka
|
| 38 |
|
| 39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
* D — number of documents
|
| 42 |
* <modality name> W — modality dictionary size (number of unique tokens)
|
|
@@ -64,5 +124,31 @@ Information about document lengths in modality tokens:
|
|
| 64 |
| 75% | 5 | 67 | 2 | 15 | 563 | 6 | 1 | 5 | 52 | 2 | 15 | 343 | 6 | 1 |
|
| 65 |
| max | 22 | 778 | 69 | 28 | 4892 | 18 | 4 | 22 | 444 | 27 | 28 | 2277 | 18 | 4 |
|
| 66 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
|
| 68 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
# PostNauka
|
| 38 |
|
| 39 |
+
## Origin and credits
|
| 40 |
+
|
| 41 |
+
This Russian science communication corpus originates from [PostNauka](https://postnauka.ru/), its authors and editors. The historical corpus was received by the dataset owner with the description “publications up to February 2017”; individual publication dates have not been verified for this export.
|
| 42 |
+
|
| 43 |
+
Related research includes N. A. Chirkova and K. V. Vorontsov, *Additive Regularization for Hierarchical Multimodal Topic Modeling*, Journal of Machine Learning and Data Analysis, 2(2), 187–200 (2016), [DOI: 10.21469/22233792.2.2.05](https://doi.org/10.21469/22233792.2.2.05), [primary PDF](https://publications.hse.ru/pubs/share/direct/210878218.pdf). That paper describes an earlier PostNauka corpus of 1,728 documents; that count must not be substituted for the populations below.
|
| 44 |
+
|
| 45 |
+
The dataset owner also credits Irina V. Efimova's 2017 Master's thesis at Moscow Institute of Physics and Technology, *Иерархическая мультимодальная тематическая модель коллекции научно-популярных текстов* ([thesis link](http://www.machinelearning.ru/wiki/images/2/24/Efimova_Diploma.pdf)). This bibliographic information was supplied by the owner; the linked PDF was unavailable for verification during preparation of this export.
|
| 46 |
+
|
| 47 |
+
## Configurations and text fields
|
| 48 |
+
|
| 49 |
+
Both configurations retain the three columns `id`, `raw_text`, and `vw_text` and the historical row order. `bag-of-words` remains the default.
|
| 50 |
+
|
| 51 |
+
| Configuration | Rows | `raw_text` | `vw_text` |
|
| 52 |
+
|:--|--:|:--|:--|
|
| 53 |
+
| `bag-of-words` | 3,404 | Existing title/snippet display text, unchanged | Existing multimodal BOW features and counts, unchanged |
|
| 54 |
+
| `natural-order-of-words` | 3,446 | Full text from the original cleaned document with the same NOOW ID | Existing natural-order prepared tokens, unchanged |
|
| 55 |
+
|
| 56 |
+
Each NOOW `raw_text` is the corresponding original cleaned file decoded once as UTF-8. Headings, snippets, separators, line breaks and other whitespace are retained. There is no further normalization or inferred character-offset alignment between `raw_text` and prepared `vw_text`.
|
| 57 |
+
|
| 58 |
+
## Reconstructed document correspondence
|
| 59 |
+
|
| 60 |
+
[data/document-correspondence.json](data/document-correspondence.json) contains 3,403 one-to-one BOW-to-NOOW pairs reconstructed with the existing PostNauka adapter. For each BOW document, every NOOW document sharing at least one `@word` token is a candidate. The matcher compares token-set Jaccard scores, accepts a unique maximum without a threshold, and checks the resulting assignments for collisions. There are zero collisions. This is a reproducible token-based reconstruction, not exact human ground truth.
|
| 61 |
+
|
| 62 |
+
BOW document `8.txt` remains unresolved: NOOW documents `7810.txt` and `9419.txt` tie at score `0.2`. The JSON also lists all 43 unmapped NOOW IDs. The two configurations therefore have different populations, and a BOW ID must not be used directly as a NOOW ID.
|
| 63 |
+
|
| 64 |
+
The original `data/noow/topics.json` and `data/noow/topic_documents.json` remain unchanged. They describe the historical reference topic model with 19 topics plus one background topic and use NOOW IDs; any transfer to BOW must pass through the reconstructed mapping and retain the unresolved case.
|
| 65 |
+
|
| 66 |
+
For local, offline use, run this example from the downloaded dataset repository (requires `datasets`):
|
| 67 |
+
|
| 68 |
+
```python
|
| 69 |
+
import json
|
| 70 |
+
from pathlib import Path
|
| 71 |
+
from datasets import load_dataset
|
| 72 |
+
|
| 73 |
+
root = Path(".")
|
| 74 |
+
bow = load_dataset(str(root.resolve()), "bag-of-words", split="train")
|
| 75 |
+
noow = load_dataset(str(root.resolve()), "natural-order-of-words", split="train")
|
| 76 |
+
correspondence = json.loads((root / "data/document-correspondence.json").read_text(encoding="utf-8"))
|
| 77 |
+
mapping = correspondence["bow_to_noow"]
|
| 78 |
+
noow_by_id = {row["id"]: row for row in noow}
|
| 79 |
+
for bow_row in bow:
|
| 80 |
+
noow_id = mapping.get(bow_row["id"])
|
| 81 |
+
if noow_id is None:
|
| 82 |
+
continue # Unresolved BOW document; no match is guessed.
|
| 83 |
+
full_text = noow_by_id[noow_id]["raw_text"]
|
| 84 |
+
# Use full_text alongside bow_row's unchanged multimodal features.
|
| 85 |
+
```
|
| 86 |
+
|
| 87 |
+
## Integrity and provenance
|
| 88 |
+
|
| 89 |
+
[EXPORT_PROVENANCE.json](EXPORT_PROVENANCE.json) pins the immutable original CSVs, all 3,446 full-text files by SHA-256, the canonical inventory hash, the matching identity, the conversion method and the code used. It records only repository-relative source locations and includes no private audit selections. [SHA256SUMS](SHA256SUMS) covers the packaged data, documentation and provenance; run `sha256sum -c SHA256SUMS` from this directory.
|
| 90 |
+
|
| 91 |
+
## Rights
|
| 92 |
+
|
| 93 |
+
The existing card metadata links to the TopicNet license. That metadata concerns the TopicNet distribution and does not establish permission to redistribute the underlying full PostNauka articles. The [PostNauka about page](https://postnauka.org/about) states that all rights are reserved. Full-article redistribution rights have not been established for this export; no public redistribution permission is asserted.
|
| 94 |
+
|
| 95 |
+
## Historical BOW statistics
|
| 96 |
+
|
| 97 |
+
The following tables describe the 3,404-document BOW representation and are retained from the original dataset card without recalculation. They do not describe the 3,446-document NOOW population.
|
| 98 |
+
|
| 99 |
+
Some measurable characteristics of the BOW dataset:
|
| 100 |
|
| 101 |
* D — number of documents
|
| 102 |
* <modality name> W — modality dictionary size (number of unique tokens)
|
|
|
|
| 124 |
| 75% | 5 | 67 | 2 | 15 | 563 | 6 | 1 | 5 | 52 | 2 | 15 | 343 | 6 | 1 |
|
| 125 |
| max | 22 | 778 | 69 | 28 | 4892 | 18 | 4 | 22 | 444 | 27 | 28 | 2277 | 18 | 4 |
|
| 126 |
|
| 127 |
+
There exists a reference "gold-standard" topic model for 19 + 1 (background) topics.
|
| 128 |
+
Information about the topics is available for the [natural word order version of the dataset](https://huggingface.co/datasets/TopicNet/PostNauka/tree/main/data/noow).
|
| 129 |
+
|
| 130 |
+
## Citations
|
| 131 |
+
|
| 132 |
+
```bibtex
|
| 133 |
+
@article{chirkova2016hierarchical,
|
| 134 |
+
author = {Chirkova, N. A. and Vorontsov, K. V.},
|
| 135 |
+
title = {Additive Regularization for Hierarchical Multimodal Topic Modeling},
|
| 136 |
+
journal = {Journal of Machine Learning and Data Analysis},
|
| 137 |
+
year = {2016},
|
| 138 |
+
volume = {2},
|
| 139 |
+
number = {2},
|
| 140 |
+
pages = {187--200},
|
| 141 |
+
doi = {10.21469/22233792.2.2.05},
|
| 142 |
+
url = {https://publications.hse.ru/pubs/share/direct/210878218.pdf}
|
| 143 |
+
}
|
| 144 |
|
| 145 |
+
@mastersthesis{efimova2017hierarchical,
|
| 146 |
+
author = {Efimova, Irina V.},
|
| 147 |
+
title = {Иерархическая мультимодальная тематическая модель коллекции научно-популярных текстов},
|
| 148 |
+
school = {Moscow Institute of Physics and Technology},
|
| 149 |
+
year = {2017},
|
| 150 |
+
language = {Russian},
|
| 151 |
+
url = {http://www.machinelearning.ru/wiki/images/2/24/Efimova_Diploma.pdf},
|
| 152 |
+
note = {Bibliographic information supplied by the dataset owner; linked PDF not verified for this export}
|
| 153 |
+
}
|
| 154 |
+
```
|
SHA256SUMS
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
f4e703ea6e44bbebe53aceed2a89c11e40b88b7ae130c480c89860ab805ffc8f .gitattributes
|
| 2 |
+
3904c9867fd8bbc9dee6435e2d365678c515f1fce776bb4652897ca3b9b89384 EXPORT_PROVENANCE.json
|
| 3 |
+
ccce17538394478d680c19b60bdf8e4bf62829da0d553b25093c88f1daa13828 README.md
|
| 4 |
+
333f1a4bbd32bb6b75ff7a1daa1e92326ce2e6f2da18d4ead08822b6e0d0d467 data/bow/postnauka.csv.gz
|
| 5 |
+
e2284ad705d192763efc837b05e290588e0f83a7e9c0ec8d77556262c00ee715 data/document-correspondence.json
|
| 6 |
+
73a6717fc90034e54628515c15b51f8d48bc04b877cab31789890c9cc3b362fa data/noow/postnauka.csv.gz
|
| 7 |
+
b9b67f4020a1c3c18d327797ddf60b655f544c02eb1ad390656b18ed7389164a data/noow/topic_documents.json
|
| 8 |
+
923be0c27aa8f61643e29414964071482e7f2ddffb48c4c1578db50e685db9fe data/noow/topics.json
|
data/document-correspondence.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/noow/postnauka.csv.gz
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:73a6717fc90034e54628515c15b51f8d48bc04b877cab31789890c9cc3b362fa
|
| 3 |
+
size 18864235
|