Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
lm-evaluation-harness
Commits
fcddf195
Unverified
Commit
fcddf195
authored
Jul 10, 2025
by
Baber Abbasi
Committed by
GitHub
Jul 10, 2025
Browse files
fix: remove warning (#3128)
parent
f3a0b554
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lm_eval/filters/extraction.py
lm_eval/filters/extraction.py
+1
-1
No files found.
lm_eval/filters/extraction.py
View file @
fcddf195
...
@@ -141,7 +141,7 @@ class MultiChoiceRegexFilter(RegexFilter):
...
@@ -141,7 +141,7 @@ class MultiChoiceRegexFilter(RegexFilter):
"""
"""
regex_pattern: The basic regex pattern to use. If fails to match, we will use the customized match procedure
regex_pattern: The basic regex pattern to use. If fails to match, we will use the customized match procedure
- step 1 : We parse the choices between ([A-Z])s then try to find these choices in the response.
- step 1 : We parse the choices between ([A-Z])s then try to find these choices in the response.
- step 2 : We parse the choice with regex: r'
\
s*([A-?])', where ? varies by number of choices.
- step 2 : We parse the choice with regex: r's*([A-?])', where ? varies by number of choices.
group_select: Selects the (group_select)th match from the findall result.
group_select: Selects the (group_select)th match from the findall result.
ignore_case: Ignores the case during step 1 matching
ignore_case: Ignores the case during step 1 matching
ignore_punctuation: Remove the punctuation during step 1 matching
ignore_punctuation: Remove the punctuation during step 1 matching
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment