agentlans commited on
Commit
8b9f96f
·
verified ·
1 Parent(s): 149e01b

Upload 25 files

Browse files
AcademicWriting.jsonl.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b7f2582148e37b1a658878bd5514ddf40da9857814598745bed1b3d657c57f68
3
+ size 10045339
ContentListing.jsonl.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8351e2e31a3cd10c47b676b066e36679e32cb7027779ede2bb5b152f201dbe22
3
+ size 3523333
CreativeWriting.jsonl.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a33ac9985efb47bdd7fad50c92d8a11c11e2c2cb7f53383e7f9aaa5144332502
3
+ size 3650649
CustomerSupportPage.jsonl.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1f62f75a8b6ffc792b40626cac32dab01d440fe9c635f45bbadcead2f174091d
3
+ size 1429488
DiscussionForumCommentSection.jsonl.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2dbf0427ca8727fdf8383c7d80d4ccf286f11dcd9680b328bc52497b04d7eb36
3
+ size 2182166
FAQs.jsonl.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb2612c03ee43af712db2cfae6d63b631afc2a1b8268826b3f260c0acfdde322
3
+ size 1257447
IncompleteContent.jsonl.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c6aadbcce2e6b03230ed5d5265d866ca89c53d1e6fb0f3499ece7a1defd05a01
3
+ size 59397
KnowledgeArticle.jsonl.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:85c81e5113afe27f38445c709f84adf7daeae43e6de740c91c7b87102b581525
3
+ size 15815270
LegalNotices.jsonl.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:352cbe9f5fbc79eda2936076a6db518993e5dc31715e6d1eb961dd76b01a9f23
3
+ size 3358415
Listicle.jsonl.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9653a33925c4381d5422a3f02825f589806ddb028c853bf71d3bf83c9c5b78e2
3
+ size 4978868
NewsArticle.jsonl.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e6aabed69f6d055a62212ad232a7edaa5f8bd84123f2dd1f3546a936eb4581bc
3
+ size 24383116
NonfictionWriting.jsonl.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bfad5e465587c049c084a7f873954aaa6ffe920c064143705ad5d5f389ef698e
3
+ size 1868885
OrganizationalAboutPage.jsonl.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9903058982f7f00e0accd4f040ae43bf6a1c57f141e2e8b626a5985244c5ee97
3
+ size 7434551
OrganizationalAnnouncement.jsonl.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:084a69477adbc65ab91993182fa8535d34295c79360533cf0777a16d844b9297
3
+ size 10012212
PersonalAboutPage.jsonl.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e3e6d2a93c763a2bb4cb52b0dcd49e0152663d765cb027abc349ae9b2173f535
3
+ size 2685254
PersonalBlog.jsonl.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a2ac34d315195838f184fc1c19984f3dafd2a1d53b9f1785382754bdbcf17f6a
3
+ size 35462135
ProductPage.jsonl.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:106ad6bb12876bb6532d0d1b6888c39aadcd76f1199fa6760c94da397f21a4c7
3
+ size 55358739
QAForum.jsonl.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3270f2b915a843642d4b546f6f19ae76592146ab8065c6d680b6ba894c432e53
3
+ size 1920766
README.md CHANGED
@@ -1,3 +1,187 @@
1
  ---
 
 
2
  license: odc-by
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
  license: odc-by
5
+ tags:
6
+ - document-classification
7
+ - text-classification
8
+ - web-pages
9
+ configs:
10
+ - config_name: AcademicWriting
11
+ data_files:
12
+ - path:
13
+ - AcademicWriting.jsonl.zst
14
+ split: train
15
+ - config_name: All
16
+ default: true
17
+ data_files:
18
+ - path:
19
+ - All/train.jsonl.zst
20
+ split: train
21
+ - path:
22
+ - All/test.jsonl.zst
23
+ split: test
24
+ - config_name: ContentListing
25
+ data_files:
26
+ - path:
27
+ - ContentListing.jsonl.zst
28
+ split: train
29
+ - config_name: CreativeWriting
30
+ data_files:
31
+ - path:
32
+ - CreativeWriting.jsonl.zst
33
+ split: train
34
+ - config_name: CustomerSupportPage
35
+ data_files:
36
+ - path:
37
+ - CustomerSupportPage.jsonl.zst
38
+ split: train
39
+ - config_name: DiscussionForumCommentSection
40
+ data_files:
41
+ - path:
42
+ - DiscussionForumCommentSection.jsonl.zst
43
+ split: train
44
+ - config_name: FAQs
45
+ data_files:
46
+ - path:
47
+ - FAQs.jsonl.zst
48
+ split: train
49
+ - config_name: IncompleteContent
50
+ data_files:
51
+ - path:
52
+ - IncompleteContent.jsonl.zst
53
+ split: train
54
+ - config_name: KnowledgeArticle
55
+ data_files:
56
+ - path:
57
+ - KnowledgeArticle.jsonl.zst
58
+ split: train
59
+ - config_name: LegalNotices
60
+ data_files:
61
+ - path:
62
+ - LegalNotices.jsonl.zst
63
+ split: train
64
+ - config_name: Listicle
65
+ data_files:
66
+ - path:
67
+ - Listicle.jsonl.zst
68
+ split: train
69
+ - config_name: NewsArticle
70
+ data_files:
71
+ - path:
72
+ - NewsArticle.jsonl.zst
73
+ split: train
74
+ - config_name: NonfictionWriting
75
+ data_files:
76
+ - path:
77
+ - NonfictionWriting.jsonl.zst
78
+ split: train
79
+ - config_name: OrganizationalAboutPage
80
+ data_files:
81
+ - path:
82
+ - OrganizationalAboutPage.jsonl.zst
83
+ split: train
84
+ - config_name: OrganizationalAnnouncement
85
+ data_files:
86
+ - path:
87
+ - OrganizationalAnnouncement.jsonl.zst
88
+ split: train
89
+ - config_name: PersonalAboutPage
90
+ data_files:
91
+ - path:
92
+ - PersonalAboutPage.jsonl.zst
93
+ split: train
94
+ - config_name: PersonalBlog
95
+ data_files:
96
+ - path:
97
+ - PersonalBlog.jsonl.zst
98
+ split: train
99
+ - config_name: ProductPage
100
+ data_files:
101
+ - path:
102
+ - ProductPage.jsonl.zst
103
+ split: train
104
+ - config_name: QAForum
105
+ data_files:
106
+ - path:
107
+ - QAForum.jsonl.zst
108
+ split: train
109
+ - config_name: SpamAds
110
+ data_files:
111
+ - path:
112
+ - SpamAds.jsonl.zst
113
+ split: train
114
+ - config_name: StructuredData
115
+ data_files:
116
+ - path:
117
+ - StructuredData.jsonl.zst
118
+ split: train
119
+ - config_name: TechnicalWriting
120
+ data_files:
121
+ - path:
122
+ - TechnicalWriting.jsonl.zst
123
+ split: train
124
+ - config_name: TranscriptInterview
125
+ data_files:
126
+ - path:
127
+ - TranscriptInterview.jsonl.zst
128
+ split: train
129
+ - config_name: TutorialHow-ToGuide
130
+ data_files:
131
+ - path:
132
+ - TutorialHow-ToGuide.jsonl.zst
133
+ split: train
134
+ - config_name: UserReviews
135
+ data_files:
136
+ - path:
137
+ - UserReviews.jsonl.zst
138
+ split: train
139
  ---
140
+ # English Document Format Classification Dataset
141
+
142
+ English-language web pages classified by document type, designed to train robust text classifiers and provide ready-to-use data for specific web formats.
143
+
144
+ * **Purpose:** Train generalized document classifiers or extract clean, single-format corpora for specific downstream tasks.
145
+ * **Configurations:** Each document type is available in its own dedicated dataset configuration (e.g., `TutorialHow-ToGuide`, `PersonalAboutPage`).
146
+ * **Splits:** The `All` configuration contains every document type combined, featuring a 10% stratified test split.
147
+
148
+ ## Curation & Filtering Pipeline
149
+
150
+ This dataset is derived from a subset of the first 1 million rows of [`allenai/c4`](https://huggingface.co/datasets/allenai/c4), utilizing annotations from [`agentlans/en-document-classification`](https://huggingface.co/datasets/agentlans/en-document-classification).
151
+
152
+ 1. **Filtering:** Samples are included only when the `weborganizer_format` field matches `doc_type_v2_primary`.
153
+ 2. **Personally identifiable information (PII) removal:** Samples were removed based on [`agentlans/multilingual-e5-small-pii-detector`](https://huggingface.co/agentlans/multilingual-e5-small-pii-detector).
154
+
155
+ ## Class Distribution (`All` Split)
156
+
157
+ | Label | Train | Test | Total |
158
+ | --- | --- | --- | --- |
159
+ | Academic Writing | 7,913 | 879 | 8,792 |
160
+ | Content Listing | 10,204 | 1,134 | 11,338 |
161
+ | Creative Writing | 2,947 | 328 | 3,275 |
162
+ | Customer Support Page | 5,237 | 582 | 5,819 |
163
+ | Discussion Forum / Comment Section | 3,802 | 423 | 4,225 |
164
+ | FAQs | 1,505 | 167 | 1,672 |
165
+ | Incomplete Content | 758 | 84 | 842 |
166
+ | Knowledge Article | 17,141 | 1,905 | 19,046 |
167
+ | Legal Notices | 3,307 | 368 | 3,675 |
168
+ | Listicle | 4,546 | 505 | 5,051 |
169
+ | News Article | 35,401 | 3,933 | 39,334 |
170
+ | Nonfiction Writing | 830 | 92 | 922 |
171
+ | Organizational About Page | 17,953 | 1,995 | 19,948 |
172
+ | Organizational Announcement | 21,876 | 2,431 | 24,307 |
173
+ | Personal About Page | 6,514 | 724 | 7,238 |
174
+ | Personal Blog | 40,259 | 4,473 | 44,732 |
175
+ | Product Page | 146,827 | 16,314 | 163,141 |
176
+ | Q&A Forum | 4,069 | 452 | 4,521 |
177
+ | Spam / Ads | 67 | 7 | 74 |
178
+ | Structured Data | 2,110 | 235 | 2,345 |
179
+ | Technical Writing | 3,643 | 405 | 4,048 |
180
+ | Transcript / Interview | 777 | 86 | 863 |
181
+ | Tutorial / How-To Guide | 20,244 | 2,249 | 22,493 |
182
+ | User Reviews | 6,563 | 729 | 7,292 |
183
+ | **Total** | **364,493** | **40,500** | **404,993** |
184
+
185
+ ## Licensing
186
+
187
+ Distributed under the Open Data Commons Attribution License (ODC-BY), matching the licensing terms of upstream sources [`allenai/c4`](https://huggingface.co/datasets/allenai/c4) and [`agentlans/en-document-classification`](https://www.google.com/search?q=https://huggingface.co/datasets/agentlans/en-document-classification).
SpamAds.jsonl.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bc54992fb9204e45a398e61cec2b33e310f2dd5f549074560ce5d09bb2f331cc
3
+ size 78000
StructuredData.jsonl.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6f9b0632e048ec11adbd73d2c6fdaa119daf5b010de292954e8d0ed7483f3cce
3
+ size 663142
TechnicalWriting.jsonl.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:532f4dfe0261ccbbe0743a04a9c396dfd000fb3632ab4526f221f18a3e865596
3
+ size 3166383
TranscriptInterview.jsonl.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2927d09010f0a7e7540ea8adf4386cb432d75f11c27a046105bda92d63b8533b
3
+ size 1472552
TutorialHow-ToGuide.jsonl.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ac324a1acf85d17a15310d69207f96bf1eed18d14b92d61b8143d8a3185e9b16
3
+ size 14447021
UserReviews.jsonl.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e03c3a505499561b22068aab0c3e30ff0ee1ca60314dbad705383f0d64391b3e
3
+ size 4420308