jithinjames commited on
Commit
80cecee
·
verified ·
1 Parent(s): 5aa59f7

Relax FINAL ANSWERS marker regex -- was silently failing to match if model put an answer on the same line as the marker

Browse files
Files changed (1) hide show
  1. script.py +1 -1
script.py CHANGED
@@ -79,7 +79,7 @@ def parse_answers(text, expected_count=None):
79
  If expected_count is given, pad with "" or truncate so the row never silently
80
  drops points from a length mismatch against the scorer's positional alignment.
81
  """
82
- marker = list(re.finditer(r"(?im)^[#*\s]*final answers?[:#*\s]*$", text))
83
  if marker:
84
  text = text[marker[-1].end():]
85
  answers = []
 
79
  If expected_count is given, pad with "" or truncate so the row never silently
80
  drops points from a length mismatch against the scorer's positional alignment.
81
  """
82
+ marker = list(re.finditer(r"(?im)^[#*\s]*final answers?[:#*\s]*", text))
83
  if marker:
84
  text = text[marker[-1].end():]
85
  answers = []