Initial upload: v1/v2/v3 training and test sets with dataset card
Browse files- .gitattributes +1 -0
- README.md +128 -0
- test.ndjson +0 -0
- test_v2.ndjson +0 -0
- test_v3.ndjson +0 -0
- train.ndjson +0 -0
- train_v2.ndjson +0 -0
- train_v3.ndjson +3 -0
.gitattributes
CHANGED
|
@@ -58,3 +58,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
train_v3.ndjson filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
license: mit
|
| 5 |
+
task_categories:
|
| 6 |
+
- text-classification
|
| 7 |
+
tags:
|
| 8 |
+
- semantic-type-detection
|
| 9 |
+
- data-profiling
|
| 10 |
+
- synthetic-data
|
| 11 |
+
- text-classification
|
| 12 |
+
size_categories:
|
| 13 |
+
- 100K<n<1M
|
| 14 |
+
pretty_name: FineType Training Data
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# FineType Training Dataset
|
| 18 |
+
|
| 19 |
+
Synthetic training and evaluation data for [FineType](https://github.com/noon-org/finetype) — a semantic type classifier that detects the format of text values (dates, IPs, emails, UUIDs, etc.) from a taxonomy of **151 types**.
|
| 20 |
+
|
| 21 |
+
- **Model:** [noon-org/finetype-char-cnn](https://huggingface.co/noon-org/finetype-char-cnn)
|
| 22 |
+
- **GitHub:** [noon-org/finetype](https://github.com/noon-org/finetype)
|
| 23 |
+
|
| 24 |
+
## Dataset Description
|
| 25 |
+
|
| 26 |
+
Each example is a `(text, classification)` pair where:
|
| 27 |
+
- **text** — a string value (e.g., `"2024-01-15"`, `"192.168.1.1"`, `"hello@example.com"`)
|
| 28 |
+
- **classification** — the semantic type label in `domain.category.type` format (e.g., `datetime.date.iso`, `technology.internet.ip_v4`, `identity.person.email`)
|
| 29 |
+
|
| 30 |
+
### Schema
|
| 31 |
+
|
| 32 |
+
```json
|
| 33 |
+
{
|
| 34 |
+
"classification": "datetime.component.day_of_week",
|
| 35 |
+
"text": "Thursday"
|
| 36 |
+
}
|
| 37 |
+
```
|
| 38 |
+
|
| 39 |
+
One JSON object per line (NDJSON format).
|
| 40 |
+
|
| 41 |
+
## Dataset Versions
|
| 42 |
+
|
| 43 |
+
Three versions of the dataset are provided, corresponding to training iterations:
|
| 44 |
+
|
| 45 |
+
| Version | Train | Test | Types | Notes |
|
| 46 |
+
|---------|-------|------|-------|-------|
|
| 47 |
+
| **v1** | 74,500 | 14,900 | 149 | Initial balanced dataset, 500 per type |
|
| 48 |
+
| **v2** | 75,500 | 15,100 | 151 | Added 2 types, improved generators |
|
| 49 |
+
| **v3** | 205,500 | 41,100 | 151 | Extended with tiered model training data |
|
| 50 |
+
|
| 51 |
+
**Recommended:** Use `train.ndjson` and `test.ndjson` (v1) for the flat model, `train_v3.ndjson` and `test_v3.ndjson` for tiered models.
|
| 52 |
+
|
| 53 |
+
## Label Distribution
|
| 54 |
+
|
| 55 |
+
### By Domain (v1 train)
|
| 56 |
+
|
| 57 |
+
| Domain | Types | Examples | Description |
|
| 58 |
+
|--------|-------|----------|-------------|
|
| 59 |
+
| datetime | 46 | 23,000 | Dates, times, timestamps, epochs, components |
|
| 60 |
+
| technology | 34 | 17,000 | IPs, MACs, UUIDs, hashes, URLs, file paths |
|
| 61 |
+
| identity | 25 | 12,000 | Emails, phones, credit cards, names, SSNs |
|
| 62 |
+
| representation | 19 | 9,000 | JSON, CSV, XML, integers, floats, booleans |
|
| 63 |
+
| geography | 16 | 8,000 | Coordinates, postal codes, country codes |
|
| 64 |
+
| container | 11 | 5,500 | Arrays, key-value pairs, structured formats |
|
| 65 |
+
|
| 66 |
+
All types are balanced at **500 examples per type** in v1.
|
| 67 |
+
|
| 68 |
+
## Generation Methodology
|
| 69 |
+
|
| 70 |
+
Data is generated using type-specific Rust generators defined in the FineType taxonomy:
|
| 71 |
+
|
| 72 |
+
1. **YAML definitions** specify each type's format, regex pattern, DuckDB cast expression, and example values
|
| 73 |
+
2. **Rust generators** produce synthetic examples with:
|
| 74 |
+
- Locale-aware formatting (16+ locales for dates, addresses, phone numbers)
|
| 75 |
+
- Priority-weighted sampling (common formats appear more frequently)
|
| 76 |
+
- Edge case coverage (boundary values, unusual but valid formats)
|
| 77 |
+
- Checksum-valid values where applicable (credit cards via Luhn, IBANs, ISBNs)
|
| 78 |
+
3. **Validation** ensures every generated value matches the type's regex pattern and DuckDB cast expression
|
| 79 |
+
|
| 80 |
+
### Generator Quality
|
| 81 |
+
|
| 82 |
+
- All generators validated against type definitions via `finetype check`
|
| 83 |
+
- Taxonomy alignment verified: every type has a generator, every generator has a type
|
| 84 |
+
- 155 automated tests covering generation, inference, and column disambiguation
|
| 85 |
+
|
| 86 |
+
## Usage
|
| 87 |
+
|
| 88 |
+
### Load with Python
|
| 89 |
+
|
| 90 |
+
```python
|
| 91 |
+
import json
|
| 92 |
+
|
| 93 |
+
with open("train.ndjson") as f:
|
| 94 |
+
data = [json.loads(line) for line in f]
|
| 95 |
+
|
| 96 |
+
texts = [d["text"] for d in data]
|
| 97 |
+
labels = [d["classification"] for d in data]
|
| 98 |
+
```
|
| 99 |
+
|
| 100 |
+
### Load with DuckDB
|
| 101 |
+
|
| 102 |
+
```sql
|
| 103 |
+
SELECT * FROM read_json_auto('train.ndjson', format='newline_delimited');
|
| 104 |
+
```
|
| 105 |
+
|
| 106 |
+
### Load with Nushell
|
| 107 |
+
|
| 108 |
+
```nushell
|
| 109 |
+
open train.ndjson | lines | each { from json }
|
| 110 |
+
```
|
| 111 |
+
|
| 112 |
+
## Limitations
|
| 113 |
+
|
| 114 |
+
- **Synthetic data:** All examples are machine-generated, not sampled from real-world datasets. Real-world data may contain formatting variations not covered by generators.
|
| 115 |
+
- **English-centric:** While locale-aware for dates and addresses, the dataset primarily targets English-language data patterns.
|
| 116 |
+
- **Balanced distribution:** Real-world data is highly imbalanced (some types are far more common than others). The balanced training set may not reflect deployment distributions.
|
| 117 |
+
|
| 118 |
+
## Citation
|
| 119 |
+
|
| 120 |
+
```bibtex
|
| 121 |
+
@dataset{finetype_training2026,
|
| 122 |
+
title = {FineType Training Data: Synthetic Examples for Semantic Type Classification},
|
| 123 |
+
author = {Cameron, Hugh},
|
| 124 |
+
year = {2026},
|
| 125 |
+
url = {https://huggingface.co/datasets/noon-org/finetype-training},
|
| 126 |
+
license = {MIT}
|
| 127 |
+
}
|
| 128 |
+
```
|
test.ndjson
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
test_v2.ndjson
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
test_v3.ndjson
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
train.ndjson
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
train_v2.ndjson
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
train_v3.ndjson
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9c7f5c8b39efc5d4c149de3aebcae4da40cca14db0309ce1c33e3214d11c0587
|
| 3 |
+
size 16068357
|