Datasets:

ArXiv:
giguru commited on
Commit
f625b82
1 Parent(s): 40ec04a

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +43 -0
README.md ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Preprocessed CANARD
2
+ Voskarides et al. have trained a Query Resolution Term Classification (QuReTec) model using the CANARD data set.
3
+
4
+ CANARD is a dataset for question-in-context rewriting that consists of questions each given in a dialog context together with a context-independent rewriting of the question. The context of each question is the dialog utterences that precede the question. CANARD can be used to evaluate question rewriting models that handle important linguistic phenomena such as coreference and ellipsis resolution.
5
+
6
+ QuReTeC is trained to label the relevant terms in the conversation history for the current contextless question. The relevant terms are the terms that occur in both the rewritten question and the history. For example:
7
+
8
+ **History:** \
9
+ Where was Bennett born?\
10
+ Bennett was born Michael Bennett DiFiglia in Buffalo, New York. When was he born? CANNOTANSWER \
11
+ **Current question**: \
12
+ Who are his parents? \
13
+ **Rewritten question**: \
14
+ Who are Michael Bennett's parents?
15
+
16
+ The **gold/relevant terms** from the question history are: michael, bennett
17
+
18
+ ## Data subsets
19
+ This repository contains the following subsets:
20
+ - gold_supervision (default): \
21
+ the gold terms are the overlapping terms between the question history from the rewritten question.
22
+ - distant_supervision: \
23
+ the gold terms are the overlapping terms between the question history and the passage in which the answer to question can be found.
24
+
25
+ ## Data structure
26
+ Each entry contains the following keys:
27
+ ```
28
+ prev_questions: string
29
+ e.g.: Where was Bennett born? Bennett was born Michael Bennett DiFiglia in Buffalo, New York. When was he born? CANNOTANSWER.
30
+ cur_question: string
31
+ e.g.: Who are his parents?
32
+ gold_terms: string[]
33
+ e.g.: ["michael", "bennett"]
34
+ bert_ner_overlap: 2-dimensional array. The first entry lists all the terms and the second end lists the labels for those terms.
35
+ e.g.: [
36
+ ["where", "was", "bennett", "born", "?", "bennett", "was", "born", "michael", "bennett", "difiglia", "in", "buffalo", ",", "new", "york", ".", "when", "was", "he", "born", "?", "cannotanswer", ".", "[SEP]", "who", "are", "his", "parents", "?"],
37
+ ["O", "O", "REL", "O", "O", "REL", "O", "O", "REL", "REL", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "[SEP]", "O", "O", "O", "O", "O"]
38
+ ]
39
+ answer_text_with_window: string.
40
+ For the 'gold_supervision' subset this field contains the rewritten question, e.g.: Who are Michael Bennett's parents?
41
+ For the 'distant_supervision' subset this field contains the relevant passage to the question: e.g.: Bennett was born Michael Bennett DiFiglia in Buffalo, New York, the son of Helen (nee Ternoff), a secretary, and Salvatore Joseph DiFiglia, a factory worker. Michael Bennett (theater)'s father was Roman Catholic and Italian American and Michael Bennett (theater)'s mother was Jewish. Michael Bennett (theater) studied dance and
42
+ ```
43
+