Skip to content

How to supervise non-math data? #56

Open
@Luodian

Description

@Luodian

I see the accuracy reward only can check the numerical equal? But what if my question is MCQ and asking an option?

I did a quick check and find it's not working.

from math_verify import parse, verify

# Parse the gold and answer
# If you know that gold will only contain latex or expr (no latex env), use
# parse(gold, extraction_config=[LatexExtractionConfig()]) or parse(gold, extraction_config=[ExprExtractionConfig()])

gold = parse("So the answer is B")
answer = parse("B")

print(gold)
print(answer)
# Order here is important!
print(verify(gold, answer))


[]
[]
False

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions