sileod commited on
Commit
2d38de6
·
verified ·
1 Parent(s): 49a6292

Document the extraction config

Browse files
Files changed (1) hide show
  1. extraction/README.md +45 -0
extraction/README.md ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## Extraction config
2
+
3
+ `load_dataset("tasksource/tasksource-jev-typed-decisions", "extraction")`: one text and several typed fields to fill from it, answered in one
4
+ pass, as extraction models (e.g. Cloudflare's Clairic) are asked. Rows: 584,912 train, 45,705 validation, 46,612 test.
5
+
6
+ - `state`: the text. `fields`: `[{name, type, instruction}]`; `type` is `text` (one span; the instruction is
7
+ a question) or `list` (every span of a kind, e.g. every person).
8
+ - `answers`: one per field, in order: `{null, values: [{text, start, end}]}`, character offsets into
9
+ `state` (`state[start:end] == text`, checked for every span). `null` means the text does not hold the
10
+ answer (an unanswerable question, an absent entity type). Several values of a `text` field are
11
+ alternative gold spans; of a `list` field, every item.
12
+ - Extractive question answering (SQuAD 2.0, AdversarialQA, Natural Questions, HotpotQA, Quoref, MuSiQue,
13
+ DROP single-span, DuoRC, ConcurrentQA, FairytaleQA, QuAC with history, windowed CUAD, TyDi English,
14
+ Qasper spans, PolicyQA, SubjQA, COVID-QA, TimeQA, TAT-QA text spans, ROPES, QAConv and MultiDoc2Dial
15
+ grounding, MultiSpanQA, QA-SRL) groups the questions asked about one context, up to 8 fields per row.
16
+ Named entities (CoNLL-2003, OntoNotes, WNUT-17, Few-NERD, NCBI-disease, JNLPBA, acronyms, FiNER-139,
17
+ MAVEN event triggers, SLURP slots, EBM-NLP PICO spans, and astronomy, biomedical, financial, software,
18
+ legal, GUM, Twitter and English opinion-target sources) ask for every entity type of the dataset, or
19
+ the types present plus absent ones up to 8. Entity texts are the source tokens joined by spaces.
20
+ Other span tagging (skills, keyphrases, aspect terms, toxic spans, metaphors, learner errors, BioScope and
21
+ ConanDoyle-neg negation and speculation scopes, AbstRCT claims and premises, GUM elementary discourse units)
22
+ asks for every span of its kind. Event arguments (PHEE adverse drug events, RAMS and CASIE) ask for every
23
+ argument of each role of a trigger given by its character offsets.
24
+ - Structural extraction uses English UD EWT/GUM dependency subtrees (`ud/...`), PreCo coreference
25
+ mention sets (`preco/mentions`), human-revised Re-DocRED relation targets (`redocred/entities`),
26
+ and CoNLL-2000 phrase chunks. UD fields select a unique head and keep full contiguous subtrees;
27
+ a missing dependent is null and a non-projective positive field is omitted.
28
+ - Procedural extraction ([procedural-extraction](https://huggingface.co/datasets/tasksource/procedural-extraction),
29
+ sources `procedural/...`): person records with near-miss names and confusers, plan slots in force after a chat
30
+ of proposals and undos, conditional order lists after updates, log queries, typed mentions, business documents
31
+ with amendments, nested configurations with override layers, raw HTML pages, records dated in mixed formats
32
+ within a range, products matching specs in mixed units and number styles, fields asked by role among
33
+ same-typed look-alikes and conditional or policy values, values located by section path or table cell, row and condition, and the causes, effects
34
+ or consequences of an event in narratives and rule sets, at difficulty levels 0 to 4;
35
+ spans and nulls exact by construction.
36
+ - Mostly English, with a small multilingual share: TyDi QA (Arabic, Bengali, Finnish, Korean, Russian, Swahili),
37
+ UNER (Portuguese, Chinese), MasakhaNER 2 (Swahili) and MASSIVE slots (Hindi), at most 1,600 training rows per
38
+ language.
39
+ - Native splits, except those without released labels; evaluation texts that also occur in training are dropped. Each source is capped at
40
+ 10,000 training rows (a suite of configs, such as `swde/...`, shares 20,000) and 500 per evaluation split; at most 20% of an entity source's
41
+ texts mention none of its entity types. `license`/`license_use` per row;
42
+ `metadata` keeps source question ids or entity types. See [build-manifest.json](build-manifest.json).
43
+
44
+ The same question answering sources load in SQuAD format for `AutoModelForQuestionAnswering` with
45
+ `tasksource.load_task(id, extractive=True)`.