Skip to content

Commit

Permalink
fix the regex string in yaml file
Browse files Browse the repository at this point in the history
  • Loading branch information
lxning committed Aug 21, 2024
1 parent a4987bb commit d97a5e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lm_eval/tasks/mmlu_pro/_default_template_yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ filter_list:
- name: "custom-extract"
filter:
- function: "regex"
regex_pattern: r"answer is \(?([ABCDEFGHIJ])\)?"
regex_pattern: 'answer is \(?([ABCDEFGHIJ])\)?'
# regex_pattern: r".*[aA]nswer:\s*([A-J])",
- function: "take_first"
generation_kwargs:
Expand Down

0 comments on commit d97a5e7

Please sign in to comment.