jiayi-li23 lcalvobartolome commited on
Commit
6fe2e2d
·
0 Parent(s):

Duplicate from lcalvobartolome/proxann_data

Browse files

Co-authored-by: Lorena Calvo Bartolomé <lcalvobartolome@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ *.parquet filter=lfs diff=lfs merge=lfs -text
2
+ *.pt filter=lfs diff=lfs merge=lfs -text
3
+ \# filter=lfs diff=lfs merge=lfs -text
4
+ adjust filter=lfs diff=lfs merge=lfs -text
5
+ as filter=lfs diff=lfs merge=lfs -text
6
+ needed filter=lfs diff=lfs merge=lfs -text
7
+ *.npy filter=lfs diff=lfs merge=lfs -text
8
+ *.jsonl filter=lfs diff=lfs merge=lfs -text
9
+ README.md !text !filter !merge !diff
README.md ADDED
@@ -0,0 +1,195 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ configs:
3
+ - config_name: default
4
+ data_files:
5
+ - split: bills_train
6
+ path: bills_train.metadata.embeddings.jsonl.all-MiniLM-L6-v2.parquet
7
+ - split: bills_test
8
+ path: bills_test.metadata.parquet
9
+ - split: wiki_train
10
+ path: wiki_train.metadata.embeddings.jsonl.all-MiniLM-L6-v2.parquet
11
+ - split: wiki_test
12
+ path: wiki_test.metadata.parquet
13
+ datasets:
14
+ - lcalvobartolome/proxann_data
15
+ language:
16
+ - en
17
+ license: mit
18
+ pretty_name: PROXANN Data
19
+ size_categories:
20
+ - 10K<n<100K
21
+ tags:
22
+ - parquet
23
+ - text
24
+ - topic-modeling
25
+ - bills
26
+ - proxann
27
+ - english
28
+ ---
29
+
30
+ # PROXANN Data
31
+
32
+ **PROXANN Data** provides the corpora used for training and evaluating topic models in
33
+ **[PROXANN: Use-Oriented Evaluations of Topic Models and Document Clustering](https://aclanthology.org/2025.acl-long.772/)**
34
+ (Hoyle *et al.*, ACL 2025).
35
+
36
+ This repository contains two dataset — **Bills** and **Wiki** — each with **training** (with contextualized embeddings) and **test** (metadata-only) splits.
37
+
38
+ ---
39
+
40
+ ## Structure
41
+
42
+ | Split | File | Rows | Description |
43
+ | ------|------|------:|-------------|
44
+ | `bills_train` | `bills_train.metadata.embeddings.jsonl.all-MiniLM-L6-v2.parquet` | 32,661 | Congressional bills with summaries, topics, and 384-dim embeddings. |
45
+ | `bills_test` | `bills_test.metadata.parquet` | 15,242 | Bills test split without embeddings (metadata only). |
46
+ | `wiki_train` | `wiki_train.metadata.embeddings.jsonl.all-MiniLM-L6-v2.parquet` | 14,290 | Wikipedia articles with categories and 384-dim embeddings. |
47
+ | `wiki_test` | `wiki_test.metadata.parquet` | 8,024 | Wikipedia test split without embeddings (metadata only). |
48
+
49
+ ---
50
+
51
+ ## Columns
52
+
53
+ ### Bills (`bills_train` / `bills_test`)
54
+
55
+ | Column | Type | Description |
56
+ | ------- | ---- | ----------- |
57
+ | `id` | string | Unique identifier. |
58
+ | `summary` | string | Short summary of the bill. |
59
+ | `topic` | string | Primary topic label. |
60
+ | `subtopic` | string | Secondary topic label. |
61
+ | `subjects_top_term` | string | Top subject term for the bill. |
62
+ | `date` | string | Document date (ISO-8601 format). |
63
+ | `tokenized_text` | list[string] | Preprocessed tokens from Hoyle et al. (2022), 15 k vocabulary. |
64
+ | `embeddings` | list[float] (384) | Sentence embedding (MiniLM-L6-v2). *Absent in test split.* |
65
+
66
+ ### Wiki (`wiki_train` / `wiki_test`)
67
+
68
+ | Column | Type | Description |
69
+ | ------- | ---- | ----------- |
70
+ | `id` | string | Unique identifier. |
71
+ | `text` | string | Article text (raw or normalized). |
72
+ | `supercategory` | string | High-level category. |
73
+ | `category` | string | Primary category. |
74
+ | `subcategory` | string | Secondary category. |
75
+ | `page_name` | string | Wikipedia page title. |
76
+ | `tokenized_text` | list[string] | Preprocessed tokens from Hoyle et al. (2022), 15 k vocabulary. |
77
+ | `embeddings` | list[float] (384) | Sentence embedding (MiniLM-L6-v2). *Absent in test split.* |
78
+
79
+
80
+ ## Vocabularies
81
+
82
+ The dataset includes the **15k-token vocabularies** used during preprocessing and model training.
83
+ Each file is a JSON mapping of **token -> integer index** (0–14,999).
84
+
85
+ | File | Description |
86
+ |------|-------------|
87
+ | `data_with_embeddings/vocabs/bills_vocab.json` | Vocabulary for the Bills corpus. Keys are tokens, values are integer indices. |
88
+ | `data_with_embeddings/vocabs/wiki_vocab.json` | Vocabulary for the Wiki corpus. Keys are tokens, values are integer indices. |
89
+
90
+ ## Usage Example
91
+ The dataset contains four Parquet files:
92
+
93
+ - `bills_train`
94
+ - `bills_test`
95
+ - `wiki_train`
96
+ - `wiki_test`
97
+
98
+ Because the Bills and Wiki splits use different schemas, you should load each split
99
+ directly from its Parquet file using the generic `parquet` loader from 🤗 Datasets:
100
+
101
+ ```python
102
+ from datasets import load_dataset
103
+
104
+ # ------------------------------
105
+ # Bills Dataset
106
+ # ------------------------------
107
+ bills_train = load_dataset(
108
+ "parquet",
109
+ data_files={
110
+ "train": "hf://datasets/lcalvobartolome/proxann_data@main/"
111
+ "bills_train.metadata.embeddings.jsonl.all-MiniLM-L6-v2.parquet"
112
+ },
113
+ split="train",
114
+ )
115
+ print("Bills train size:", len(bills_train)) # 32661
116
+
117
+ bills_test = load_dataset(
118
+ "parquet",
119
+ data_files={
120
+ "test": "hf://datasets/lcalvobartolome/proxann_data@main/"
121
+ "bills_test.metadata.parquet"
122
+ },
123
+ split="test",
124
+ )
125
+ print("Bills test size:", len(bills_test)) # 15242
126
+
127
+
128
+ # ------------------------------
129
+ # Wiki Dataset
130
+ # ------------------------------
131
+ wiki_train = load_dataset(
132
+ "parquet",
133
+ data_files={
134
+ "train": "hf://datasets/lcalvobartolome/proxann_data@main/"
135
+ "wiki_train.metadata.embeddings.jsonl.all-MiniLM-L6-v2.parquet"
136
+ },
137
+ split="train",
138
+ )
139
+ print("Wiki train size:", len(wiki_train)) # 14290
140
+
141
+ wiki_test = load_dataset(
142
+ "parquet",
143
+ data_files={
144
+ "test": "hf://datasets/lcalvobartolome/proxann_data@main/"
145
+ "wiki_test.metadata.parquet"
146
+ },
147
+ split="test",
148
+ )
149
+ print("Wiki test size:", len(wiki_test))
150
+ ```
151
+
152
+ ## Related Resources
153
+
154
+ * [PROXANN GitHub Repository](https://github.com/ahoho/proxann)
155
+ * [Are Neural Topic Models Broken? (Hoyle et al., 2022)](https://aclanthology.org/2022.findings-emnlp.390/)
156
+ * [Bills Dataset — Adler & Wilkerson (2008)](http://www.congressionalbills.org)
157
+ * [WikiText Dataset — Merity et al. (2017)](https://arxiv.org/abs/1609.07843)
158
+
159
+ ---
160
+
161
+ ## License & Attribution
162
+
163
+ Released under the **MIT License**.
164
+ Text content derives from **Wikipedia** (*Merity et al. (2017)*) and the **Congressional Bills Project** (*Adler & Wilkerson, 2008*).
165
+ Please provide attribution when reusing these materials.
166
+
167
+ ---
168
+
169
+ ## Citation
170
+
171
+ If you use this dataset, please cite:
172
+
173
+ ```bibtex
174
+ @inproceedings{hoyle-etal-2025-proxann,
175
+ title = "{P}rox{A}nn: Use-Oriented Evaluations of Topic Models and Document Clustering",
176
+ author = "Hoyle, Alexander Miserlis and
177
+ Calvo-Bartolom{\'e}, Lorena and
178
+ Boyd-Graber, Jordan Lee and
179
+ Resnik, Philip",
180
+ editor = "Che, Wanxiang and
181
+ Nabende, Joyce and
182
+ Shutova, Ekaterina and
183
+ Pilehvar, Mohammad Taher",
184
+ booktitle = "Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)",
185
+ month = jul,
186
+ year = "2025",
187
+ address = "Vienna, Austria",
188
+ publisher = "Association for Computational Linguistics",
189
+ url = "https://aclanthology.org/2025.acl-long.772/",
190
+ doi = "10.18653/v1/2025.acl-long.772",
191
+ pages = "15872--15897",
192
+ ISBN = "979-8-89176-251-0",
193
+ abstract = "Topic models and document-clustering evaluations either use automated metrics that align poorly with human preferences, or require expert labels that are intractable to scale. We design a scalable human evaluation protocol and a corresponding automated approximation that reflect practitioners' real-world usage of models. Annotators{---}or an LLM-based proxy{---}review text items assigned to a topic or cluster, infer a category for the group, then apply that category to other documents. Using this protocol, we collect extensive crowdworker annotations of outputs from a diverse set of topic models on two datasets. We then use these annotations to validate automated proxies, finding that the best LLM proxy is statistically indistinguishable from a human annotator and can therefore serve as a reasonable substitute in automated evaluations."
194
+ }
195
+ ```
bills_test.metadata.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6cd4aa8b18120dc0f585be259b012cc67eca34d6c6a0007c42ce204e8cb1d019
3
+ size 23096594
bills_train.metadata.embeddings.jsonl.all-MiniLM-L6-v2.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2e0423371d32b711a633b755a2984c9c7a04fe0dca3075671098f3061b484d6d
3
+ size 133237244
metadata.json ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "proxann_data",
3
+ "version": "1.1.0",
4
+ "license": "mit",
5
+ "language": "en",
6
+ "pretty_name": "PROXANN Data",
7
+ "description": "Data used for training and evaluation in the 'PROXANN: Use-Oriented Evaluations of Topic Models and Document Clustering' paper. The files contain the original metadata from Merity et al. (2017) (Wiki) and Adler & Wilkerson (2008) (Bills). The preprocessed version (tokenized_text) comes from Hoyle et al. (2022), using their 15,000-word vocabulary version. Contextualized embeddings were generated using the all-MiniLM-L6-v2 model, with code available in the PROXANN repository.",
8
+ "size_categories": ["10K<n<100K"],
9
+ "splits": {
10
+ "bills_train": {
11
+ "filename": "bills_train.metadata.embeddings.jsonl.all-MiniLM-L6-v2.parquet",
12
+ "num_rows": 32661,
13
+ "description": "Congressional bills (Adler & Wilkerson, 2008) with summaries, topics, and 384-dim MiniLM embeddings."
14
+ },
15
+ "bills_test": {
16
+ "filename": "bills_test.metadata.parquet",
17
+ "num_rows": 15242,
18
+ "description": "Bills test split without embeddings (metadata only)."
19
+ },
20
+ "wiki_train": {
21
+ "filename": "wiki_train.metadata.embeddings.jsonl.all-MiniLM-L6-v2.parquet",
22
+ "num_rows": 14290,
23
+ "description": "Wikipedia articles (Merity et al., 2017) with categories and 384-dim MiniLM embeddings."
24
+ },
25
+ "wiki_test": {
26
+ "filename": "wiki_test.metadata.parquet",
27
+ "num_rows": 8024,
28
+ "description": "Wikipedia test split without embeddings (metadata only)."
29
+ }
30
+ },
31
+ "schemas": {
32
+ "bills_train": {
33
+ "columns": {
34
+ "id": { "type": "string", "description": "Unique identifier." },
35
+ "summary": { "type": "string", "description": "Short summary of the bill." },
36
+ "topic": { "type": "string", "description": "Primary topic label." },
37
+ "subtopic": { "type": "string", "description": "Secondary topic label." },
38
+ "subjects_top_term": { "type": "string", "description": "Top subject term for the bill." },
39
+ "date": { "type": "string", "description": "Document date (ISO-8601 format)." },
40
+ "tokenized_text": { "type": "list[string]", "description": "Preprocessed tokens from Hoyle et al. (2022), 15k vocabulary." },
41
+ "embeddings": { "type": "list[float]", "length": 384, "description": "Sentence embedding (MiniLM-L6-v2). Absent in test split." }
42
+ }
43
+ },
44
+ "bills_test": {
45
+ "columns": {
46
+ "id": { "type": "string", "description": "Unique identifier." },
47
+ "summary": { "type": "string", "description": "Short summary of the bill." },
48
+ "topic": { "type": "string", "description": "Primary topic label." },
49
+ "subtopic": { "type": "string", "description": "Secondary topic label." },
50
+ "subjects_top_term": { "type": "string", "description": "Top subject term for the bill." },
51
+ "date": { "type": "string", "description": "Document date (ISO-8601 format)." },
52
+ "tokenized_text": { "type": "list[string]", "description": "Preprocessed tokens from Hoyle et al. (2022), 15k vocabulary." }
53
+ }
54
+ },
55
+ "wiki_train": {
56
+ "columns": {
57
+ "id": { "type": "string", "description": "Unique identifier." },
58
+ "text": { "type": "string", "description": "Article text (raw or normalized)." },
59
+ "supercategory": { "type": "string", "description": "High-level category." },
60
+ "category": { "type": "string", "description": "Primary category." },
61
+ "subcategory": { "type": "string", "description": "Secondary category." },
62
+ "page_name": { "type": "string", "description": "Wikipedia page title." },
63
+ "tokenized_text": { "type": "list[string]", "description": "Preprocessed tokens from Hoyle et al. (2022), 15k vocabulary." },
64
+ "embeddings": { "type": "list[float]", "length": 384, "description": "Sentence embedding (MiniLM-L6-v2). Absent in test split." }
65
+ }
66
+ },
67
+ "wiki_test": {
68
+ "columns": {
69
+ "id": { "type": "string", "description": "Unique identifier." },
70
+ "text": { "type": "string", "description": "Article text (raw or normalized)." },
71
+ "supercategory": { "type": "string", "description": "High-level category." },
72
+ "category": { "type": "string", "description": "Primary category." },
73
+ "subcategory": { "type": "string", "description": "Secondary category." },
74
+ "page_name": { "type": "string", "description": "Wikipedia page title." },
75
+ "tokenized_text": { "type": "list[string]", "description": "Preprocessed tokens from Hoyle et al. (2022), 15k vocabulary." }
76
+ }
77
+ }
78
+ },
79
+ "resources": {
80
+ "vocabularies": [
81
+ {
82
+ "filename": "data_with_embeddings/vocabs/bills_vocab.json",
83
+ "description": "Vocabulary for the Bills corpus."
84
+ },
85
+ {
86
+ "filename": "data_with_embeddings/vocabs/wiki_vocab.json",
87
+ "description": "Vocabulary for the Wiki corpus."
88
+ }
89
+ ]
90
+ },
91
+ "data_stats": {
92
+ "table": [
93
+ { "split": "bills_train", "file": "bills_train.metadata.embeddings.jsonl.all-MiniLM-L6-v2.parquet", "rows": 32661, "description": "Congressional bills with summaries, topics, and 384-dim embeddings." },
94
+ { "split": "bills_test", "file": "bills_test.metadata.parquet", "rows": 15242, "description": "Bills test split without embeddings (metadata only)." },
95
+ { "split": "wiki_train", "file": "wiki_train.metadata.embeddings.jsonl.all-MiniLM-L6-v2.parquet", "rows": 14290, "description": "Wikipedia articles with categories and 384-dim embeddings." },
96
+ { "split": "wiki_test", "file": "wiki_test.metadata.parquet", "rows": 8024, "description": "Wikipedia test split without embeddings (metadata only)." }
97
+ ]
98
+ },
99
+ "creator": "Alexander Miserlis Hoyle, Lorena Calvo-Bartolomé, Jordan Boyd-Graber, Philip Resnik",
100
+ "source": {
101
+ "provider": "Wikipedia",
102
+ "type": "paper",
103
+ "note": "We use the curated versions from 'Are Neural Topic Models Broken?' (Hoyle et al., 2022).",
104
+ "repository": "https://github.com/ahoho/topics"
105
+ },
106
+ "dataset_type": "text",
107
+ "tags": ["parquet", "text", "topic-modeling", "bills", "proxann", "english", "vocabulary"],
108
+ "task_categories": ["unsupervised-learning", "topic-modeling", "clustering"],
109
+ "citation": "@inproceedings{hoyle-etal-2025-proxann, title = {PROXANN: Use-Oriented Evaluations of Topic Models and Document Clustering}, author = {Hoyle, Alexander Miserlis and Calvo-Bartolomé, Lorena and Boyd-Graber, Jordan Lee and Resnik, Philip}, booktitle = {Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)}, year = {2025}, address = {Vienna, Austria}, publisher = {Association for Computational Linguistics}, url = {https://aclanthology.org/2025.acl-long.772/}, doi = {10.18653/v1/2025.acl-long.772} }"
110
+ }
vocabs/bills_vocab.json ADDED
The diff for this file is too large to render. See raw diff
 
vocabs/wiki_vocab.json ADDED
The diff for this file is too large to render. See raw diff
 
wiki_test.metadata.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3abaecc81846e63bd66452f23e14599c8e7d4e70c3fdf4742b7edb606f4ff404
3
+ size 114752442
wiki_train.metadata.embeddings.jsonl.all-MiniLM-L6-v2.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ddd1c6e23414637cfff6c93cb285356174ed496d415ba28f17d9d43d47bee13f
3
+ size 222165819