french_bench_grammar.yaml 912 Bytes
Newer Older
Manuel Faysse's avatar
Manuel Faysse committed
1
include: "_default_template_yaml"
2
tag:
Manuel Faysse's avatar
Manuel Faysse committed
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  - french_bench
  - french_bench_mc
description: "Répond au mieux en complétant la question avec une des réponses proposées."
dataset_path: manu/french-bench-grammar-vocab-reading
output_type: multiple_choice
validation_split: Grammar
fewshot_split: Grammar
test_split: Grammar
#doc_to_text: "Question: {{question.strip()}}\nA: {{answerA}}\nB: {{answerB}}\nC: {{answerC}}\nD: {{answerD}}\nRéponse:"
#doc_to_choice: ["A", "B", "C", "D"]
doc_to_text: "La phrase suivante est correcte grammaticalement:\n"
doc_to_choice: "{{[question.replace('<...>', answerA), question.replace('<...>', answerB), question.replace('<...>', answerC), question.replace('<...>', answerD)]}}"
doc_to_target: '{{["answerA", "answerB", "answerC", "answerD"].index("answer" + answer)}}'
task: french_bench_grammar
metric_list:
  - metric: acc
    aggregation: mean
    higher_is_better: true