File size: 7,491 Bytes
c262b11
2d0235a
 
 
c262b11
c298951
 
 
 
 
 
 
 
 
2c08e9b
c298951
 
2c08e9b
c298951
 
2c08e9b
c298951
 
2c08e9b
c298951
2c08e9b
 
04d25c8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b8cd306
 
 
 
 
 
 
 
 
 
1abcc57
 
b8cd306
1abcc57
 
b8cd306
1abcc57
 
 
 
8054559
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
298398d
330601c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0335116
 
 
 
 
 
 
 
 
 
2d411f4
 
 
 
 
0335116
2d411f4
 
 
 
2b6f3e5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8054559
c262b11
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
298398d
1634096
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
298398d
c262b11
c298951
 
 
 
 
 
 
 
04d25c8
 
 
 
 
 
 
 
b8cd306
 
 
 
 
 
 
 
8054559
 
 
 
 
 
 
 
330601c
 
 
 
 
 
 
 
0335116
 
 
 
2d411f4
 
0335116
 
2b6f3e5
 
 
 
 
 
 
 
c262b11
 
 
 
 
 
 
 
1634096
 
 
 
 
 
 
 
c262b11
 
b1f8f12
f721478
b1f8f12
40a4bf3
b1f8f12
 
 
40a4bf3
 
 
 
b1f8f12
0915131
40a4bf3
 
b1f8f12
94f4fd2
b1f8f12
94f4fd2
b1f8f12
 
 
 
 
 
 
94f4fd2
b1f8f12
94f4fd2
b1f8f12
40a4bf3
b1f8f12
 
 
 
40a4bf3
b1f8f12
1497566
b1f8f12
1497566
b1f8f12
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1497566
 
b1f8f12
1497566
 
 
 
 
b1f8f12
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
---
license: odc-by
task_categories:
- text-generation
dataset_info:
- config_name: all
  features:
  - name: section
    dtype: string
  - name: filename
    dtype: string
  - name: text
    dtype: string
  - name: lang
    dtype: string
  splits:
  - name: test
    num_bytes: 193159922
    num_examples: 4334
  - name: validation
    num_bytes: 212095720
    num_examples: 4328
  - name: train
    num_bytes: 7445907253
    num_examples: 159185
  download_size: 2899594863
  dataset_size: 7851162895
- config_name: all-filtered
  features:
  - name: filename
    dtype: string
  - name: text
    dtype: string
  - name: flesch_reading_ease
    dtype: float64
  splits:
  - name: test
    num_bytes: 157823888.30671677
    num_examples: 3549
  - name: validation
    num_bytes: 173010266.388928
    num_examples: 3541
  - name: train
    num_bytes: 6018286403.457957
    num_examples: 129653
  download_size: 2428198753
  dataset_size: 6349120558.153602
- config_name: doc
  features:
  - name: section
    dtype: string
  - name: filename
    dtype: string
  - name: text
    dtype: string
  splits:
  - name: train
    num_bytes: 3241200340.5694714
    num_examples: 62821
  - name: validation
    num_bytes: 85285241.60649045
    num_examples: 1653
  - name: test
    num_bytes: 85336835.82403822
    num_examples: 1654
  download_size: 1309641319
  dataset_size: 3411822418.0
- config_name: docx
  features:
  - name: section
    dtype: string
  - name: filename
    dtype: string
  - name: text
    dtype: string
  splits:
  - name: train
    num_bytes: 4605598.853503184
    num_examples: 141
  - name: validation
    num_bytes: 261310.57324840763
    num_examples: 8
  - name: test
    num_bytes: 261310.57324840763
    num_examples: 8
  download_size: 1788590
  dataset_size: 5128220
- config_name: logs
  features:
  - name: section
    dtype: string
  - name: filename
    dtype: string
  - name: text
    dtype: string
  splits:
  - name: train
    num_bytes: 2350324475.916881
    num_examples: 9223
  - name: validation
    num_bytes: 61924411.541559376
    num_examples: 243
  - name: test
    num_bytes: 61924411.541559376
    num_examples: 243
  download_size: 718096901
  dataset_size: 2474173298.9999995
- config_name: ppt
  features:
  - name: section
    dtype: string
  - name: filename
    dtype: string
  - name: text
    dtype: string
  splits:
  - name: validation
    num_bytes: 11813294
    num_examples: 1230
  - name: train
    num_bytes: 426593595
    num_examples: 43706
  - name: test
    num_bytes: 12242562
    num_examples: 1232
  download_size: 232304159
  dataset_size: 450649451
- config_name: pptx
  features:
  - name: section
    dtype: string
  - name: filename
    dtype: string
  - name: text
    dtype: string
  splits:
  - name: train
    num_bytes: 9517778
    num_examples: 963
  - name: validation
    num_bytes: 513930
    num_examples: 53
  - name: test
    num_bytes: 436852
    num_examples: 54
  download_size: 5314310
  dataset_size: 10468560
- config_name: rtf
  features:
  - name: section
    dtype: string
  - name: filename
    dtype: string
  - name: text
    dtype: string
  splits:
  - name: train
    num_bytes: 61558658.13180516
    num_examples: 942
  - name: validation
    num_bytes: 3398142.4871060173
    num_examples: 52
  - name: test
    num_bytes: 3463491.3810888254
    num_examples: 53
  download_size: 22547280
  dataset_size: 68420292
- config_name: txt
  features:
  - name: section
    dtype: string
  - name: filename
    dtype: string
  - name: text
    dtype: string
  splits:
  - name: train
    num_bytes: 1358006724.1432111
    num_examples: 41393
  - name: validation
    num_bytes: 35727522.10740843
    num_examples: 1089
  - name: test
    num_bytes: 35760329.749380335
    num_examples: 1090
  download_size: 608912009
  dataset_size: 1429494576
configs:
- config_name: all
  data_files:
  - split: test
    path: all/test-*
  - split: validation
    path: all/validation-*
  - split: train
    path: all/train-*
- config_name: all-filtered
  data_files:
  - split: test
    path: all-filtered/test-*
  - split: validation
    path: all-filtered/validation-*
  - split: train
    path: all-filtered/train-*
- config_name: doc
  data_files:
  - split: train
    path: doc/train-*
  - split: validation
    path: doc/validation-*
  - split: test
    path: doc/test-*
- config_name: docx
  data_files:
  - split: train
    path: docx/train-*
  - split: validation
    path: docx/validation-*
  - split: test
    path: docx/test-*
- config_name: logs
  data_files:
  - split: train
    path: logs/train-*
  - split: validation
    path: logs/validation-*
  - split: test
    path: logs/test-*
- config_name: ppt
  data_files:
  - split: validation
    path: ppt/validation-*
  - split: train
    path: ppt/train-*
  - split: test
    path: ppt/test-*
- config_name: pptx
  data_files:
  - split: train
    path: pptx/train-*
  - split: validation
    path: pptx/validation-*
  - split: test
    path: pptx/test-*
- config_name: rtf
  data_files:
  - split: train
    path: rtf/train-*
  - split: validation
    path: rtf/validation-*
  - split: test
    path: rtf/test-*
- config_name: txt
  data_files:
  - split: train
    path: txt/train-*
  - split: validation
    path: txt/validation-*
  - split: test
    path: txt/test-*
---

# govdocs1 Dataset: By File Extension

Markdown-parsed versions of documents in [govdocs1](https://digitalcorpora.org/corpora/file-corpora/files/) with light filtering.

## Usage

Load specific file formats (e.g., `.doc` files) parsed to markdown with `pandoc`:

```python
from datasets import load_dataset

# Replace "doc" with desired config name
dataset = load_dataset("BEE-spoke-data/govdocs1-by-extension", "doc")
```

## Configurations

This dataset includes multiple configurations, each corresponding to a different file extension:

- `doc`
- `docx`
- `logs`
- `ppt`
- `pptx`
- `rtf`
- `txt`

Each configuration contains `train`, `validation`, and `test` splits.

## Dataset Details

- **Download Size**: Varies by configuration
- **Dataset Size**: Varies by configuration
- **Splits**: Train, Validation, Test
- **Features**: Section, Filename, Text

### counts

Here's a summary of the number of examples for each configuration in the dataset (thus far):

1. **DOC Configuration**
   - Train Examples: 38,094
   - Validation Examples: 1,002
   - Test Examples: 1,003

2. **DOCX Configuration**
   - Train Examples: 141
   - Validation Examples: 8
   - Test Examples: 8

3. **Logs Configuration**
   - Train Examples: 9,223
   - Validation Examples: 243
   - Test Examples: 243

4. **PPT Configuration**
   - Train Examples: 13,865
   - Validation Examples: 365
   - Test Examples: 365

5. **PPTX Configuration**
   - Train Examples: 963
   - Validation Examples: 53
   - Test Examples: 54

6. **RTF Configuration**
   - Train Examples: 942
   - Validation Examples: 52
   - Test Examples: 53

7. **TXT Configuration**
   - Train Examples: 41,393
   - Validation Examples: 1,089
   - Test Examples: 1,090



## Citation

```bib
@inproceedings{garfinkel2009bringing,
  title={Bringing Science to Digital Forensics with Standardized Forensic Corpora},
  author={Garfinkel, Simson and others},
  booktitle={Digital Forensic Research Workshop (DFRWS) 2009},
  year={2009},
  address={Montreal, Canada},
  url={https://digitalcorpora.org/corpora/file-corpora/files/}
}
```

For more detailed information on each configuration, refer to the dataset documentation.