sileod commited on
Commit
4df212b
·
verified ·
1 Parent(s): 6f91631

Document the extraction config

Browse files
Files changed (1) hide show
  1. extraction/README.md +33 -0
extraction/README.md ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: 388,909 train, 27,720 validation, 30,257 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) 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.
20
+ Other span tagging (skills, keyphrases, aspect terms, toxic spans, metaphors, learner errors) asks for
21
+ every span of its kind.
22
+ - Procedural extraction ([procedural-extraction](https://huggingface.co/datasets/tasksource/procedural-extraction),
23
+ sources `procedural/...`): person records with near-miss names and confusers, plan slots in force after a chat
24
+ of proposals and undos, conditional order lists after updates, and log queries, at difficulty levels 0 to 4;
25
+ spans and nulls exact by construction.
26
+ Entity texts are the source tokens joined by spaces.
27
+ - Native splits, except those without released labels; evaluation texts that also occur in training are dropped. Each source is capped at
28
+ 10,000 training rows and 500 per evaluation split; at most 20% of an entity source's
29
+ texts mention none of its entity types. `license`/`license_use` per row;
30
+ `metadata` keeps source question ids or entity types. See [build-manifest.json](build-manifest.json).
31
+
32
+ The same question answering sources load in SQuAD format for `AutoModelForQuestionAnswering` with
33
+ `tasksource.load_task(id, extractive=True)`.