sandeep85 commited on
Commit
8593faf
·
verified ·
1 Parent(s): 8ab4afa

Expand example: data and card

Browse files
Files changed (3) hide show
  1. README.md +106 -0
  2. data/like-yours.jsonl +0 -0
  3. data/related-tasks.jsonl +0 -0
README.md ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-sa-4.0
3
+ language:
4
+ - en
5
+ task_categories:
6
+ - token-classification
7
+ - question-answering
8
+ tags:
9
+ - synthetic
10
+ - datainventor
11
+ - expand
12
+ size_categories:
13
+ - n<1K
14
+ configs:
15
+ - config_name: like-yours
16
+ data_files:
17
+ - split: train
18
+ path: data/like-yours.jsonl
19
+ - config_name: related-tasks
20
+ data_files:
21
+ - split: train
22
+ path: data/related-tasks.jsonl
23
+ pretty_name: "DataInventor Expand: typed extraction"
24
+ ---
25
+
26
+ # DataInventor Expand: typed extraction
27
+
28
+ Synthetic typed-extraction cases in the format of [LocalLLaMA/typed-extraction](https://huggingface.co/datasets/LocalLLaMA/typed-extraction): a document (`state`), a map of typed fields to extract (`fields`), and the gold answer for each (`gold`: value, source, alts and character spans). It was grown with the Expand mode of [DataInventor](https://huggingface.co/spaces/LocalLLaMA/data-inventor), which takes a small dataset you own and writes more rows in the same schema. 167 rows in total; each growth mode is a separate config.
29
+
30
+ ## Seed
31
+
32
+ 16 rows of the `train` split of [LocalLLaMA/typed-extraction](https://huggingface.co/datasets/LocalLLaMA/typed-extraction) (9,642 cases): four each from the squad2, drop, lease and wikipedia families. Released under CC BY-SA 4.0 like the seed.
33
+
34
+ ## Engine
35
+
36
+ `openai/gpt-oss-20b` on DeepInfra through the Hugging Face router (reasoning effort low). Each row is written in two calls: the input fields first, then the output fields given that input and three full seed rows as examples.
37
+
38
+ ## Checks applied to every row
39
+
40
+ - Schema: the seed's columns and types; `n_fields` is recomputed from `fields`; `fields` and `gold` must have the same keys.
41
+ - Entry structure, measured from the seed: every `fields` entry has `name`, `type`, `instructions` and `options`, with `type` one of the seed's (`text`, `number`, `date`, `duration`); every `gold` entry has `value`, `source`, `alts` and `spans`, with `source` one of the seed's (`span`, `computed`, `normalised`). Flat or partial entries are rejected; extra keys are dropped.
42
+ - Values fit their field type: numbers for `number` and `duration`, ISO dates for `date` (or null).
43
+ - Spans: a `span` answer must appear in the document (text exactly or ignoring case, numbers as written, with or without thousands separators), and its character offsets are recomputed from the document; the model's offsets are never kept. Empty strings become null.
44
+ - Text: degenerate text, prompt leaks, placeholders, tables and code fences (the seed has none), and length bounds from the seed (in `like-yours`; per-task bounds from the plan in `related-tasks`).
45
+ - Duplicates: exact and near-duplicates of seed rows and of other new rows, and 13-gram overlap with six public benchmarks.
46
+
47
+ Rows that fail any check are rejected and counted by reason; the counts are below.
48
+
49
+ ## Configs
50
+
51
+ ### `like-yours` (92 rows)
52
+
53
+ More data like yours: new rows on the seed's own topics, three rotating seed rows shown as examples for each.
54
+
55
+ - Plan: Historical events, Sports statistics, Real estate contracts, Wikipedia city profiles, Film metadata, Medical statistics, War history, Business contracts, Government appointments, Economic data, Demographics, Legal documents.
56
+ - Attempts: 159. Kept by the run: 100. Rejected during the run:
57
+ - span not in the document: 30
58
+ - malformed entry in gold: 8
59
+ - entry value not in the seed (fields.type): 3
60
+ - rule broken: 3
61
+ - too short: 2
62
+ - entry value not in the seed (gold.source): 2
63
+ - broken JSON: 1
64
+ - missing a field: 1
65
+ - malformed entry in fields: 1
66
+ - Removed after the run, by a check added after it finished or by hand review: 8
67
+ - span not in the document: 7
68
+ - removed after hand review: 1
69
+ - Near-duplicates: mean highest word-3-gram overlap with a seed row 0.051, with another new row 0.065; no row at 0.5 or above.
70
+ - Topic spread (topic labels from the seed, one model call per 25 rows): 2.78 bits in the seed, 3.17 bits in the new rows.
71
+ - Time 2.9 min; endpoint cost $0.0412.
72
+
73
+ ### `related-tasks` (75 rows)
74
+
75
+ Related tasks: six other tasks from the same domain, written in the same fields and language.
76
+
77
+ - Plan: Event Timeline, Key Figures, Statistical Summary, Location Mapping, Cause and Effect, Source Attribution.
78
+ - Attempts: 380. Kept by the run: 78. Rejected during the run:
79
+ - span not in the document: 143
80
+ - malformed entry in gold: 62
81
+ - malformed entry in fields: 51
82
+ - entry value not in the seed (fields.type): 22
83
+ - rule broken: 10
84
+ - broken JSON: 10
85
+ - entry value not in the seed (gold.source): 3
86
+ - missing a field: 1
87
+ - Removed after the run, by a check added after it finished or by hand review: 3
88
+ - span not in the document: 3
89
+ - Near-duplicates: mean highest word-3-gram overlap with a seed row 0.007, with another new row 0.015; no row at 0.5 or above.
90
+ - Topic spread (topic labels from the seed, one model call per 25 rows): 2.83 bits in the seed, 2.92 bits in the new rows.
91
+ - Time 5.6 min; endpoint cost $0.0876.
92
+
93
+ ## Columns
94
+
95
+ `id`, `family`, `origin`, `held_out`, `state`, `reference_date`, `fields` (JSON string), `gold` (JSON string), `n_fields`, plus `expand_mode` and `expand_topic`. `family`, `origin` and `held_out` copy the seed's values so the rows load alongside it; they do NOT mean a row came from SQuAD 2.0, DROP or Wikipedia: every row here is synthetic.
96
+
97
+ ## Limits
98
+
99
+ - The checks prove that every span is in its document and every value has the right type. They do not prove that the right span was chosen or that a `computed` or `normalised` value is right. A 15-row read per config found one wrong computed answer in `like-yours` (a question about a war the document does not mention, answered with a number instead of null; that row was removed) and fields that repeat the same question. Expect similar errors in rows nobody read.
100
+ - Documents are invented and some contain false history or garbled facts (for example, a misdated battle); the gold answers follow the document, not the world.
101
+ - `reference_date` copies seed values and does not always fit the document.
102
+ - An `outside-domain` config was generated and left out: in a 15-row read, 2 rows filled a review date the document never gives.
103
+ - Every row was written by a language model and has not been checked by a person beyond a 15-row read per config. The checks catch format faults, not wrong facts.
104
+ - Synthetic data repeats the habits and blind spots of the model that wrote it. Read a sample before you train on it.
105
+
106
+ Make your own with [DataInventor](https://huggingface.co/spaces/LocalLLaMA/data-inventor). License: CC-BY-SA-4.0.
data/like-yours.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
data/related-tasks.jsonl ADDED
The diff for this file is too large to render. See raw diff