finnianx commited on
Commit
86f244b
路
verified 路
1 Parent(s): 5d72a91

Create capitals.yaml

Browse files
Files changed (1) hide show
  1. capitals.yaml +34 -0
capitals.yaml ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ task: capitals
2
+ dataset_path: finnianx/capitals
3
+ dataset_name: null
4
+ output_type: generate_until
5
+ training_split: train
6
+ validation_split: train
7
+ test_split: train
8
+ fewshot_split: train
9
+ num_fewshot: 0
10
+ doc_to_text: "Question: What is the capital of {{country}}?\nAnswer:"
11
+ doc_to_target: "{{capital}}"
12
+ target_delimiter: " "
13
+ generation_kwargs:
14
+ until:
15
+ - "\n"
16
+ - "Question:"
17
+ do_sample: false
18
+ temperature: 0.0
19
+ max_gen_toks: 20
20
+ filter_list:
21
+ - name: "extract_answer"
22
+ filter:
23
+ - function: "regex"
24
+ regex_pattern: "([A-Z][a-z脿-枚酶-每''-]+(?: [A-Z][a-z脿-枚酶-每''-]+)*)"
25
+ group_select: -1
26
+ - function: "take_first"
27
+ metric_list:
28
+ - metric: exact_match
29
+ aggregation: mean
30
+ higher_is_better: true
31
+ ignore_case: true
32
+ ignore_punctuation: true
33
+ metadata:
34
+ version: 1.0