jeffysam0609 commited on
Commit
b5b3cbb
·
verified ·
1 Parent(s): 1eef113

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +172 -128
README.md CHANGED
@@ -15,196 +15,240 @@ tags:
15
  - benchmark
16
  size_categories:
17
  - n<1K
 
18
  ---
19
 
20
  # ResumeExtractBench
21
 
22
- A benchmark for evaluating schema-guided structured extraction from resume documents (PDFs). Contains **115 resumes** spanning expert-created templates, intentional parsing distractors, and handwritten documents.
23
 
24
- ## Overview
 
 
 
25
 
26
- ResumeExtractBench evaluates how well extraction systems parse resumes into structured JSON data against a fixed schema. Each test case includes a source PDF, a JSON Schema defining the target output structure, and a human-verified ground truth extraction.
27
 
28
- ### Key Statistics
 
 
 
 
 
 
 
 
 
 
 
 
29
 
30
- | Metric | Value |
31
- |--------|-------|
32
- | Total documents | 115 |
33
- | Handwritten resumes | 28 |
34
- | Adversarial distractor resumes | 10 |
35
- | LaTeX template resumes | 14 |
36
- | Expert-created (Canva) resumes | 63 |
37
- | Domains covered | 11 |
38
- | Schema sections scored | 9 |
39
 
40
- ### Difficulty Distribution
41
 
42
- | Difficulty | Count | Description |
43
- |------------|-------|-------------|
44
- | Hard | 38 | Handwritten + adversarial distractors |
45
- | Medium | 77 | Expert-created digital templates (Canva, LaTeX) |
 
 
 
 
 
 
 
 
 
 
 
 
46
 
47
  ### Domain Coverage
48
 
49
- | Domain | Count |
50
- |--------|-------|
51
- | Engineering | 24 |
52
- | General | 30 |
53
- | Healthcare | 15 |
54
- | Data Science | 15 |
55
- | Legal | 12 |
56
- | Design | 8 |
57
- | Education | 4 |
58
- | Finance | 3 |
59
- | Software Engineering | 2 |
60
- | Consulting | 1 |
61
  | Government | 1 |
62
 
63
- ## Dataset Structure
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
 
 
 
 
 
 
 
 
65
  ```
66
- ResumeExtractBench/
67
- ├── README.md # This file
68
- ├── test.jsonl # 115 test cases (one per line)
69
- ├── schema.json # Target JSON Schema for extraction
70
- └── pdfs/ # Source resume PDFs
71
- ├── ai-engineer.pdf
72
- ├── distractor-date-chaos-inconsistent-date-formats-throughout.pdf
73
- ├── board-certified-ocularist-jane-doe.pdf
74
- └── ...
75
  ```
76
 
77
- ### JSONL Format
78
 
79
- Each line in `test.jsonl` is a JSON object:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80
 
81
  ```json
82
  {
83
- "resume_id": "distractor-date-chaos-inconsistent-date-formats-throughout",
84
- "files": {"pdf": "pdfs/distractor-date-chaos-inconsistent-date-formats-throughout.pdf"},
85
- "ground_truth": { ... },
86
- "difficulty": "hard",
87
- "layout_tags": ["distractor", "date-chaos"],
88
- "source": "synthetic-distractor",
89
- "domain": "software-engineering",
90
- "schema_version": "resume_v1"
91
  }
92
  ```
93
 
 
 
94
  | Field | Type | Description |
95
- |-------|------|-------------|
96
- | `resume_id` | string | Unique identifier (filename stem) |
97
  | `files.pdf` | string | Relative path to source PDF |
98
- | `ground_truth` | object | Human-verified extraction matching schema.json |
99
- | `difficulty` | string | `easy`, `medium`, or `hard` |
100
- | `layout_tags` | list | Visual/structural tags (e.g., `handwritten`, `distractor`, `canva`) |
101
- | `source` | string | Resume origin category |
102
- | `domain` | string | Professional domain |
103
  | `schema_version` | string | Schema version (`resume_v1`) |
104
 
105
- ### Schema (resume_v1)
106
 
107
- The extraction schema defines 9 sections:
108
 
109
- | Section | Type | Key Fields |
110
- |---------|------|------------|
111
- | `basics` | Singleton | fname, lname, email, phone, city, state, country, hasPersonalPhoto |
112
- | `experience` | Entity list | company, position, dates, city, description[] |
113
- | `education` | Entity list | institution, area, studyType, dates, description[] |
114
- | `projects` | Entity list | name, url, description[] |
115
- | `personalSummary` | Text | Free-text summary/objective |
116
- | `certifications` | Entity list | name, issuer |
117
- | `awards` | Entity list | title |
118
- | `volunteering` | Entity list | organization, position, dates, description[] |
119
- | `skills` | Flat list | category, skills[] |
120
 
121
  See `schema.json` for the full JSON Schema definition.
122
 
123
- ## Resume Categories
124
 
125
- ### Adversarial Distractors (10 resumes)
126
 
127
- Synthetic resumes with intentional parsing challenges:
128
 
129
- - **Date chaos**: Inconsistent date formats (Jan 2020, 2020-06, 06/2021, Summer 2022)
130
- - **Esoteric titles**: Non-standard job titles (Chief Vibes Officer, Growth Hacker)
131
- - **European regional**: German-style CV with DOB, marital status, nationality
132
- - **Functional format**: Skills-first layout, no chronological work history
133
- - **Identity confusion**: Multi-part names, honorifics, maiden names, testimonial quotes
134
- - **Multilingual**: English with French/Spanish intertwined
135
- - **Prompt injection**: Hidden white text, PDF metadata injection, keyword stuffing
136
- - **Prose narrative**: Third-person writing, 500-word personal statement, emoji markers
137
- - **Same company repeat**: Same employer listed 4x with overlapping dates
138
- - **Skill-name collision**: Name collides with programming language (Ruby Chen at Python Solutions)
139
 
140
- ### Handwritten Resumes (28 resumes)
141
 
142
- Scanned handwritten resumes testing OCR and layout understanding under real-world conditions.
143
 
144
- ### Expert-Created Templates (77 resumes)
145
 
146
- Professionally designed resumes across Canva templates (63) and LaTeX templates (14) covering diverse visual layouts: single-column, two-column, sidebar, infographic, academic CV, federal resume, and more.
147
 
148
- ## Usage
149
 
150
- ### With resume-extract-bench CLI
151
 
152
- ```bash
153
- pip install resume-extract-bench
154
- resume-bench download
155
- resume-bench grade-file --predictions my_predictions.jsonl --split test
156
- resume-bench leaderboard
157
- ```
158
 
159
- ### Direct Loading
160
 
161
- ```python
162
- from huggingface_hub import snapshot_download
163
- import json
164
 
165
- root = snapshot_download(
166
- repo_id="careerflow/ResumeExtractBench",
167
- repo_type="dataset",
168
- )
 
 
 
 
 
 
 
 
169
 
170
- with open(f"{root}/test.jsonl") as f:
171
- cases = [json.loads(line) for line in f if line.strip()]
172
 
173
- for case in cases:
174
- pdf_path = f"{root}/{case['files']['pdf']}"
175
- schema = json.load(open(f"{root}/schema.json"))
176
- ground_truth = case["ground_truth"]
177
- # Run your extractor on pdf_path against schema
178
- # Compare output to ground_truth
179
- ```
180
 
181
- ### Predictions Format
182
 
183
- Submit predictions as JSONL with `resume_id` and extracted sections:
184
 
185
- ```json
186
- {"resume_id": "ai-engineer", "basics": {"fname": "...", "lname": "..."}, "experience": [...], ...}
187
- ```
 
 
188
 
189
- ## Evaluation
190
 
191
- Scoring uses:
192
- - **Jaro-Winkler similarity** for field matching (threshold: 0.5)
193
- - **Hungarian algorithm** (scipy) for optimal entity alignment
194
- - **Token F1** for description quality
195
- - **Entity-level Precision/Recall/F1** with hallucination and omission rates
196
 
197
  ## Citation
198
 
199
  ```bibtex
200
  @misc{careerflow2026resumeextractbench,
201
- title={ResumeExtractBench: A Benchmark for Schema-Guided Resume Extraction},
202
- author={Careerflow and LlamaIndex},
203
- year={2026},
204
- url={https://huggingface.co/datasets/careerflow/ResumeExtractBench}
205
  }
206
  ```
207
 
208
  ## License
209
 
210
- CC-BY-4.0
 
 
 
 
 
 
15
  - benchmark
16
  size_categories:
17
  - n<1K
18
+ pretty_name: ResumeExtractBench
19
  ---
20
 
21
  # ResumeExtractBench
22
 
23
+ **ResumeExtractBench** is a benchmark for schema-guided structured extraction from resume documents. Given a resume PDF and a JSON Schema, systems must return structured data covering personal details, work history, education, skills, and more.
24
 
25
+ - **Dataset Size**: 38 documents (handwritten + adversarial distractors)
26
+ - **Schema Sections Scored**: 9 (basics, experience, education, projects, summary, certifications, awards, volunteering, skills)
27
+ - **Domains**: 6 (engineering, healthcare, legal, data science, government, general)
28
+ - **License**: CC-BY-4.0
29
 
30
+ **Quick Links**: [💻 Code & CLI](https://github.com/careerflow/resume-extract-bench) | [🏢 Careerflow](https://careerflow.ai)
31
 
32
+ ---
33
+
34
+ ## Dataset Introduction
35
+
36
+ ### Document Composition
37
+
38
+ | Challenge Category | Documents | Description |
39
+ |---|---|---|
40
+ | **Handwritten resumes** | 28 | Scanned handwritten resumes testing OCR and layout understanding |
41
+ | **Adversarial distractors** | 10 | Synthetic resumes with intentional parsing challenges |
42
+ | **Total** | **38** | |
43
+
44
+ ### Source Composition
45
 
46
+ - **Handwritten documents**: 28
47
+ - **Synthetic (LaTeX-generated)**: 10
48
+ - **All documents classified as "hard" difficulty**
 
 
 
 
 
 
49
 
50
+ ### Challenge Categories
51
 
52
+ **C1: Handwritten Resumes** — Scanned handwritten documents with natural variation in handwriting, layout, and legibility. Tests OCR accuracy, spatial reasoning, and robustness to non-standard formatting. Typical failures: misread characters, merged/split words, missed sections, hallucinated content from ambiguous handwriting.
53
+
54
+ **C2: Adversarial Distractors** — Synthetic resumes with intentional parsing challenges designed to stress-test extraction robustness:
55
+
56
+ | Distractor | Challenge |
57
+ |---|---|
58
+ | **Date chaos** | Inconsistent date formats within the same resume (Jan 2020, 2020-06, 06/2021, Summer 2022) |
59
+ | **Esoteric titles** | Non-standard job titles (Chief Vibes Officer, Growth Hacker), salary listed, entity confusion |
60
+ | **European regional** | German-style CV with date of birth, marital status, nationality, military service, German grade scale |
61
+ | **Functional format** | Skills-first layout with no chronological work history |
62
+ | **Identity confusion** | Multi-part names, honorifics, maiden names, father's name, testimonial quotes with other people's titles |
63
+ | **Multilingual** | English resume with French and Spanish intertwined |
64
+ | **Prompt injection** | Hidden white text injection, PDF metadata injection, keyword stuffing in 6pt font |
65
+ | **Prose narrative** | Third-person writing, no bullet points, 500-word personal statement, emoji section markers |
66
+ | **Same company repeat** | Same employer listed 4 times with company renamed mid-tenure and overlapping dates |
67
+ | **Skill-name collision** | Candidate name collides with programming language (Ruby Chen at Python Solutions Inc.) |
68
 
69
  ### Domain Coverage
70
 
71
+ | Domain | Documents |
72
+ |---|---|
73
+ | Engineering | 11 |
74
+ | General | 10 |
75
+ | Healthcare | 7 |
76
+ | Legal | 7 |
77
+ | Data Science | 2 |
 
 
 
 
 
78
  | Government | 1 |
79
 
80
+ ---
81
+
82
+ ## Usage
83
+
84
+ ### Loading with Datasets
85
+
86
+ ```python
87
+ from huggingface_hub import snapshot_download
88
+ import json
89
+
90
+ root = snapshot_download(
91
+ repo_id="careerflow/ResumeExtractBench",
92
+ repo_type="dataset",
93
+ )
94
+
95
+ with open(f"{root}/test.jsonl") as f:
96
+ cases = [json.loads(line) for line in f if line.strip()]
97
 
98
+ schema = json.load(open(f"{root}/schema.json"))
99
+
100
+ for case in cases:
101
+ pdf_path = f"{root}/{case['files']['pdf']}"
102
+ ground_truth = case["ground_truth"]
103
+ # Run your extractor on pdf_path against schema
104
+ # Compare output to ground_truth
105
  ```
106
+
107
+ ### Running Evaluation with CLI
108
+
109
+ ```bash
110
+ pip install resume-extract-bench
111
+ resume-bench download # download dataset
112
+ resume-bench run --pipeline gpt-5.6 --split test # run extraction
113
+ resume-bench grade --split test # score against GT
114
+ resume-bench leaderboard # view results
115
  ```
116
 
117
+ ### Bring Your Own Predictions
118
 
119
+ ```bash
120
+ resume-bench grade-file --predictions my_predictions.jsonl --split test
121
+ ```
122
+
123
+ ### Dataset Files
124
+
125
+ - **test.jsonl**: 38 test cases (one JSON object per line)
126
+ - **schema.json**: Target JSON Schema for extraction (resume_v1)
127
+ - **pdfs/**: Source resume PDFs
128
+
129
+ ---
130
+
131
+ ## Dataset Format
132
+
133
+ Each JSONL line represents one resume test case:
134
 
135
  ```json
136
  {
137
+ "resume_id": "distractor-date-chaos-inconsistent-date-formats-throughout",
138
+ "files": {"pdf": "pdfs/distractor-date-chaos-inconsistent-date-formats-throughout.pdf"},
139
+ "ground_truth": { ... },
140
+ "difficulty": "hard",
141
+ "layout_tags": ["distractor", "inconsistent-date-formats"],
142
+ "source": "synthetic-distractor",
143
+ "domain": "software-engineering",
144
+ "schema_version": "resume_v1"
145
  }
146
  ```
147
 
148
+ ### Field Definitions
149
+
150
  | Field | Type | Description |
151
+ |---|---|---|
152
+ | `resume_id` | string | Unique identifier (PDF filename stem) |
153
  | `files.pdf` | string | Relative path to source PDF |
154
+ | `ground_truth` | object | Human-verified structured extraction conforming to `schema.json` |
155
+ | `difficulty` | string | Difficulty level (`easy`, `medium`, `hard`) |
156
+ | `layout_tags` | list[string] | Visual and structural challenge tags |
157
+ | `source` | string | Resume origin: `expert-handwritten`, `synthetic-distractor` |
158
+ | `domain` | string | Professional domain of the resume |
159
  | `schema_version` | string | Schema version (`resume_v1`) |
160
 
161
+ ### Extraction Schema (resume_v1)
162
 
163
+ The schema defines 9 sections that must be extracted from each resume:
164
 
165
+ | Section | Type | Key Fields | Scored |
166
+ |---|---|---|---|
167
+ | `basics` | Singleton object | fname, lname, email, phone, city, state, country, hasPersonalPhoto | Per-field accuracy |
168
+ | `experience` | Entity list | company, position, startMonth/Year, endMonth/Year, city, description[] | Entity P/R/F1 + description token F1 |
169
+ | `education` | Entity list | institution, area, studyType, startMonth/Year, endMonth/Year, description[] | Entity P/R/F1 + description token F1 |
170
+ | `projects` | Entity list | name, url, description[] | Entity P/R/F1 + description token F1 |
171
+ | `personalSummary` | Free text | — | Token F1 |
172
+ | `certifications` | Entity list | name, issuer | Entity P/R/F1 |
173
+ | `awards` | Entity list | title | Entity P/R/F1 |
174
+ | `volunteering` | Entity list | organization, position, startYear, endYear, description[] | Entity P/R/F1 + description token F1 |
175
+ | `skills` | Flat list | category, skills[] | Set-level P/R/F1 |
176
 
177
  See `schema.json` for the full JSON Schema definition.
178
 
179
+ ---
180
 
181
+ ## Evaluation Metrics
182
 
183
+ ### Scoring Methods
184
 
185
+ 1. **Entity-Level F1**: Entities (experience entries, education entries, etc.) are aligned between prediction and ground truth using the **Hungarian algorithm** (optimal bipartite matching via `scipy.optimize.linear_sum_assignment`). Match quality is determined by **Jaro-Winkler similarity** on key fields (threshold: 0.5).
 
 
 
 
 
 
 
 
 
186
 
187
+ 2. **Description Token F1**: For matched entities with description arrays, a bag-of-words token F1 score measures description quality.
188
 
189
+ 3. **Hallucination Rate**: Fraction of predicted entities that have no match in ground truth (spurious predictions).
190
 
191
+ 4. **Omission Rate**: Fraction of ground truth entities that have no match in predictions (missed extractions).
192
 
193
+ All scoring is deterministic with no model in the loop.
194
 
195
+ ### Aggregate Metrics
196
 
197
+ Per-section scores are averaged across all resumes. The **overall F1** is the mean of all section F1 scores, providing a single leaderboard ranking metric.
198
 
199
+ ---
 
 
 
 
 
200
 
201
+ ## Leaderboard
202
 
203
+ Results from the full 155-resume benchmark (includes this dataset plus additional medium-difficulty resumes):
 
 
204
 
205
+ | Rank | Model | Overall F1 | Halluc. Rate | Omission Rate |
206
+ |---|---|---|---|---|
207
+ | 1 | LlamaExtract Agentic Plus | **0.945** | 5.1% | 2.9% |
208
+ | 2 | Claude Opus | 0.937 | 5.1% | 3.6% |
209
+ | 3 | Extend Extract | 0.937 | 4.3% | 4.3% |
210
+ | 4 | Extend Max Context | 0.935 | 4.7% | 4.6% |
211
+ | 5 | Reducto Extract | 0.931 | 5.4% | 4.1% |
212
+ | 6 | Gemini 3.5 Flash | 0.928 | 5.8% | 4.3% |
213
+ | 7 | Reducto Deep | 0.923 | 6.3% | 4.9% |
214
+ | 8 | GPT-5.5 | 0.921 | 9.4% | 2.5% |
215
+ | 9 | GPT-5.6 | 0.920 | 8.7% | 3.2% |
216
+ | 10 | Gemma 4 26B | 0.914 | 6.5% | 5.4% |
217
 
218
+ *19 models benchmarked. Full results available in the [code repository](https://github.com/careerflow/resume-extract-bench).*
 
219
 
220
+ ---
 
 
 
 
 
 
221
 
222
+ ## Tag Taxonomy
223
 
224
+ ResumeExtractBench tags documents along three axes:
225
 
226
+ | Axis | Tags | Description |
227
+ |---|---|---|
228
+ | **Source** | `expert-handwritten`, `synthetic-distractor` | How the resume was created |
229
+ | **Difficulty** | `easy`, `medium`, `hard` | Overall extraction difficulty |
230
+ | **Domain** | `engineering`, `healthcare`, `legal`, `data-science`, `government`, `general` | Professional domain |
231
 
232
+ Layout tags provide additional visual/structural metadata per resume (e.g., `handwritten`, `fancy-templates`, `canva`).
233
 
234
+ ---
 
 
 
 
235
 
236
  ## Citation
237
 
238
  ```bibtex
239
  @misc{careerflow2026resumeextractbench,
240
+ title={ResumeExtractBench: A Benchmark for Schema-Guided Resume Extraction},
241
+ author={Careerflow and LlamaIndex},
242
+ year={2026},
243
+ url={https://huggingface.co/datasets/careerflow/ResumeExtractBench},
244
  }
245
  ```
246
 
247
  ## License
248
 
249
+ All documents are synthetic or expert-created with fictional personal information. Released under [CC-BY-4.0](https://creativecommons.org/licenses/by/4.0/).
250
+
251
+ ## Related
252
+
253
+ - **[ExtractBench](https://huggingface.co/datasets/llamaindex/ExtractBench)**: Schema-guided enterprise document extraction benchmark (370 documents, 8 business domains)
254
+ - **[LongExtractBench-50](https://huggingface.co/datasets/micro1-inc/longextract-bench-50)**: Long-document structured extraction benchmark (50 documents)