File size: 3,009 Bytes
c32ee7d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
dataset: coqa
templates:
  530616d3-1cc8-4faa-a855-4b21e0da9ec9: !Template
    answer_choices: null
    id: 530616d3-1cc8-4faa-a855-4b21e0da9ec9
    jinja: "Answer the question based on the information contained in the passage.\n\
      Q: {{questions[0]}} \n\nPassage: {{story}}\n\nA: ||| {{answers[\"input_text\"\
      ][0]}}"
    metadata: !TemplateMetadata
      choices_in_prompt: false
      metrics:
      - Other
      original_task: false
    name: first_qa_turn
    reference: 'Metric: variant of SQuAD (Section 6.1 of the paper)'
  7c0e2256-961c-48e9-bc08-6c270cc68b4a: !Template
    answer_choices: null
    id: 7c0e2256-961c-48e9-bc08-6c270cc68b4a
    jinja: 'Answer the last question based on the hint.

      {% for question, answer in zip(questions[:-1], answers["input_text"][:-1]) %}

      Q: {{question}}


      A:{{answer}}

      {%endfor %}


      Q: {{questions[-1]}}


      Hint: {{story}}


      A:|||

      {{answers["input_text"][-1]}}

      '
    metadata: !TemplateMetadata
      choices_in_prompt: false
      metrics:
      - Other
      original_task: true
    name: last_qa_turn
    reference: 'Metric: variant of SQuAD (Section 6.1 of the paper)'
  a22e8bf1-f5af-43eb-b38c-002462261da2: !Template
    answer_choices: null
    id: a22e8bf1-f5af-43eb-b38c-002462261da2
    jinja: 'Can you form a set of {{questions | length}} question-answer pairs about
      the passage below?


      Passage: {{story}}|||

      {% for question, answer in zip(questions, answers["input_text"]) %}

      Q: {{question}}


      A: {{answer}}


      {% endfor %}'
    metadata: !TemplateMetadata
      choices_in_prompt: false
      metrics:
      - BLEU
      - ROUGE
      original_task: false
    name: generate_dialogue
    reference: ''
  cb53f12f-e781-4a92-bbb0-fbef19bd2d29: !Template
    answer_choices: null
    id: cb53f12f-e781-4a92-bbb0-fbef19bd2d29
    jinja: 'In the passage below, extract the part which answers the question:


      Q: {{questions[0]}}

      Passage: {{story}} |||

      {{story[answers["answer_start"][0] : answers["answer_end"][0] ]}}'
    metadata: !TemplateMetadata
      choices_in_prompt: false
      metrics:
      - Squad
      original_task: false
    name: extract_answer_first_qa_turn
    reference: ''
  dc05f09a-0b2b-4448-9226-45dcc4cf52e6: !Template
    answer_choices: null
    id: dc05f09a-0b2b-4448-9226-45dcc4cf52e6
    jinja: "{% set missing_idx = range(questions|length)|choice %}\n\n{% for i in\
      \ range(questions|length) %}\nQ: {{questions[i] }}\n\nA:  {% if i !=missing_idx\
      \ %}\n{{answers[\"input_text\"][i]}}\n{%endif%}\n{%endfor%}\n\nGiven the above\
      \ conversation, give a suitable response to the missing answer\n\nHint: {{story}}\n\
      ||| \n{{answers[\"input_text\"][missing_idx]}}"
    metadata: !TemplateMetadata
      choices_in_prompt: false
      metrics:
      - Other
      original_task: true
    name: missing_answer
    reference: 'Metric: variant of SQuAD (Section 6.1 of the paper)'