mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-24 17:05:03 +00:00
more tolerant parsing of futoshiki answers
This commit is contained in:
parent
5c786eb7fe
commit
5803a2962e
3 changed files with 58 additions and 11 deletions
|
|
@ -55,7 +55,7 @@ class ProceduralDataset(ABC, Sized, Iterable[Dict[str, Any]]):
|
|||
"""Overwrite this method in derived classes if a single oracle answer is not available."""
|
||||
oracle_answer = entry["answer"]
|
||||
reward = 0.0
|
||||
if answer is not None:
|
||||
if answer is not None and len(answer) > 0:
|
||||
if answer == oracle_answer:
|
||||
reward = 1.0
|
||||
elif oracle_answer in answer:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue