Add dataset card
Browse files
README.md
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
license: apache-2.0
|
| 5 |
+
size_categories:
|
| 6 |
+
- 100K<n<1M
|
| 7 |
+
task_categories:
|
| 8 |
+
- text-generation
|
| 9 |
+
pretty_name: Data Extraction SFT (100K)
|
| 10 |
+
tags:
|
| 11 |
+
- information-extraction
|
| 12 |
+
- structured-extraction
|
| 13 |
+
- nlp
|
| 14 |
+
- enterprise
|
| 15 |
+
- document-parsing
|
| 16 |
+
- json-extraction
|
| 17 |
+
- table-extraction
|
| 18 |
+
- ner
|
| 19 |
+
- sft
|
| 20 |
+
- supervised-fine-tuning
|
| 21 |
+
- synthetic
|
| 22 |
+
configs:
|
| 23 |
+
- config_name: default
|
| 24 |
+
data_files:
|
| 25 |
+
- split: train
|
| 26 |
+
path: data-extraction-sft-100k.jsonl
|
| 27 |
+
---
|
| 28 |
+
|
| 29 |
+
# Data Extraction SFT (100K)
|
| 30 |
+
|
| 31 |
+
100,000 ShareGPT conversations demonstrating structured information extraction from unstructured text. Each example takes a real-world document (invoice, contract, resume, research abstract, meeting notes, log files) and extracts the relevant information into JSON, markdown tables, or other structured formats.
|
| 32 |
+
|
| 33 |
+
## Motivation
|
| 34 |
+
|
| 35 |
+
Information extraction is one of the highest-value NLP tasks in enterprise settings. Common model failures include:
|
| 36 |
+
|
| 37 |
+
- **Format drift**: Asked for JSON, produces a mix of prose and JSON
|
| 38 |
+
- **Missed fields**: Extracts some fields but silently omits others
|
| 39 |
+
- **Hallucinated data**: Infers or invents values not present in the source
|
| 40 |
+
- **Wrong output format**: Produces a table when JSON was requested, or vice versa
|
| 41 |
+
- **Poor handling of ambiguity**: Doesn't flag when source data is incomplete or contradictory
|
| 42 |
+
- **Inconsistent structure**: JSON with inconsistent key naming, tables with misaligned columns
|
| 43 |
+
|
| 44 |
+
This dataset trains models to extract accurately, completely, and in the exact format requested.
|
| 45 |
+
|
| 46 |
+
## Dataset Description
|
| 47 |
+
|
| 48 |
+
**100,000 conversations** across 23 extraction types:
|
| 49 |
+
|
| 50 |
+
### Extraction Type Distribution
|
| 51 |
+
|
| 52 |
+
| Extraction Type | Source Format | Output Format |
|
| 53 |
+
|---|---|---|
|
| 54 |
+
| `contact_information` | Email signature | JSON |
|
| 55 |
+
| `financial_data` | Earnings report | Table |
|
| 56 |
+
| `job_posting` | Job description | JSON |
|
| 57 |
+
| `dates_events` | Project timeline | Table |
|
| 58 |
+
| `contract_terms` | Legal clause | Bullet list |
|
| 59 |
+
| `product_specifications` | Product description | Table |
|
| 60 |
+
| `action_items` | Meeting notes | Table |
|
| 61 |
+
| `named_entities` | News article | Categorized list |
|
| 62 |
+
| `invoice_parsing` | Invoice | JSON |
|
| 63 |
+
| `prescription_data` | Prescription | JSON |
|
| 64 |
+
| `network_entities` | Server log | Categorized list |
|
| 65 |
+
| `requirements_classification` | Requirements doc | Classified list |
|
| 66 |
+
| `clinical_trial_data` | Research abstract | JSON |
|
| 67 |
+
| `sentiment_analysis` | Customer review | Analysis |
|
| 68 |
+
| `recipe_ingredients` | Recipe | JSON |
|
| 69 |
+
| `meeting_decision` | Meeting transcript | Structured analysis |
|
| 70 |
+
| `api_error_codes` | API documentation | Table |
|
| 71 |
+
| `business_metrics` | KPI dashboard | JSON |
|
| 72 |
+
| `resume_parsing` | Resume | JSON |
|
| 73 |
+
| `compliance_violations` | Audit report | Table |
|
| 74 |
+
| `real_estate_listing` | Property listing | JSON |
|
| 75 |
+
| `performance_review` | HR document | Structured summary |
|
| 76 |
+
| `mathematical_formulas` | Scientific text | Structured analysis |
|
| 77 |
+
|
| 78 |
+
## Format
|
| 79 |
+
|
| 80 |
+
```json
|
| 81 |
+
{
|
| 82 |
+
"conversations": [
|
| 83 |
+
{
|
| 84 |
+
"from": "human",
|
| 85 |
+
"value": "Extract all contact information from the following email signature and return it as JSON:
|
| 86 |
+
|
| 87 |
+
---
|
| 88 |
+
Dr. Sarah Mitchell...
|
| 89 |
+
---"
|
| 90 |
+
},
|
| 91 |
+
{
|
| 92 |
+
"from": "gpt",
|
| 93 |
+
"value": "```json
|
| 94 |
+
{"name": "Dr. Sarah Mitchell", "title": "Chief Research Officer"...}
|
| 95 |
+
```"
|
| 96 |
+
}
|
| 97 |
+
],
|
| 98 |
+
"metadata": {
|
| 99 |
+
"extraction_type": "contact_information",
|
| 100 |
+
"source_format": "email_signature",
|
| 101 |
+
"output_format": "json"
|
| 102 |
+
},
|
| 103 |
+
"id": "abc123"
|
| 104 |
+
}
|
| 105 |
+
```
|
| 106 |
+
|
| 107 |
+
## Key Properties of Responses
|
| 108 |
+
|
| 109 |
+
**1. Format fidelity**: JSON when JSON is requested, markdown tables when tables are requested. Code blocks used correctly. Keys are consistently named.
|
| 110 |
+
|
| 111 |
+
**2. Complete extraction**: All entities in the source are extracted. Nothing is silently skipped. When the source is ambiguous, the extraction notes the ambiguity.
|
| 112 |
+
|
| 113 |
+
**3. No hallucination**: Only information present in the source is extracted. Missing values are represented as `null` or omitted, not invented.
|
| 114 |
+
|
| 115 |
+
**4. Appropriate structure**: Nested JSON for hierarchical data, flat tables for tabular data, categorized lists for multi-type entity extraction.
|
| 116 |
+
|
| 117 |
+
**5. Relevant metadata**: Extracted data includes context that makes it actionable (e.g., units for measurements, calculation details for formulas, severity indicators for compliance violations).
|
| 118 |
+
|
| 119 |
+
**6. Real-world document types**: Source documents represent actual professional formats — invoices with realistic line items, resumes with realistic career progressions, API docs with standard error code patterns.
|
| 120 |
+
|
| 121 |
+
## Use Cases
|
| 122 |
+
|
| 123 |
+
- SFT fine-tuning for document processing pipelines
|
| 124 |
+
- Training AI for enterprise automation (invoice processing, contract review, HR document parsing)
|
| 125 |
+
- Building RAG pre-processing models that extract structured facts from documents
|
| 126 |
+
- Improving model performance on information extraction benchmarks
|
| 127 |
+
- Training models for legal tech, HR tech, and fintech applications
|
| 128 |
+
- Building AI assistants for analysts who work with unstructured data
|
| 129 |
+
|
| 130 |
+
## License
|
| 131 |
+
|
| 132 |
+
Apache 2.0
|