def parse_and_verify(solution_str, ground_truth):
    """Parses and verifies the solution string."""
    extract_answer, is_boxed_matched = extract_solution(solution_str=solution_str)
    target = parse(extract_answer)
    gold = parse(ground_truth)
    return verify(gold=gold, target=target), is_boxed_matched, extract_answer
Parses and verifies the solution string.
verl/utils/reward_score/hf_math_verify copy.py