Update files from the datasets library (from 1.3.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.3.0
- README.md +403 -0
- dataset_infos.json +1 -1
- reuters21578.py +40 -28
README.md
ADDED
@@ -0,0 +1,403 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
---
|
3 |
+
|
4 |
+
# Dataset Card for "reuters21578"
|
5 |
+
|
6 |
+
## Table of Contents
|
7 |
+
- [Dataset Description](#dataset-description)
|
8 |
+
- [Dataset Summary](#dataset-summary)
|
9 |
+
- [Supported Tasks](#supported-tasks)
|
10 |
+
- [Languages](#languages)
|
11 |
+
- [Dataset Structure](#dataset-structure)
|
12 |
+
- [Data Instances](#data-instances)
|
13 |
+
- [Data Fields](#data-fields)
|
14 |
+
- [Data Splits Sample Size](#data-splits-sample-size)
|
15 |
+
- [Dataset Creation](#dataset-creation)
|
16 |
+
- [Curation Rationale](#curation-rationale)
|
17 |
+
- [Source Data](#source-data)
|
18 |
+
- [Annotations](#annotations)
|
19 |
+
- [Personal and Sensitive Information](#personal-and-sensitive-information)
|
20 |
+
- [Considerations for Using the Data](#considerations-for-using-the-data)
|
21 |
+
- [Social Impact of Dataset](#social-impact-of-dataset)
|
22 |
+
- [Discussion of Biases](#discussion-of-biases)
|
23 |
+
- [Other Known Limitations](#other-known-limitations)
|
24 |
+
- [Additional Information](#additional-information)
|
25 |
+
- [Dataset Curators](#dataset-curators)
|
26 |
+
- [Licensing Information](#licensing-information)
|
27 |
+
- [Citation Information](#citation-information)
|
28 |
+
- [Contributions](#contributions)
|
29 |
+
|
30 |
+
## [Dataset Description](#dataset-description)
|
31 |
+
|
32 |
+
- **Homepage:** [https://kdd.ics.uci.edu/databases/reuters21578/reuters21578.html](https://kdd.ics.uci.edu/databases/reuters21578/reuters21578.html)
|
33 |
+
- **Repository:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
34 |
+
- **Paper:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
35 |
+
- **Point of Contact:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
36 |
+
- **Size of downloaded dataset files:** 23.32 MB
|
37 |
+
- **Size of the generated dataset:** 49.80 MB
|
38 |
+
- **Total amount of disk used:** 73.12 MB
|
39 |
+
|
40 |
+
### [Dataset Summary](#dataset-summary)
|
41 |
+
|
42 |
+
The Reuters-21578 dataset is one of the most widely used data collections for text
|
43 |
+
categorization research. It is collected from the Reuters financial newswire service in 1987.
|
44 |
+
|
45 |
+
### [Supported Tasks](#supported-tasks)
|
46 |
+
|
47 |
+
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
48 |
+
|
49 |
+
### [Languages](#languages)
|
50 |
+
|
51 |
+
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
52 |
+
|
53 |
+
## [Dataset Structure](#dataset-structure)
|
54 |
+
|
55 |
+
We show detailed information for up to 5 configurations of the dataset.
|
56 |
+
|
57 |
+
### [Data Instances](#data-instances)
|
58 |
+
|
59 |
+
#### ModApte
|
60 |
+
|
61 |
+
- **Size of downloaded dataset files:** 7.77 MB
|
62 |
+
- **Size of the generated dataset:** 12.45 MB
|
63 |
+
- **Total amount of disk used:** 20.23 MB
|
64 |
+
|
65 |
+
An example of 'train' looks as follows.
|
66 |
+
```
|
67 |
+
This example was too long and was cropped:
|
68 |
+
|
69 |
+
{
|
70 |
+
"cgis_split": "\"TRAINING-SET\"",
|
71 |
+
"date": "19-MAR-1987 06:17:22.36",
|
72 |
+
"exchanges": [],
|
73 |
+
"lewis_split": "\"TRAIN\"",
|
74 |
+
"new_id": "\"7001\"",
|
75 |
+
"old_id": "\"11914\"",
|
76 |
+
"orgs": [],
|
77 |
+
"people": [],
|
78 |
+
"places": ["australia"],
|
79 |
+
"text": "\"Media group John Fairfax Ltd <FFXA.S>\\nsaid that its flat first half net profit partly reflected the\\nimpact of changes in t...",
|
80 |
+
"title": "FAIRFAX SAYS HIGHER TAX HITS FIRST HALF EARNINGS",
|
81 |
+
"topics": ["earn"]
|
82 |
+
}
|
83 |
+
```
|
84 |
+
|
85 |
+
#### ModHayes
|
86 |
+
|
87 |
+
- **Size of downloaded dataset files:** 7.77 MB
|
88 |
+
- **Size of the generated dataset:** 18.87 MB
|
89 |
+
- **Total amount of disk used:** 26.64 MB
|
90 |
+
|
91 |
+
An example of 'train' looks as follows.
|
92 |
+
```
|
93 |
+
This example was too long and was cropped:
|
94 |
+
|
95 |
+
{
|
96 |
+
"cgis_split": "\"TRAINING-SET\"",
|
97 |
+
"date": "19-OCT-1987 23:49:31.45",
|
98 |
+
"exchanges": [],
|
99 |
+
"lewis_split": "\"TEST\"",
|
100 |
+
"new_id": "\"20001\"",
|
101 |
+
"old_id": "\"20596\"",
|
102 |
+
"orgs": [],
|
103 |
+
"people": [],
|
104 |
+
"places": ["japan", "usa"],
|
105 |
+
"text": "\"If the dollar goes the way of Wall Street,\\nJapanese will finally move out of dollar investments in a\\nserious way, Japan inves...",
|
106 |
+
"title": "IF DOLLAR FOLLOWS WALL STREET JAPANESE WILL DIVEST",
|
107 |
+
"topics": ["money-fx"]
|
108 |
+
}
|
109 |
+
```
|
110 |
+
|
111 |
+
#### ModLewis
|
112 |
+
|
113 |
+
- **Size of downloaded dataset files:** 7.77 MB
|
114 |
+
- **Size of the generated dataset:** 18.48 MB
|
115 |
+
- **Total amount of disk used:** 26.26 MB
|
116 |
+
|
117 |
+
An example of 'train' looks as follows.
|
118 |
+
```
|
119 |
+
This example was too long and was cropped:
|
120 |
+
|
121 |
+
{
|
122 |
+
"cgis_split": "\"TRAINING-SET\"",
|
123 |
+
"date": "19-MAR-1987 06:17:22.36",
|
124 |
+
"exchanges": [],
|
125 |
+
"lewis_split": "\"TRAIN\"",
|
126 |
+
"new_id": "\"7001\"",
|
127 |
+
"old_id": "\"11914\"",
|
128 |
+
"orgs": [],
|
129 |
+
"people": [],
|
130 |
+
"places": ["australia"],
|
131 |
+
"text": "\"Media group John Fairfax Ltd <FFXA.S>\\nsaid that its flat first half net profit partly reflected the\\nimpact of changes in t...",
|
132 |
+
"title": "FAIRFAX SAYS HIGHER TAX HITS FIRST HALF EARNINGS",
|
133 |
+
"topics": ["earn"]
|
134 |
+
}
|
135 |
+
```
|
136 |
+
|
137 |
+
### [Data Fields](#data-fields)
|
138 |
+
|
139 |
+
The data fields are the same among all splits.
|
140 |
+
|
141 |
+
#### ModApte
|
142 |
+
- `text`: a `string` feature.
|
143 |
+
- `topics`: a `list` of `string` features.
|
144 |
+
- `lewis_split`: a `string` feature.
|
145 |
+
- `cgis_split`: a `string` feature.
|
146 |
+
- `old_id`: a `string` feature.
|
147 |
+
- `new_id`: a `string` feature.
|
148 |
+
- `places`: a `list` of `string` features.
|
149 |
+
- `people`: a `list` of `string` features.
|
150 |
+
- `orgs`: a `list` of `string` features.
|
151 |
+
- `exchanges`: a `list` of `string` features.
|
152 |
+
- `date`: a `string` feature.
|
153 |
+
- `title`: a `string` feature.
|
154 |
+
|
155 |
+
#### ModHayes
|
156 |
+
- `text`: a `string` feature.
|
157 |
+
- `topics`: a `list` of `string` features.
|
158 |
+
- `lewis_split`: a `string` feature.
|
159 |
+
- `cgis_split`: a `string` feature.
|
160 |
+
- `old_id`: a `string` feature.
|
161 |
+
- `new_id`: a `string` feature.
|
162 |
+
- `places`: a `list` of `string` features.
|
163 |
+
- `people`: a `list` of `string` features.
|
164 |
+
- `orgs`: a `list` of `string` features.
|
165 |
+
- `exchanges`: a `list` of `string` features.
|
166 |
+
- `date`: a `string` feature.
|
167 |
+
- `title`: a `string` feature.
|
168 |
+
|
169 |
+
#### ModLewis
|
170 |
+
- `text`: a `string` feature.
|
171 |
+
- `topics`: a `list` of `string` features.
|
172 |
+
- `lewis_split`: a `string` feature.
|
173 |
+
- `cgis_split`: a `string` feature.
|
174 |
+
- `old_id`: a `string` feature.
|
175 |
+
- `new_id`: a `string` feature.
|
176 |
+
- `places`: a `list` of `string` features.
|
177 |
+
- `people`: a `list` of `string` features.
|
178 |
+
- `orgs`: a `list` of `string` features.
|
179 |
+
- `exchanges`: a `list` of `string` features.
|
180 |
+
- `date`: a `string` feature.
|
181 |
+
- `title`: a `string` feature.
|
182 |
+
|
183 |
+
### [Data Splits Sample Size](#data-splits-sample-size)
|
184 |
+
|
185 |
+
#### ModApte
|
186 |
+
|
187 |
+
| |train|unused|test|
|
188 |
+
|-------|----:|-----:|---:|
|
189 |
+
|ModApte| 8762| 720|3009|
|
190 |
+
|
191 |
+
#### ModHayes
|
192 |
+
|
193 |
+
| |train|test|
|
194 |
+
|--------|----:|---:|
|
195 |
+
|ModHayes|18323| 720|
|
196 |
+
|
197 |
+
#### ModLewis
|
198 |
+
|
199 |
+
| |train|unused|test|
|
200 |
+
|--------|----:|-----:|---:|
|
201 |
+
|ModLewis|12449| 720|5458|
|
202 |
+
|
203 |
+
## [Dataset Creation](#dataset-creation)
|
204 |
+
|
205 |
+
### [Curation Rationale](#curation-rationale)
|
206 |
+
|
207 |
+
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
208 |
+
|
209 |
+
### [Source Data](#source-data)
|
210 |
+
|
211 |
+
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
212 |
+
|
213 |
+
### [Annotations](#annotations)
|
214 |
+
|
215 |
+
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
216 |
+
|
217 |
+
### [Personal and Sensitive Information](#personal-and-sensitive-information)
|
218 |
+
|
219 |
+
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
220 |
+
|
221 |
+
## [Considerations for Using the Data](#considerations-for-using-the-data)
|
222 |
+
|
223 |
+
### [Social Impact of Dataset](#social-impact-of-dataset)
|
224 |
+
|
225 |
+
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
226 |
+
|
227 |
+
### [Discussion of Biases](#discussion-of-biases)
|
228 |
+
|
229 |
+
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
230 |
+
|
231 |
+
### [Other Known Limitations](#other-known-limitations)
|
232 |
+
|
233 |
+
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
234 |
+
|
235 |
+
## [Additional Information](#additional-information)
|
236 |
+
|
237 |
+
### [Dataset Curators](#dataset-curators)
|
238 |
+
|
239 |
+
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
240 |
+
|
241 |
+
### [Licensing Information](#licensing-information)
|
242 |
+
|
243 |
+
[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
244 |
+
|
245 |
+
### [Citation Information](#citation-information)
|
246 |
+
|
247 |
+
```
|
248 |
+
@article{APTE94,
|
249 |
+
author = {Chidanand Apt{'{e}} and Fred Damerau and Sholom M. Weiss},
|
250 |
+
title = {Automated Learning of Decision Rules for Text Categorization},
|
251 |
+
journal = {ACM Transactions on Information Systems},
|
252 |
+
year = {1994},
|
253 |
+
note = {To appear.}
|
254 |
+
}
|
255 |
+
|
256 |
+
@inproceedings{APTE94b,
|
257 |
+
author = {Chidanand Apt{'{e}} and Fred Damerau and Sholom M. Weiss},
|
258 |
+
title = {Toward Language Independent Automated Learning of Text Categorization Models},
|
259 |
+
booktitle = {sigir94},
|
260 |
+
year = {1994},
|
261 |
+
note = {To appear.}
|
262 |
+
}
|
263 |
+
|
264 |
+
@inproceedings{HAYES8},
|
265 |
+
author = {Philip J. Hayes and Peggy M. Anderson and Irene B. Nirenburg and
|
266 |
+
Linda M. Schmandt},
|
267 |
+
title = {{TCS}: A Shell for Content-Based Text Categorization},
|
268 |
+
booktitle = {IEEE Conference on Artificial Intelligence Applications},
|
269 |
+
year = {1990}
|
270 |
+
}
|
271 |
+
|
272 |
+
@inproceedings{HAYES90b,
|
273 |
+
author = {Philip J. Hayes and Steven P. Weinstein},
|
274 |
+
title = {{CONSTRUE/TIS:} A System for Content-Based Indexing of a
|
275 |
+
Database of News Stories},
|
276 |
+
booktitle = {Second Annual Conference on Innovative Applications of
|
277 |
+
Artificial Intelligence},
|
278 |
+
year = {1990}
|
279 |
+
}
|
280 |
+
|
281 |
+
@incollection{HAYES92 ,
|
282 |
+
author = {Philip J. Hayes},
|
283 |
+
title = {Intelligent High-Volume Text Processing using Shallow,
|
284 |
+
Domain-Specific Techniques},
|
285 |
+
booktitle = {Text-Based Intelligent Systems},
|
286 |
+
publisher = {Lawrence Erlbaum},
|
287 |
+
address = {Hillsdale, NJ},
|
288 |
+
year = {1992},
|
289 |
+
editor = {Paul S. Jacobs}
|
290 |
+
}
|
291 |
+
|
292 |
+
@inproceedings{LEWIS91c ,
|
293 |
+
author = {David D. Lewis},
|
294 |
+
title = {Evaluating Text Categorization},
|
295 |
+
booktitle = {Proceedings of Speech and Natural Language Workshop},
|
296 |
+
year = {1991},
|
297 |
+
month = {feb},
|
298 |
+
organization = {Defense Advanced Research Projects Agency},
|
299 |
+
publisher = {Morgan Kaufmann},
|
300 |
+
pages = {312--318}
|
301 |
+
|
302 |
+
}
|
303 |
+
|
304 |
+
@phdthesis{LEWIS91d,
|
305 |
+
author = {David Dolan Lewis},
|
306 |
+
title = {Representation and Learning in Information Retrieval},
|
307 |
+
school = {Computer Science Dept.; Univ. of Massachusetts; Amherst, MA 01003},
|
308 |
+
year = 1992},
|
309 |
+
note = {Technical Report 91--93.}
|
310 |
+
}
|
311 |
+
|
312 |
+
@inproceedings{LEWIS91e,
|
313 |
+
author = {David D. Lewis},
|
314 |
+
title = {Data Extraction as Text Categorization: An Experiment with
|
315 |
+
the {MUC-3} Corpus},
|
316 |
+
booktitle = {Proceedings of the Third Message Understanding Evaluation
|
317 |
+
and Conference},
|
318 |
+
year = {1991},
|
319 |
+
month = {may},
|
320 |
+
organization = {Defense Advanced Research Projects Agency},
|
321 |
+
publisher = {Morgan Kaufmann},
|
322 |
+
address = {Los Altos, CA}
|
323 |
+
|
324 |
+
}
|
325 |
+
|
326 |
+
@inproceedings{LEWIS92b,
|
327 |
+
author = {David D. Lewis},
|
328 |
+
title = {An Evaluation of Phrasal and Clustered Representations on a Text
|
329 |
+
Categorization Task},
|
330 |
+
booktitle = {Fifteenth Annual International ACM SIGIR Conference on
|
331 |
+
Research and Development in Information Retrieval},
|
332 |
+
year = {1992},
|
333 |
+
pages = {37--50}
|
334 |
+
}
|
335 |
+
|
336 |
+
@inproceedings{LEWIS92d ,
|
337 |
+
author = {David D. Lewis and Richard M. Tong},
|
338 |
+
title = {Text Filtering in {MUC-3} and {MUC-4}},
|
339 |
+
booktitle = {Proceedings of the Fourth Message Understanding Conference ({MUC-4})},
|
340 |
+
year = {1992},
|
341 |
+
month = {jun},
|
342 |
+
organization = {Defense Advanced Research Projects Agency},
|
343 |
+
publisher = {Morgan Kaufmann},
|
344 |
+
address = {Los Altos, CA}
|
345 |
+
}
|
346 |
+
|
347 |
+
@inproceedings{LEWIS92e,
|
348 |
+
author = {David D. Lewis},
|
349 |
+
title = {Feature Selection and Feature Extraction for Text Categorization},
|
350 |
+
booktitle = {Proceedings of Speech and Natural Language Workshop},
|
351 |
+
year = {1992},
|
352 |
+
month = {feb} ,
|
353 |
+
organization = {Defense Advanced Research Projects Agency},
|
354 |
+
publisher = {Morgan Kaufmann},
|
355 |
+
pages = {212--217}
|
356 |
+
}
|
357 |
+
|
358 |
+
@inproceedings{LEWIS94b,
|
359 |
+
author = {David D. Lewis and Marc Ringuette},
|
360 |
+
title = {A Comparison of Two Learning Algorithms for Text Categorization},
|
361 |
+
booktitle = {Symposium on Document Analysis and Information Retrieval},
|
362 |
+
year = {1994},
|
363 |
+
organization = {ISRI; Univ. of Nevada, Las Vegas},
|
364 |
+
address = {Las Vegas, NV},
|
365 |
+
month = {apr},
|
366 |
+
pages = {81--93}
|
367 |
+
}
|
368 |
+
|
369 |
+
@article{LEWIS94d,
|
370 |
+
author = {David D. Lewis and Philip J. Hayes},
|
371 |
+
title = {Guest Editorial},
|
372 |
+
journal = {ACM Transactions on Information Systems},
|
373 |
+
year = {1994},
|
374 |
+
volume = {12},
|
375 |
+
number = {3},
|
376 |
+
pages = {231},
|
377 |
+
month = {jul}
|
378 |
+
}
|
379 |
+
|
380 |
+
@article{SPARCKJONES76,
|
381 |
+
author = {K. {Sparck Jones} and C. J. {van Rijsbergen}},
|
382 |
+
title = {Information Retrieval Test Collections},
|
383 |
+
journal = {Journal of Documentation},
|
384 |
+
year = {1976},
|
385 |
+
volume = {32},
|
386 |
+
number = {1},
|
387 |
+
pages = {59--75}
|
388 |
+
}
|
389 |
+
|
390 |
+
@book{WEISS91,
|
391 |
+
author = {Sholom M. Weiss and Casimir A. Kulikowski},
|
392 |
+
title = {Computer Systems That Learn},
|
393 |
+
publisher = {Morgan Kaufmann},
|
394 |
+
year = {1991},
|
395 |
+
address = {San Mateo, CA}
|
396 |
+
}
|
397 |
+
|
398 |
+
```
|
399 |
+
|
400 |
+
|
401 |
+
### Contributions
|
402 |
+
|
403 |
+
Thanks to [@jplu](https://github.com/jplu), [@jbragg](https://github.com/jbragg), [@thomwolf](https://github.com/thomwolf), [@mariamabarham](https://github.com/mariamabarham), [@lhoestq](https://github.com/lhoestq) for adding this dataset.
|
dataset_infos.json
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"ModHayes": {"description": "The Reuters-21578 dataset is one of the most widely used data collections for text\ncategorization research. It is collected from the Reuters financial newswire service in 1987.\n", "citation": "@article{APTE94,\nauthor = {Chidanand Apt{'{e}} and Fred Damerau and Sholom M. Weiss},\ntitle = {Automated Learning of Decision Rules for Text Categorization},\njournal = {ACM Transactions on Information Systems},\nyear = {1994},\nnote = {To appear.}\n}\n\n@inproceedings{APTE94b,\nauthor = {Chidanand Apt{'{e}} and Fred Damerau and Sholom M. Weiss},\ntitle = {Toward Language Independent Automated Learning of Text Categorization Models},\nbooktitle = {sigir94},\nyear = {1994},\nnote = {To appear.}\n}\n\n@inproceedings{HAYES8},\nauthor = {Philip J. Hayes and Peggy M. Anderson and Irene B. Nirenburg and\nLinda M. Schmandt},\ntitle = {{TCS}: A Shell for Content-Based Text Categorization},\nbooktitle = {IEEE Conference on Artificial Intelligence Applications},\nyear = {1990}\n}\n\n@inproceedings{HAYES90b,\nauthor = {Philip J. Hayes and Steven P. Weinstein},\ntitle = {{CONSTRUE/TIS:} A System for Content-Based Indexing of a\nDatabase of News Stories},\nbooktitle = {Second Annual Conference on Innovative Applications of\nArtificial Intelligence},\nyear = {1990}\n}\n\n@incollection{HAYES92 ,\nauthor = {Philip J. Hayes},\ntitle = {Intelligent High-Volume Text Processing using Shallow,\nDomain-Specific Techniques},\nbooktitle = {Text-Based Intelligent Systems},\npublisher = {Lawrence Erlbaum},\naddress = {Hillsdale, NJ},\nyear = {1992},\neditor = {Paul S. Jacobs}\n}\n\n@inproceedings{LEWIS91c ,\nauthor = {David D. Lewis},\ntitle = {Evaluating Text Categorization},\nbooktitle = {Proceedings of Speech and Natural Language Workshop},\nyear = {1991},\nmonth = {feb},\norganization = {Defense Advanced Research Projects Agency},\npublisher = {Morgan Kaufmann},\npages = {312--318}\n\n}\n\n@phdthesis{LEWIS91d,\nauthor = {David Dolan Lewis},\ntitle = {Representation and Learning in Information Retrieval},\nschool = {Computer Science Dept.; Univ. of Massachusetts; Amherst, MA 01003},\nyear = 1992},\nnote = {Technical Report 91--93.}\n}\n\n@inproceedings{LEWIS91e,\nauthor = {David D. Lewis},\ntitle = {Data Extraction as Text Categorization: An Experiment with\nthe {MUC-3} Corpus},\nbooktitle = {Proceedings of the Third Message Understanding Evaluation\nand Conference},\nyear = {1991},\nmonth = {may},\norganization = {Defense Advanced Research Projects Agency},\npublisher = {Morgan Kaufmann},\naddress = {Los Altos, CA}\n\n}\n\n@inproceedings{LEWIS92b,\nauthor = {David D. Lewis},\ntitle = {An Evaluation of Phrasal and Clustered Representations on a Text\nCategorization Task},\nbooktitle = {Fifteenth Annual International ACM SIGIR Conference on\nResearch and Development in Information Retrieval},\nyear = {1992},\npages = {37--50}\n}\n\n@inproceedings{LEWIS92d ,\nauthor = {David D. Lewis and Richard M. Tong},\ntitle = {Text Filtering in {MUC-3} and {MUC-4}},\nbooktitle = {Proceedings of the Fourth Message Understanding Conference ({MUC-4})},\nyear = {1992},\nmonth = {jun},\norganization = {Defense Advanced Research Projects Agency},\npublisher = {Morgan Kaufmann},\naddress = {Los Altos, CA}\n}\n\n@inproceedings{LEWIS92e,\nauthor = {David D. Lewis},\ntitle = {Feature Selection and Feature Extraction for Text Categorization},\nbooktitle = {Proceedings of Speech and Natural Language Workshop},\nyear = {1992},\nmonth = {feb} ,\norganization = {Defense Advanced Research Projects Agency},\npublisher = {Morgan Kaufmann},\npages = {212--217}\n}\n\n@inproceedings{LEWIS94b,\nauthor = {David D. Lewis and Marc Ringuette},\ntitle = {A Comparison of Two Learning Algorithms for Text Categorization},\nbooktitle = {Symposium on Document Analysis and Information Retrieval},\nyear = {1994},\norganization = {ISRI; Univ. of Nevada, Las Vegas},\naddress = {Las Vegas, NV},\nmonth = {apr},\npages = {81--93}\n}\n\n@article{LEWIS94d,\nauthor = {David D. Lewis and Philip J. Hayes},\ntitle = {Guest Editorial},\njournal = {ACM Transactions on Information Systems},\nyear = {1994},\nvolume = {12},\nnumber = {3},\npages = {231},\nmonth = {jul}\n}\n\n@article{SPARCKJONES76,\nauthor = {K. {Sparck Jones} and C. J. {van Rijsbergen}},\ntitle = {Information Retrieval Test Collections},\njournal = {Journal of Documentation},\nyear = {1976},\nvolume = {32},\nnumber = {1},\npages = {59--75}\n}\n\n@book{WEISS91,\nauthor = {Sholom M. Weiss and Casimir A. Kulikowski},\ntitle = {Computer Systems That Learn},\npublisher = {Morgan Kaufmann},\nyear = {1991},\naddress = {San Mateo, CA}\n}\n", "homepage": "https://kdd.ics.uci.edu/databases/reuters21578/reuters21578.html", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "topics": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "lewis_split": {"dtype": "string", "id": null, "_type": "Value"}, "cgis_split": {"dtype": "string", "id": null, "_type": "Value"}, "old_id": {"dtype": "string", "id": null, "_type": "Value"}, "new_id": {"dtype": "string", "id": null, "_type": "Value"}, "places": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "people": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "orgs": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "exchanges": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "date": {"dtype": "string", "id": null, "_type": "Value"}, "title": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "reuters21578", "config_name": "ModHayes", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"test": {"name": "test", "num_bytes": 960567, "num_examples": 720, "dataset_name": "reuters21578"}, "train": {"name": "train", "num_bytes": 18821215, "num_examples": 18323, "dataset_name": "reuters21578"}}, "download_checksums": {"https://kdd.ics.uci.edu/databases/reuters21578/reuters21578.tar.gz": {"num_bytes": 8150596, "checksum": "3bae43c9b14e387f76a61b6d82bf98a4fb5d3ef99ef7e7075ff2ccbcf59f9d30"}}, "download_size": 8150596, "post_processing_size": null, "dataset_size": 19781782, "size_in_bytes": 27932378}, "ModLewis": {"description": "The Reuters-21578 dataset is one of the most widely used data collections for text\ncategorization research. It is collected from the Reuters financial newswire service in 1987.\n", "citation": "@article{APTE94,\nauthor = {Chidanand Apt{'{e}} and Fred Damerau and Sholom M. Weiss},\ntitle = {Automated Learning of Decision Rules for Text Categorization},\njournal = {ACM Transactions on Information Systems},\nyear = {1994},\nnote = {To appear.}\n}\n\n@inproceedings{APTE94b,\nauthor = {Chidanand Apt{'{e}} and Fred Damerau and Sholom M. Weiss},\ntitle = {Toward Language Independent Automated Learning of Text Categorization Models},\nbooktitle = {sigir94},\nyear = {1994},\nnote = {To appear.}\n}\n\n@inproceedings{HAYES8},\nauthor = {Philip J. Hayes and Peggy M. Anderson and Irene B. Nirenburg and\nLinda M. Schmandt},\ntitle = {{TCS}: A Shell for Content-Based Text Categorization},\nbooktitle = {IEEE Conference on Artificial Intelligence Applications},\nyear = {1990}\n}\n\n@inproceedings{HAYES90b,\nauthor = {Philip J. Hayes and Steven P. Weinstein},\ntitle = {{CONSTRUE/TIS:} A System for Content-Based Indexing of a\nDatabase of News Stories},\nbooktitle = {Second Annual Conference on Innovative Applications of\nArtificial Intelligence},\nyear = {1990}\n}\n\n@incollection{HAYES92 ,\nauthor = {Philip J. Hayes},\ntitle = {Intelligent High-Volume Text Processing using Shallow,\nDomain-Specific Techniques},\nbooktitle = {Text-Based Intelligent Systems},\npublisher = {Lawrence Erlbaum},\naddress = {Hillsdale, NJ},\nyear = {1992},\neditor = {Paul S. Jacobs}\n}\n\n@inproceedings{LEWIS91c ,\nauthor = {David D. Lewis},\ntitle = {Evaluating Text Categorization},\nbooktitle = {Proceedings of Speech and Natural Language Workshop},\nyear = {1991},\nmonth = {feb},\norganization = {Defense Advanced Research Projects Agency},\npublisher = {Morgan Kaufmann},\npages = {312--318}\n\n}\n\n@phdthesis{LEWIS91d,\nauthor = {David Dolan Lewis},\ntitle = {Representation and Learning in Information Retrieval},\nschool = {Computer Science Dept.; Univ. of Massachusetts; Amherst, MA 01003},\nyear = 1992},\nnote = {Technical Report 91--93.}\n}\n\n@inproceedings{LEWIS91e,\nauthor = {David D. Lewis},\ntitle = {Data Extraction as Text Categorization: An Experiment with\nthe {MUC-3} Corpus},\nbooktitle = {Proceedings of the Third Message Understanding Evaluation\nand Conference},\nyear = {1991},\nmonth = {may},\norganization = {Defense Advanced Research Projects Agency},\npublisher = {Morgan Kaufmann},\naddress = {Los Altos, CA}\n\n}\n\n@inproceedings{LEWIS92b,\nauthor = {David D. Lewis},\ntitle = {An Evaluation of Phrasal and Clustered Representations on a Text\nCategorization Task},\nbooktitle = {Fifteenth Annual International ACM SIGIR Conference on\nResearch and Development in Information Retrieval},\nyear = {1992},\npages = {37--50}\n}\n\n@inproceedings{LEWIS92d ,\nauthor = {David D. Lewis and Richard M. Tong},\ntitle = {Text Filtering in {MUC-3} and {MUC-4}},\nbooktitle = {Proceedings of the Fourth Message Understanding Conference ({MUC-4})},\nyear = {1992},\nmonth = {jun},\norganization = {Defense Advanced Research Projects Agency},\npublisher = {Morgan Kaufmann},\naddress = {Los Altos, CA}\n}\n\n@inproceedings{LEWIS92e,\nauthor = {David D. Lewis},\ntitle = {Feature Selection and Feature Extraction for Text Categorization},\nbooktitle = {Proceedings of Speech and Natural Language Workshop},\nyear = {1992},\nmonth = {feb} ,\norganization = {Defense Advanced Research Projects Agency},\npublisher = {Morgan Kaufmann},\npages = {212--217}\n}\n\n@inproceedings{LEWIS94b,\nauthor = {David D. Lewis and Marc Ringuette},\ntitle = {A Comparison of Two Learning Algorithms for Text Categorization},\nbooktitle = {Symposium on Document Analysis and Information Retrieval},\nyear = {1994},\norganization = {ISRI; Univ. of Nevada, Las Vegas},\naddress = {Las Vegas, NV},\nmonth = {apr},\npages = {81--93}\n}\n\n@article{LEWIS94d,\nauthor = {David D. Lewis and Philip J. Hayes},\ntitle = {Guest Editorial},\njournal = {ACM Transactions on Information Systems},\nyear = {1994},\nvolume = {12},\nnumber = {3},\npages = {231},\nmonth = {jul}\n}\n\n@article{SPARCKJONES76,\nauthor = {K. {Sparck Jones} and C. J. {van Rijsbergen}},\ntitle = {Information Retrieval Test Collections},\njournal = {Journal of Documentation},\nyear = {1976},\nvolume = {32},\nnumber = {1},\npages = {59--75}\n}\n\n@book{WEISS91,\nauthor = {Sholom M. Weiss and Casimir A. Kulikowski},\ntitle = {Computer Systems That Learn},\npublisher = {Morgan Kaufmann},\nyear = {1991},\naddress = {San Mateo, CA}\n}\n", "homepage": "https://kdd.ics.uci.edu/databases/reuters21578/reuters21578.html", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "topics": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "lewis_split": {"dtype": "string", "id": null, "_type": "Value"}, "cgis_split": {"dtype": "string", "id": null, "_type": "Value"}, "old_id": {"dtype": "string", "id": null, "_type": "Value"}, "new_id": {"dtype": "string", "id": null, "_type": "Value"}, "places": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "people": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "orgs": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "exchanges": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "date": {"dtype": "string", "id": null, "_type": "Value"}, "title": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "reuters21578", "config_name": "ModLewis", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"test": {"name": "test", "num_bytes": 5402333, "num_examples": 5458, "dataset_name": "reuters21578"}, "train": {"name": "train", "num_bytes": 13019011, "num_examples": 12449, "dataset_name": "reuters21578"}, "unused": {"name": "unused", "num_bytes": 960567, "num_examples": 720, "dataset_name": "reuters21578"}}, "download_checksums": {"https://kdd.ics.uci.edu/databases/reuters21578/reuters21578.tar.gz": {"num_bytes": 8150596, "checksum": "3bae43c9b14e387f76a61b6d82bf98a4fb5d3ef99ef7e7075ff2ccbcf59f9d30"}}, "download_size": 8150596, "post_processing_size": null, "dataset_size": 19381911, "size_in_bytes": 27532507}, "ModApte": {"description": "The Reuters-21578 dataset is one of the most widely used data collections for text\ncategorization research. It is collected from the Reuters financial newswire service in 1987.\n", "citation": "@article{APTE94,\nauthor = {Chidanand Apt{'{e}} and Fred Damerau and Sholom M. Weiss},\ntitle = {Automated Learning of Decision Rules for Text Categorization},\njournal = {ACM Transactions on Information Systems},\nyear = {1994},\nnote = {To appear.}\n}\n\n@inproceedings{APTE94b,\nauthor = {Chidanand Apt{'{e}} and Fred Damerau and Sholom M. Weiss},\ntitle = {Toward Language Independent Automated Learning of Text Categorization Models},\nbooktitle = {sigir94},\nyear = {1994},\nnote = {To appear.}\n}\n\n@inproceedings{HAYES8},\nauthor = {Philip J. Hayes and Peggy M. Anderson and Irene B. Nirenburg and\nLinda M. Schmandt},\ntitle = {{TCS}: A Shell for Content-Based Text Categorization},\nbooktitle = {IEEE Conference on Artificial Intelligence Applications},\nyear = {1990}\n}\n\n@inproceedings{HAYES90b,\nauthor = {Philip J. Hayes and Steven P. Weinstein},\ntitle = {{CONSTRUE/TIS:} A System for Content-Based Indexing of a\nDatabase of News Stories},\nbooktitle = {Second Annual Conference on Innovative Applications of\nArtificial Intelligence},\nyear = {1990}\n}\n\n@incollection{HAYES92 ,\nauthor = {Philip J. Hayes},\ntitle = {Intelligent High-Volume Text Processing using Shallow,\nDomain-Specific Techniques},\nbooktitle = {Text-Based Intelligent Systems},\npublisher = {Lawrence Erlbaum},\naddress = {Hillsdale, NJ},\nyear = {1992},\neditor = {Paul S. Jacobs}\n}\n\n@inproceedings{LEWIS91c ,\nauthor = {David D. Lewis},\ntitle = {Evaluating Text Categorization},\nbooktitle = {Proceedings of Speech and Natural Language Workshop},\nyear = {1991},\nmonth = {feb},\norganization = {Defense Advanced Research Projects Agency},\npublisher = {Morgan Kaufmann},\npages = {312--318}\n\n}\n\n@phdthesis{LEWIS91d,\nauthor = {David Dolan Lewis},\ntitle = {Representation and Learning in Information Retrieval},\nschool = {Computer Science Dept.; Univ. of Massachusetts; Amherst, MA 01003},\nyear = 1992},\nnote = {Technical Report 91--93.}\n}\n\n@inproceedings{LEWIS91e,\nauthor = {David D. Lewis},\ntitle = {Data Extraction as Text Categorization: An Experiment with\nthe {MUC-3} Corpus},\nbooktitle = {Proceedings of the Third Message Understanding Evaluation\nand Conference},\nyear = {1991},\nmonth = {may},\norganization = {Defense Advanced Research Projects Agency},\npublisher = {Morgan Kaufmann},\naddress = {Los Altos, CA}\n\n}\n\n@inproceedings{LEWIS92b,\nauthor = {David D. Lewis},\ntitle = {An Evaluation of Phrasal and Clustered Representations on a Text\nCategorization Task},\nbooktitle = {Fifteenth Annual International ACM SIGIR Conference on\nResearch and Development in Information Retrieval},\nyear = {1992},\npages = {37--50}\n}\n\n@inproceedings{LEWIS92d ,\nauthor = {David D. Lewis and Richard M. Tong},\ntitle = {Text Filtering in {MUC-3} and {MUC-4}},\nbooktitle = {Proceedings of the Fourth Message Understanding Conference ({MUC-4})},\nyear = {1992},\nmonth = {jun},\norganization = {Defense Advanced Research Projects Agency},\npublisher = {Morgan Kaufmann},\naddress = {Los Altos, CA}\n}\n\n@inproceedings{LEWIS92e,\nauthor = {David D. Lewis},\ntitle = {Feature Selection and Feature Extraction for Text Categorization},\nbooktitle = {Proceedings of Speech and Natural Language Workshop},\nyear = {1992},\nmonth = {feb} ,\norganization = {Defense Advanced Research Projects Agency},\npublisher = {Morgan Kaufmann},\npages = {212--217}\n}\n\n@inproceedings{LEWIS94b,\nauthor = {David D. Lewis and Marc Ringuette},\ntitle = {A Comparison of Two Learning Algorithms for Text Categorization},\nbooktitle = {Symposium on Document Analysis and Information Retrieval},\nyear = {1994},\norganization = {ISRI; Univ. of Nevada, Las Vegas},\naddress = {Las Vegas, NV},\nmonth = {apr},\npages = {81--93}\n}\n\n@article{LEWIS94d,\nauthor = {David D. Lewis and Philip J. Hayes},\ntitle = {Guest Editorial},\njournal = {ACM Transactions on Information Systems},\nyear = {1994},\nvolume = {12},\nnumber = {3},\npages = {231},\nmonth = {jul}\n}\n\n@article{SPARCKJONES76,\nauthor = {K. {Sparck Jones} and C. J. {van Rijsbergen}},\ntitle = {Information Retrieval Test Collections},\njournal = {Journal of Documentation},\nyear = {1976},\nvolume = {32},\nnumber = {1},\npages = {59--75}\n}\n\n@book{WEISS91,\nauthor = {Sholom M. Weiss and Casimir A. Kulikowski},\ntitle = {Computer Systems That Learn},\npublisher = {Morgan Kaufmann},\nyear = {1991},\naddress = {San Mateo, CA}\n}\n", "homepage": "https://kdd.ics.uci.edu/databases/reuters21578/reuters21578.html", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "topics": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "lewis_split": {"dtype": "string", "id": null, "_type": "Value"}, "cgis_split": {"dtype": "string", "id": null, "_type": "Value"}, "old_id": {"dtype": "string", "id": null, "_type": "Value"}, "new_id": {"dtype": "string", "id": null, "_type": "Value"}, "places": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "people": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "orgs": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "exchanges": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "date": {"dtype": "string", "id": null, "_type": "Value"}, "title": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "reuters21578", "config_name": "ModApte", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"test": {"name": "test", "num_bytes": 2968479, "num_examples": 3009, "dataset_name": "reuters21578"}, "train": {"name": "train", "num_bytes": 9128558, "num_examples": 8762, "dataset_name": "reuters21578"}, "unused": {"name": "unused", "num_bytes": 960567, "num_examples": 720, "dataset_name": "reuters21578"}}, "download_checksums": {"https://kdd.ics.uci.edu/databases/reuters21578/reuters21578.tar.gz": {"num_bytes": 8150596, "checksum": "3bae43c9b14e387f76a61b6d82bf98a4fb5d3ef99ef7e7075ff2ccbcf59f9d30"}}, "download_size": 8150596, "post_processing_size": null, "dataset_size": 13057604, "size_in_bytes": 21208200}}
|
|
|
1 |
+
{"ModHayes": {"description": "The Reuters-21578 dataset is one of the most widely used data collections for text\ncategorization research. It is collected from the Reuters financial newswire service in 1987.\n", "citation": "@article{APTE94,\nauthor = {Chidanand Apt{'{e}} and Fred Damerau and Sholom M. Weiss},\ntitle = {Automated Learning of Decision Rules for Text Categorization},\njournal = {ACM Transactions on Information Systems},\nyear = {1994},\nnote = {To appear.}\n}\n\n@inproceedings{APTE94b,\nauthor = {Chidanand Apt{'{e}} and Fred Damerau and Sholom M. Weiss},\ntitle = {Toward Language Independent Automated Learning of Text Categorization Models},\nbooktitle = {sigir94},\nyear = {1994},\nnote = {To appear.}\n}\n\n@inproceedings{HAYES8},\nauthor = {Philip J. Hayes and Peggy M. Anderson and Irene B. Nirenburg and\nLinda M. Schmandt},\ntitle = {{TCS}: A Shell for Content-Based Text Categorization},\nbooktitle = {IEEE Conference on Artificial Intelligence Applications},\nyear = {1990}\n}\n\n@inproceedings{HAYES90b,\nauthor = {Philip J. Hayes and Steven P. Weinstein},\ntitle = {{CONSTRUE/TIS:} A System for Content-Based Indexing of a\nDatabase of News Stories},\nbooktitle = {Second Annual Conference on Innovative Applications of\nArtificial Intelligence},\nyear = {1990}\n}\n\n@incollection{HAYES92 ,\nauthor = {Philip J. Hayes},\ntitle = {Intelligent High-Volume Text Processing using Shallow,\nDomain-Specific Techniques},\nbooktitle = {Text-Based Intelligent Systems},\npublisher = {Lawrence Erlbaum},\naddress = {Hillsdale, NJ},\nyear = {1992},\neditor = {Paul S. Jacobs}\n}\n\n@inproceedings{LEWIS91c ,\nauthor = {David D. Lewis},\ntitle = {Evaluating Text Categorization},\nbooktitle = {Proceedings of Speech and Natural Language Workshop},\nyear = {1991},\nmonth = {feb},\norganization = {Defense Advanced Research Projects Agency},\npublisher = {Morgan Kaufmann},\npages = {312--318}\n\n}\n\n@phdthesis{LEWIS91d,\nauthor = {David Dolan Lewis},\ntitle = {Representation and Learning in Information Retrieval},\nschool = {Computer Science Dept.; Univ. of Massachusetts; Amherst, MA 01003},\nyear = 1992},\nnote = {Technical Report 91--93.}\n}\n\n@inproceedings{LEWIS91e,\nauthor = {David D. Lewis},\ntitle = {Data Extraction as Text Categorization: An Experiment with\nthe {MUC-3} Corpus},\nbooktitle = {Proceedings of the Third Message Understanding Evaluation\nand Conference},\nyear = {1991},\nmonth = {may},\norganization = {Defense Advanced Research Projects Agency},\npublisher = {Morgan Kaufmann},\naddress = {Los Altos, CA}\n\n}\n\n@inproceedings{LEWIS92b,\nauthor = {David D. Lewis},\ntitle = {An Evaluation of Phrasal and Clustered Representations on a Text\nCategorization Task},\nbooktitle = {Fifteenth Annual International ACM SIGIR Conference on\nResearch and Development in Information Retrieval},\nyear = {1992},\npages = {37--50}\n}\n\n@inproceedings{LEWIS92d ,\nauthor = {David D. Lewis and Richard M. Tong},\ntitle = {Text Filtering in {MUC-3} and {MUC-4}},\nbooktitle = {Proceedings of the Fourth Message Understanding Conference ({MUC-4})},\nyear = {1992},\nmonth = {jun},\norganization = {Defense Advanced Research Projects Agency},\npublisher = {Morgan Kaufmann},\naddress = {Los Altos, CA}\n}\n\n@inproceedings{LEWIS92e,\nauthor = {David D. Lewis},\ntitle = {Feature Selection and Feature Extraction for Text Categorization},\nbooktitle = {Proceedings of Speech and Natural Language Workshop},\nyear = {1992},\nmonth = {feb} ,\norganization = {Defense Advanced Research Projects Agency},\npublisher = {Morgan Kaufmann},\npages = {212--217}\n}\n\n@inproceedings{LEWIS94b,\nauthor = {David D. Lewis and Marc Ringuette},\ntitle = {A Comparison of Two Learning Algorithms for Text Categorization},\nbooktitle = {Symposium on Document Analysis and Information Retrieval},\nyear = {1994},\norganization = {ISRI; Univ. of Nevada, Las Vegas},\naddress = {Las Vegas, NV},\nmonth = {apr},\npages = {81--93}\n}\n\n@article{LEWIS94d,\nauthor = {David D. Lewis and Philip J. Hayes},\ntitle = {Guest Editorial},\njournal = {ACM Transactions on Information Systems},\nyear = {1994},\nvolume = {12},\nnumber = {3},\npages = {231},\nmonth = {jul}\n}\n\n@article{SPARCKJONES76,\nauthor = {K. {Sparck Jones} and C. J. {van Rijsbergen}},\ntitle = {Information Retrieval Test Collections},\njournal = {Journal of Documentation},\nyear = {1976},\nvolume = {32},\nnumber = {1},\npages = {59--75}\n}\n\n@book{WEISS91,\nauthor = {Sholom M. Weiss and Casimir A. Kulikowski},\ntitle = {Computer Systems That Learn},\npublisher = {Morgan Kaufmann},\nyear = {1991},\naddress = {San Mateo, CA}\n}\n", "homepage": "https://kdd.ics.uci.edu/databases/reuters21578/reuters21578.html", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "text_type": {"dtype": "string", "id": null, "_type": "Value"}, "topics": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "lewis_split": {"dtype": "string", "id": null, "_type": "Value"}, "cgis_split": {"dtype": "string", "id": null, "_type": "Value"}, "old_id": {"dtype": "string", "id": null, "_type": "Value"}, "new_id": {"dtype": "string", "id": null, "_type": "Value"}, "places": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "people": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "orgs": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "exchanges": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "date": {"dtype": "string", "id": null, "_type": "Value"}, "title": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "reuters21578", "config_name": "ModHayes", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"test": {"name": "test", "num_bytes": 948316, "num_examples": 722, "dataset_name": "reuters21578"}, "train": {"name": "train", "num_bytes": 19071322, "num_examples": 20856, "dataset_name": "reuters21578"}}, "download_checksums": {"https://kdd.ics.uci.edu/databases/reuters21578/reuters21578.tar.gz": {"num_bytes": 8150596, "checksum": "3bae43c9b14e387f76a61b6d82bf98a4fb5d3ef99ef7e7075ff2ccbcf59f9d30"}}, "download_size": 8150596, "post_processing_size": null, "dataset_size": 20019638, "size_in_bytes": 28170234}, "ModLewis": {"description": "The Reuters-21578 dataset is one of the most widely used data collections for text\ncategorization research. It is collected from the Reuters financial newswire service in 1987.\n", "citation": "@article{APTE94,\nauthor = {Chidanand Apt{'{e}} and Fred Damerau and Sholom M. Weiss},\ntitle = {Automated Learning of Decision Rules for Text Categorization},\njournal = {ACM Transactions on Information Systems},\nyear = {1994},\nnote = {To appear.}\n}\n\n@inproceedings{APTE94b,\nauthor = {Chidanand Apt{'{e}} and Fred Damerau and Sholom M. Weiss},\ntitle = {Toward Language Independent Automated Learning of Text Categorization Models},\nbooktitle = {sigir94},\nyear = {1994},\nnote = {To appear.}\n}\n\n@inproceedings{HAYES8},\nauthor = {Philip J. Hayes and Peggy M. Anderson and Irene B. Nirenburg and\nLinda M. Schmandt},\ntitle = {{TCS}: A Shell for Content-Based Text Categorization},\nbooktitle = {IEEE Conference on Artificial Intelligence Applications},\nyear = {1990}\n}\n\n@inproceedings{HAYES90b,\nauthor = {Philip J. Hayes and Steven P. Weinstein},\ntitle = {{CONSTRUE/TIS:} A System for Content-Based Indexing of a\nDatabase of News Stories},\nbooktitle = {Second Annual Conference on Innovative Applications of\nArtificial Intelligence},\nyear = {1990}\n}\n\n@incollection{HAYES92 ,\nauthor = {Philip J. Hayes},\ntitle = {Intelligent High-Volume Text Processing using Shallow,\nDomain-Specific Techniques},\nbooktitle = {Text-Based Intelligent Systems},\npublisher = {Lawrence Erlbaum},\naddress = {Hillsdale, NJ},\nyear = {1992},\neditor = {Paul S. Jacobs}\n}\n\n@inproceedings{LEWIS91c ,\nauthor = {David D. Lewis},\ntitle = {Evaluating Text Categorization},\nbooktitle = {Proceedings of Speech and Natural Language Workshop},\nyear = {1991},\nmonth = {feb},\norganization = {Defense Advanced Research Projects Agency},\npublisher = {Morgan Kaufmann},\npages = {312--318}\n\n}\n\n@phdthesis{LEWIS91d,\nauthor = {David Dolan Lewis},\ntitle = {Representation and Learning in Information Retrieval},\nschool = {Computer Science Dept.; Univ. of Massachusetts; Amherst, MA 01003},\nyear = 1992},\nnote = {Technical Report 91--93.}\n}\n\n@inproceedings{LEWIS91e,\nauthor = {David D. Lewis},\ntitle = {Data Extraction as Text Categorization: An Experiment with\nthe {MUC-3} Corpus},\nbooktitle = {Proceedings of the Third Message Understanding Evaluation\nand Conference},\nyear = {1991},\nmonth = {may},\norganization = {Defense Advanced Research Projects Agency},\npublisher = {Morgan Kaufmann},\naddress = {Los Altos, CA}\n\n}\n\n@inproceedings{LEWIS92b,\nauthor = {David D. Lewis},\ntitle = {An Evaluation of Phrasal and Clustered Representations on a Text\nCategorization Task},\nbooktitle = {Fifteenth Annual International ACM SIGIR Conference on\nResearch and Development in Information Retrieval},\nyear = {1992},\npages = {37--50}\n}\n\n@inproceedings{LEWIS92d ,\nauthor = {David D. Lewis and Richard M. Tong},\ntitle = {Text Filtering in {MUC-3} and {MUC-4}},\nbooktitle = {Proceedings of the Fourth Message Understanding Conference ({MUC-4})},\nyear = {1992},\nmonth = {jun},\norganization = {Defense Advanced Research Projects Agency},\npublisher = {Morgan Kaufmann},\naddress = {Los Altos, CA}\n}\n\n@inproceedings{LEWIS92e,\nauthor = {David D. Lewis},\ntitle = {Feature Selection and Feature Extraction for Text Categorization},\nbooktitle = {Proceedings of Speech and Natural Language Workshop},\nyear = {1992},\nmonth = {feb} ,\norganization = {Defense Advanced Research Projects Agency},\npublisher = {Morgan Kaufmann},\npages = {212--217}\n}\n\n@inproceedings{LEWIS94b,\nauthor = {David D. Lewis and Marc Ringuette},\ntitle = {A Comparison of Two Learning Algorithms for Text Categorization},\nbooktitle = {Symposium on Document Analysis and Information Retrieval},\nyear = {1994},\norganization = {ISRI; Univ. of Nevada, Las Vegas},\naddress = {Las Vegas, NV},\nmonth = {apr},\npages = {81--93}\n}\n\n@article{LEWIS94d,\nauthor = {David D. Lewis and Philip J. Hayes},\ntitle = {Guest Editorial},\njournal = {ACM Transactions on Information Systems},\nyear = {1994},\nvolume = {12},\nnumber = {3},\npages = {231},\nmonth = {jul}\n}\n\n@article{SPARCKJONES76,\nauthor = {K. {Sparck Jones} and C. J. {van Rijsbergen}},\ntitle = {Information Retrieval Test Collections},\njournal = {Journal of Documentation},\nyear = {1976},\nvolume = {32},\nnumber = {1},\npages = {59--75}\n}\n\n@book{WEISS91,\nauthor = {Sholom M. Weiss and Casimir A. Kulikowski},\ntitle = {Computer Systems That Learn},\npublisher = {Morgan Kaufmann},\nyear = {1991},\naddress = {San Mateo, CA}\n}\n", "homepage": "https://kdd.ics.uci.edu/databases/reuters21578/reuters21578.html", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "text_type": {"dtype": "string", "id": null, "_type": "Value"}, "topics": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "lewis_split": {"dtype": "string", "id": null, "_type": "Value"}, "cgis_split": {"dtype": "string", "id": null, "_type": "Value"}, "old_id": {"dtype": "string", "id": null, "_type": "Value"}, "new_id": {"dtype": "string", "id": null, "_type": "Value"}, "places": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "people": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "orgs": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "exchanges": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "date": {"dtype": "string", "id": null, "_type": "Value"}, "title": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "reuters21578", "config_name": "ModLewis", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"test": {"name": "test", "num_bytes": 5400578, "num_examples": 6188, "dataset_name": "reuters21578"}, "train": {"name": "train", "num_bytes": 12994735, "num_examples": 13625, "dataset_name": "reuters21578"}, "unused": {"name": "unused", "num_bytes": 948316, "num_examples": 722, "dataset_name": "reuters21578"}}, "download_checksums": {"https://kdd.ics.uci.edu/databases/reuters21578/reuters21578.tar.gz": {"num_bytes": 8150596, "checksum": "3bae43c9b14e387f76a61b6d82bf98a4fb5d3ef99ef7e7075ff2ccbcf59f9d30"}}, "download_size": 8150596, "post_processing_size": null, "dataset_size": 19343629, "size_in_bytes": 27494225}, "ModApte": {"description": "The Reuters-21578 dataset is one of the most widely used data collections for text\ncategorization research. It is collected from the Reuters financial newswire service in 1987.\n", "citation": "@article{APTE94,\nauthor = {Chidanand Apt{'{e}} and Fred Damerau and Sholom M. Weiss},\ntitle = {Automated Learning of Decision Rules for Text Categorization},\njournal = {ACM Transactions on Information Systems},\nyear = {1994},\nnote = {To appear.}\n}\n\n@inproceedings{APTE94b,\nauthor = {Chidanand Apt{'{e}} and Fred Damerau and Sholom M. Weiss},\ntitle = {Toward Language Independent Automated Learning of Text Categorization Models},\nbooktitle = {sigir94},\nyear = {1994},\nnote = {To appear.}\n}\n\n@inproceedings{HAYES8},\nauthor = {Philip J. Hayes and Peggy M. Anderson and Irene B. Nirenburg and\nLinda M. Schmandt},\ntitle = {{TCS}: A Shell for Content-Based Text Categorization},\nbooktitle = {IEEE Conference on Artificial Intelligence Applications},\nyear = {1990}\n}\n\n@inproceedings{HAYES90b,\nauthor = {Philip J. Hayes and Steven P. Weinstein},\ntitle = {{CONSTRUE/TIS:} A System for Content-Based Indexing of a\nDatabase of News Stories},\nbooktitle = {Second Annual Conference on Innovative Applications of\nArtificial Intelligence},\nyear = {1990}\n}\n\n@incollection{HAYES92 ,\nauthor = {Philip J. Hayes},\ntitle = {Intelligent High-Volume Text Processing using Shallow,\nDomain-Specific Techniques},\nbooktitle = {Text-Based Intelligent Systems},\npublisher = {Lawrence Erlbaum},\naddress = {Hillsdale, NJ},\nyear = {1992},\neditor = {Paul S. Jacobs}\n}\n\n@inproceedings{LEWIS91c ,\nauthor = {David D. Lewis},\ntitle = {Evaluating Text Categorization},\nbooktitle = {Proceedings of Speech and Natural Language Workshop},\nyear = {1991},\nmonth = {feb},\norganization = {Defense Advanced Research Projects Agency},\npublisher = {Morgan Kaufmann},\npages = {312--318}\n\n}\n\n@phdthesis{LEWIS91d,\nauthor = {David Dolan Lewis},\ntitle = {Representation and Learning in Information Retrieval},\nschool = {Computer Science Dept.; Univ. of Massachusetts; Amherst, MA 01003},\nyear = 1992},\nnote = {Technical Report 91--93.}\n}\n\n@inproceedings{LEWIS91e,\nauthor = {David D. Lewis},\ntitle = {Data Extraction as Text Categorization: An Experiment with\nthe {MUC-3} Corpus},\nbooktitle = {Proceedings of the Third Message Understanding Evaluation\nand Conference},\nyear = {1991},\nmonth = {may},\norganization = {Defense Advanced Research Projects Agency},\npublisher = {Morgan Kaufmann},\naddress = {Los Altos, CA}\n\n}\n\n@inproceedings{LEWIS92b,\nauthor = {David D. Lewis},\ntitle = {An Evaluation of Phrasal and Clustered Representations on a Text\nCategorization Task},\nbooktitle = {Fifteenth Annual International ACM SIGIR Conference on\nResearch and Development in Information Retrieval},\nyear = {1992},\npages = {37--50}\n}\n\n@inproceedings{LEWIS92d ,\nauthor = {David D. Lewis and Richard M. Tong},\ntitle = {Text Filtering in {MUC-3} and {MUC-4}},\nbooktitle = {Proceedings of the Fourth Message Understanding Conference ({MUC-4})},\nyear = {1992},\nmonth = {jun},\norganization = {Defense Advanced Research Projects Agency},\npublisher = {Morgan Kaufmann},\naddress = {Los Altos, CA}\n}\n\n@inproceedings{LEWIS92e,\nauthor = {David D. Lewis},\ntitle = {Feature Selection and Feature Extraction for Text Categorization},\nbooktitle = {Proceedings of Speech and Natural Language Workshop},\nyear = {1992},\nmonth = {feb} ,\norganization = {Defense Advanced Research Projects Agency},\npublisher = {Morgan Kaufmann},\npages = {212--217}\n}\n\n@inproceedings{LEWIS94b,\nauthor = {David D. Lewis and Marc Ringuette},\ntitle = {A Comparison of Two Learning Algorithms for Text Categorization},\nbooktitle = {Symposium on Document Analysis and Information Retrieval},\nyear = {1994},\norganization = {ISRI; Univ. of Nevada, Las Vegas},\naddress = {Las Vegas, NV},\nmonth = {apr},\npages = {81--93}\n}\n\n@article{LEWIS94d,\nauthor = {David D. Lewis and Philip J. Hayes},\ntitle = {Guest Editorial},\njournal = {ACM Transactions on Information Systems},\nyear = {1994},\nvolume = {12},\nnumber = {3},\npages = {231},\nmonth = {jul}\n}\n\n@article{SPARCKJONES76,\nauthor = {K. {Sparck Jones} and C. J. {van Rijsbergen}},\ntitle = {Information Retrieval Test Collections},\njournal = {Journal of Documentation},\nyear = {1976},\nvolume = {32},\nnumber = {1},\npages = {59--75}\n}\n\n@book{WEISS91,\nauthor = {Sholom M. Weiss and Casimir A. Kulikowski},\ntitle = {Computer Systems That Learn},\npublisher = {Morgan Kaufmann},\nyear = {1991},\naddress = {San Mateo, CA}\n}\n", "homepage": "https://kdd.ics.uci.edu/databases/reuters21578/reuters21578.html", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "text_type": {"dtype": "string", "id": null, "_type": "Value"}, "topics": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "lewis_split": {"dtype": "string", "id": null, "_type": "Value"}, "cgis_split": {"dtype": "string", "id": null, "_type": "Value"}, "old_id": {"dtype": "string", "id": null, "_type": "Value"}, "new_id": {"dtype": "string", "id": null, "_type": "Value"}, "places": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "people": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "orgs": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "exchanges": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "date": {"dtype": "string", "id": null, "_type": "Value"}, "title": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "reuters21578", "config_name": "ModApte", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"test": {"name": "test", "num_bytes": 2971725, "num_examples": 3299, "dataset_name": "reuters21578"}, "train": {"name": "train", "num_bytes": 9161251, "num_examples": 9603, "dataset_name": "reuters21578"}, "unused": {"name": "unused", "num_bytes": 948316, "num_examples": 722, "dataset_name": "reuters21578"}}, "download_checksums": {"https://kdd.ics.uci.edu/databases/reuters21578/reuters21578.tar.gz": {"num_bytes": 8150596, "checksum": "3bae43c9b14e387f76a61b6d82bf98a4fb5d3ef99ef7e7075ff2ccbcf59f9d30"}}, "download_size": 8150596, "post_processing_size": null, "dataset_size": 13081292, "size_in_bytes": 21231888}}
|
reuters21578.py
CHANGED
@@ -232,6 +232,7 @@ class Reuters21578(datasets.GeneratorBasedBuilder):
|
|
232 |
features=datasets.Features(
|
233 |
{
|
234 |
"text": datasets.Value("string"),
|
|
|
235 |
"topics": datasets.Sequence(datasets.Value("string")),
|
236 |
"lewis_split": datasets.Value("string"),
|
237 |
"cgis_split": datasets.Value("string"),
|
@@ -259,28 +260,16 @@ class Reuters21578(datasets.GeneratorBasedBuilder):
|
|
259 |
return [
|
260 |
datasets.SplitGenerator(
|
261 |
name=datasets.Split.TEST,
|
262 |
-
gen_kwargs={
|
263 |
-
"filepath": files,
|
264 |
-
"split": "PUBLISHED-TESTSET",
|
265 |
-
},
|
266 |
),
|
267 |
datasets.SplitGenerator(
|
268 |
name=datasets.Split.TRAIN,
|
269 |
-
gen_kwargs={
|
270 |
-
"filepath": files,
|
271 |
-
"split": "TRAINING-SET",
|
272 |
-
},
|
273 |
),
|
274 |
]
|
275 |
else:
|
276 |
return [
|
277 |
-
datasets.SplitGenerator(
|
278 |
-
name=datasets.Split.TEST,
|
279 |
-
gen_kwargs={
|
280 |
-
"filepath": files,
|
281 |
-
"split": "TEST",
|
282 |
-
},
|
283 |
-
),
|
284 |
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": files, "split": "TRAIN"}),
|
285 |
datasets.SplitGenerator(name="unused", gen_kwargs={"filepath": files, "split": "NOT-USED"}),
|
286 |
]
|
@@ -292,19 +281,21 @@ class Reuters21578(datasets.GeneratorBasedBuilder):
|
|
292 |
file, encoding="utf-8", errors="ignore"
|
293 |
) as f: # only the file reut2-017 has one line non UTF-8 encoded so we can ignore it
|
294 |
line = f.readline()
|
295 |
-
lewis_split = ""
|
296 |
-
cgis_split = ""
|
297 |
-
old_id = ""
|
298 |
-
new_id = ""
|
299 |
-
topics = []
|
300 |
-
places = []
|
301 |
-
people = []
|
302 |
-
orgs = []
|
303 |
-
exchanges = []
|
304 |
-
date = ""
|
305 |
-
title = ""
|
306 |
while line:
|
307 |
if line.startswith("<REUTERS"):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
308 |
line = line.split()
|
309 |
lewis_split = line[2].split("=")[1]
|
310 |
cgis_split = line[3].split("=")[1]
|
@@ -375,13 +366,34 @@ class Reuters21578(datasets.GeneratorBasedBuilder):
|
|
375 |
elif line.startswith("<TITLE>"):
|
376 |
title = line[7:-9]
|
377 |
line = f.readline()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
378 |
elif "<BODY>" in line:
|
379 |
text = line.split("<BODY>")[1]
|
380 |
line = f.readline()
|
381 |
while "</BODY>" not in line:
|
382 |
text += line
|
383 |
line = f.readline()
|
384 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
385 |
yield new_id, {
|
386 |
"lewis_split": lewis_split,
|
387 |
"cgis_split": cgis_split,
|
@@ -395,8 +407,8 @@ class Reuters21578(datasets.GeneratorBasedBuilder):
|
|
395 |
"date": date,
|
396 |
"title": title,
|
397 |
"text": text,
|
|
|
398 |
}
|
399 |
line = f.readline()
|
400 |
-
|
401 |
else:
|
402 |
line = f.readline()
|
|
|
232 |
features=datasets.Features(
|
233 |
{
|
234 |
"text": datasets.Value("string"),
|
235 |
+
"text_type": datasets.Value("string"),
|
236 |
"topics": datasets.Sequence(datasets.Value("string")),
|
237 |
"lewis_split": datasets.Value("string"),
|
238 |
"cgis_split": datasets.Value("string"),
|
|
|
260 |
return [
|
261 |
datasets.SplitGenerator(
|
262 |
name=datasets.Split.TEST,
|
263 |
+
gen_kwargs={"filepath": files, "split": "PUBLISHED-TESTSET"},
|
|
|
|
|
|
|
264 |
),
|
265 |
datasets.SplitGenerator(
|
266 |
name=datasets.Split.TRAIN,
|
267 |
+
gen_kwargs={"filepath": files, "split": "TRAINING-SET"},
|
|
|
|
|
|
|
268 |
),
|
269 |
]
|
270 |
else:
|
271 |
return [
|
272 |
+
datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": files, "split": "TEST"}),
|
|
|
|
|
|
|
|
|
|
|
|
|
273 |
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": files, "split": "TRAIN"}),
|
274 |
datasets.SplitGenerator(name="unused", gen_kwargs={"filepath": files, "split": "NOT-USED"}),
|
275 |
]
|
|
|
281 |
file, encoding="utf-8", errors="ignore"
|
282 |
) as f: # only the file reut2-017 has one line non UTF-8 encoded so we can ignore it
|
283 |
line = f.readline()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
284 |
while line:
|
285 |
if line.startswith("<REUTERS"):
|
286 |
+
lewis_split = ""
|
287 |
+
cgis_split = ""
|
288 |
+
old_id = ""
|
289 |
+
new_id = ""
|
290 |
+
topics = []
|
291 |
+
places = []
|
292 |
+
people = []
|
293 |
+
orgs = []
|
294 |
+
exchanges = []
|
295 |
+
date = ""
|
296 |
+
title = ""
|
297 |
+
text = ""
|
298 |
+
text_type = ""
|
299 |
line = line.split()
|
300 |
lewis_split = line[2].split("=")[1]
|
301 |
cgis_split = line[3].split("=")[1]
|
|
|
366 |
elif line.startswith("<TITLE>"):
|
367 |
title = line[7:-9]
|
368 |
line = f.readline()
|
369 |
+
elif "*<TITLE>" in line:
|
370 |
+
# These lines start with a variable number of * chars
|
371 |
+
title = line.split("*<TITLE>")[1][:-1]
|
372 |
+
line = f.readline()
|
373 |
+
while "</TITLE>" not in line:
|
374 |
+
# Convert any \n in TYPE="BRIEF" text to spaces to match other titles
|
375 |
+
title += " " + line[:-1]
|
376 |
+
line = f.readline()
|
377 |
elif "<BODY>" in line:
|
378 |
text = line.split("<BODY>")[1]
|
379 |
line = f.readline()
|
380 |
while "</BODY>" not in line:
|
381 |
text += line
|
382 |
line = f.readline()
|
383 |
+
elif line.startswith('<TEXT TYPE="UNPROC">'):
|
384 |
+
text_type = '"UNPROC"'
|
385 |
+
text = line[20:]
|
386 |
+
line = f.readline()
|
387 |
+
while "</TEXT>" not in line:
|
388 |
+
text += line
|
389 |
+
line = f.readline()
|
390 |
+
elif line.startswith('<TEXT TYPE="BRIEF">'):
|
391 |
+
text_type = '"BRIEF"'
|
392 |
+
line = f.readline()
|
393 |
+
elif line.startswith("<TEXT>"):
|
394 |
+
text_type = '"NORM"'
|
395 |
+
line = f.readline()
|
396 |
+
elif line.startswith("</REUTERS>"):
|
397 |
yield new_id, {
|
398 |
"lewis_split": lewis_split,
|
399 |
"cgis_split": cgis_split,
|
|
|
407 |
"date": date,
|
408 |
"title": title,
|
409 |
"text": text,
|
410 |
+
"text_type": text_type,
|
411 |
}
|
412 |
line = f.readline()
|
|
|
413 |
else:
|
414 |
line = f.readline()
|