Commit 248b45da authored by lintangsutawika's avatar lintangsutawika
Browse files

config fixes

parent 70e3ed25
...@@ -9,7 +9,7 @@ training_split: train ...@@ -9,7 +9,7 @@ training_split: train
validation_split: validation validation_split: validation
test_split: test test_split: test
doc_to_text: "Question: {{question}}\nAnswer:" doc_to_text: "Question: {{question}}\nAnswer:"
doc_to_target: "{{choices['text'][choices.label.index(answerKey)]}}" doc_to_target: "{{choices.label.index(answerKey)}}"
doc_to_choice: "{{choices.text}}" doc_to_choice: "{{choices.text}}"
should_decontaminate: true should_decontaminate: true
doc_to_decontamination_query: "Question: {{question}}\nAnswer:" doc_to_decontamination_query: "Question: {{question}}\nAnswer:"
......
...@@ -7,10 +7,9 @@ output_type: multiple_choice ...@@ -7,10 +7,9 @@ output_type: multiple_choice
training_split: train training_split: train
validation_split: validation validation_split: validation
test_split: null test_split: null
template_aliases: "{% set gold = label | int %}{% set answer_choices = endings|map('trim')|map('replace', ' [title]', '. ')|map('regex_replace', '\\[.*?\\]', '')|map('replace', ' ', ' ')|list %}"
doc_to_text: "{% set text = activity_label ~ ': ' ~ ctx_a ~ ' ' ~ ctx_b.capitalize() %}{{text|trim|replace(' [title]', '. ')|regex_replace('\\[.*?\\]', '')|replace(' ', ' ')}}" doc_to_text: "{% set text = activity_label ~ ': ' ~ ctx_a ~ ' ' ~ ctx_b.capitalize() %}{{text|trim|replace(' [title]', '. ')|regex_replace('\\[.*?\\]', '')|replace(' ', ' ')}}"
doc_to_target: "{{answer_choices[gold]}}" doc_to_target: "{{label}}"
gold_alias: "{{gold}}" doc_to_choice: "{{endings|map('trim')|map('replace', ' [title]', '. ')|map('regex_replace', '\\[.*?\\]', '')|map('replace', ' ', ' ')|list}}"
metric_list: metric_list:
- metric: acc - metric: acc
aggregation: mean aggregation: mean
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment