ericgarcia commited on
Commit
d160f32
·
2 Parent(s): 08afc75 040ddc6

Promote revision 'v1.0.0-initial' to main (GitHub: 245a96b976f46aefbd71fc1716c16fd69d503b73)

Browse files
CHANGELOG.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Changelog
2
+
3
+ All notable changes to the Html Input Text Only Dataset will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Version 1.0.0]
9
+
10
+ - Initial release with html-input-text-only dataset
11
+ - Standardized data processing pipeline
12
+ - Comprehensive documentation and metadata
13
+
14
+ ---
15
+
16
+ ## Build Information
17
+
18
+ - **Dataset version**: v1.0.0-initial
19
+ - **Generated on**: 2025-08-21 15:13:14 UTC
README.md ADDED
@@ -0,0 +1,259 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - af
4
+ - am
5
+ - ar
6
+ - bn
7
+ - bg
8
+ - ca
9
+ - hr
10
+ - cs
11
+ - da
12
+ - nl
13
+ - en
14
+ - et
15
+ - tl
16
+ - fi
17
+ - fr
18
+ - de
19
+ - el
20
+ - gu
21
+ - he
22
+ - hi
23
+ - hu
24
+ - id
25
+ - it
26
+ - ja
27
+ - kn
28
+ - ko
29
+ - lv
30
+ - lt
31
+ - ms
32
+ - ml
33
+ - mr
34
+ - no
35
+ - fa
36
+ - pl
37
+ - pt
38
+ - ro
39
+ - ru
40
+ license: other
41
+ license_name: other
42
+ license_details: This dataset is proprietary to Keeper Security and intended for internal use only.
43
+ tags: []
44
+ annotations_creators:
45
+ - machine-generated
46
+ pretty_name: Html Input Text Only Dataset
47
+ size_categories:
48
+ - 100K<n<1M
49
+ task_categories:
50
+ - text-classification
51
+ task_ids: []
52
+ configs:
53
+ - config_name: default
54
+ data_files:
55
+ - split: train
56
+ path: html-input-text-only-1755812747.parquet
57
+ dataset_info:
58
+ features:
59
+ - name: text
60
+ dtype: string
61
+ - name: label
62
+ dtype: string
63
+ - name: lang
64
+ dtype: string
65
+ config_name: default
66
+ splits:
67
+ - name: train
68
+ num_bytes: 21009409
69
+ num_examples: 449994
70
+ download_size: 21009409
71
+ dataset_size: 21009409
72
+ ---
73
+
74
+ # 📖 Html Input Text Only Dataset
75
+
76
+ This dataset contains HTML input text with all punctuation removed, making it ideal for training models on web form elements and URLs.
77
+
78
+
79
+ ## 📊 Dataset Overview
80
+
81
+ A preprocessed version of keeper-security/html_input_dataset with punctuation removed from HTML sections to reduce tokenization errors during model training. Contains web form elements and URLs for security analysis tasks.
82
+
83
+ This dataset is designed to facilitate the training of models that require clean HTML input without the noise introduced by punctuation.
84
+
85
+
86
+ ## 🔗 Dependencies
87
+
88
+ The dataset uses data from the following datasets:
89
+
90
+ - [keeper-security/html_input_dataset](https://huggingface.co/datasets/keeper-security/html_input_dataset)
91
+
92
+ ---
93
+
94
+ ## 💡 Usage Examples
95
+
96
+ ### Load with Hugging Face Datasets
97
+
98
+ ```python
99
+ from datasets import load_dataset
100
+ ds = load_dataset("keeper-security/html-input-text-only", data_files={"train": "html-input-text-only-1755812747.parquet"})
101
+ print(ds["train"][0])
102
+ ```
103
+
104
+ ### Convert to Pandas
105
+
106
+ ```python
107
+ import pandas as pd
108
+ df_train = ds["train"].to_pandas()
109
+ df_train.head()
110
+ ```
111
+
112
+ ---
113
+
114
+ ## 📁 Repository Structure
115
+
116
+ ```bash
117
+ html-input-text-only/
118
+ ├── html-input-text-only-1755812747.parquet # Main processed dataset
119
+ ├── README.md # Dataset documentation
120
+ └── CHANGELOG.md # Version history and changes
121
+ ```
122
+
123
+ ---
124
+
125
+ ## 📊 Data Overview
126
+
127
+ - **Shape:** (449,994 rows × 3 columns)
128
+ - **File Size:** ~20 MB
129
+
130
+ ---
131
+
132
+ ### 📌 Statistics
133
+
134
+ - 🎯 Unique `text`: **302,616**
135
+ - 🎯 Unique `label`: **45**
136
+ - 🎯 Unique `lang`: **38**
137
+
138
+ ### Columns
139
+
140
+ | Column Name | Type | Description |
141
+ |:------------|:-----|:------------|
142
+ | text | string | The main text content URL and HTML combined |
143
+ | label | string | Classification label |
144
+ | lang | string | Language of the text |
145
+
146
+ ### Ontology
147
+
148
+
149
+ | **lang** | **Description** |
150
+ |--------|-----------------|
151
+ | Gujarati | Gujarati language |
152
+ | Japanese | Japanese language |
153
+ | Lithuanian | Lithuanian language |
154
+ | Indonesian | Indonesian language |
155
+ | Bengali | Bengali language |
156
+ | Afrikaans | Afrikaans language |
157
+ | Estonian | Estonian language |
158
+ | Dutch | Dutch language |
159
+ | Italian | Italian language |
160
+ | Hebrew | Hebrew language |
161
+ | Croatian | Croatian language |
162
+ | Finnish | Finnish language |
163
+ | Filipino | Filipino language |
164
+ | English | English language |
165
+ | Bulgarian | Bulgarian language |
166
+ | Korean | Korean language |
167
+ | Czech | Czech language |
168
+ | Danish | Danish language |
169
+ | Hindi | Hindi language |
170
+ | Latvian | Latvian language |
171
+ | German | German language |
172
+ | unknown | Unknown or unclassified language |
173
+ | Amharic | Amharic language |
174
+ | Hungarian | Hungarian language |
175
+ | Arabic | Arabic language |
176
+ | Greek | Greek language |
177
+ | Catalan | Catalan language |
178
+ | Kannada | Kannada language |
179
+ | French | French language |
180
+ | Marathi | Marathi language |
181
+ | Malay | Malay language |
182
+ | Malayalam | Malayalam language |
183
+ | Persian | Persian language |
184
+ | Norwegian Bokmål | Norwegian language |
185
+ | Polish | Polish language |
186
+ | Romanian | Romanian language |
187
+ | Portuguese | Portuguese language |
188
+ | Russian | Russian language |
189
+
190
+ | **label** | **Description** |
191
+ |---------|-----------------|
192
+ | ACCOUNT_CREATION_PASSWORD | Account creation password |
193
+ | ADDRESS_CITY | City name in an address |
194
+ | ADDRESS_COUNTRY | Country name in an address |
195
+ | ADDRESS_LINE1 | First line of a street address |
196
+ | ADDRESS_LINE2 | Second line of a street address (e.g., apartment, suite) |
197
+ | ADDRESS_STATE | State, province, or region in an address |
198
+ | ADDRESS_ZIP | Postal or ZIP code in an address |
199
+ | ALTERNATIVE_FAMILY_NAME | Alternative or secondary family/last name |
200
+ | ALTERNATIVE_FULL_NAME | Alternative or secondary full name |
201
+ | ALTERNATIVE_GIVEN_NAME | Alternative or secondary given/first name |
202
+ | AMBIGUOUS | Ambiguous or unclear input that cannot be classified |
203
+ | BIRTH_DATE_DAY | Day component of a birth date |
204
+ | BIRTH_DATE_MONTH | Month component of a birth date |
205
+ | BIRTH_DATE_YEAR | Year component of a birth date |
206
+ | COMPANY_NAME | Name of a company or organization |
207
+ | CONFIRMATION_PASSWORD | Password confirmation field |
208
+ | CREDIT_CARD_EXP_DATE_MONTH_AND_YEAR | Credit card expiration date (month and year) |
209
+ | CREDIT_CARD_EXP_DATE_YEAR | Credit card expiration year |
210
+ | CREDIT_CARD_EXP_MONTH | Credit card expiration month |
211
+ | CREDIT_CARD_NUMBER | Credit card number |
212
+ | CREDIT_CARD_STANDALONE_VERIFICATION_CODE | Credit card verification code (standalone field) |
213
+ | CREDIT_CARD_TYPE | Type or brand of credit card (e.g., Visa, MasterCard) |
214
+ | CREDIT_CARD_VERIFICATION_CODE | Credit card verification code (CVV, CVC, etc.) |
215
+ | EMAIL_ADDRESS | Email address |
216
+ | IBAN_VALUE | International Bank Account Number (IBAN) |
217
+ | MALICIOUS_LABEL | Label for potentially malicious or harmful input |
218
+ | MERCHANT_EMAIL_SIGNUP | Email address used for merchant signup |
219
+ | MERCHANT_PROMO_CODE | Promotional or discount code for merchants |
220
+ | NAME_FIRST | First or given name |
221
+ | NAME_FULL | Full name |
222
+ | NAME_LAST | Last or family name |
223
+ | NAME_MIDDLE | Middle name |
224
+ | NAME_MIDDLE_INITIAL | Middle initial |
225
+ | NAME_PREFIX | Name prefix (e.g., Mr., Dr., Ms.) |
226
+ | NAME_SUFFIX | Name suffix (e.g., Jr., Sr., III) |
227
+ | NATIONAL_IDENTITY_NUMBER | National identity or government-issued number |
228
+ | NEW_PASSWORD | New password field |
229
+ | PASSWORD | Password field |
230
+ | PHONE_NUMBER | Phone number |
231
+ | PIN_CODE | Personal identification number (PIN) |
232
+ | PROBABLY_NEW_PASSWORD | Field likely to be a new password |
233
+ | SEARCH | Search query or search field |
234
+ | TWO_FACTOR_CODE | Two-factor authentication code |
235
+ | UNKNOWN | Unknown or unclassified input |
236
+ | USERNAME | Username or user ID |
237
+
238
+ ---
239
+
240
+
241
+
242
+ ---
243
+
244
+ ## 🔧 Reproduction
245
+
246
+ 1. Clone the repository:
247
+ ```bash
248
+ git clone https://github.com/keeper-security/ai-factory.git
249
+ cd ai-factory
250
+ git checkout 245a96b976f46aefbd71fc1716c16fd69d503b73
251
+ ```
252
+
253
+ 2. Navigate to the dataset directory and run the pipeline:
254
+ ```bash
255
+ cd datasets/html-input-text-only
256
+ python run_pipeline.py
257
+ ```
258
+
259
+ ---
html-input-text-only-1755812747.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:492a9dc4342af0116c21802ea8fcc6829604f08e88c86ba7e036bbd9ba6014a8
3
+ size 21009409