diff --git a/lm_eval/filters/extraction.py b/lm_eval/filters/extraction.py index 5dc10863e7..58312e99d3 100644 --- a/lm_eval/filters/extraction.py +++ b/lm_eval/filters/extraction.py @@ -164,7 +164,7 @@ def filter_ignores(st): fallback_regex = re.compile("|".join(fallback_regexes)) without_paren_fallback_regex = "|".join(without_paren_fallback_regexes) without_paren_fallback_regex = re.compile( - f":[\s]*({without_paren_fallback_regex})" + rf":[\s]*({without_paren_fallback_regex})" ) filtered = []