Skip to content

Incorrect parsed results #44

@heyubox

Description

@heyubox
text1 = "parse('SoHi YES.\n\n could answer therefore\\boxed{840}.,but let me put this after explain.\n\n**Final Answer**\n\\boxed{840}')"
print(parser(text1))
# output: [840840, '840,840']
# But I expected to get `[840, '840']`

parse(' the answer should be \\boxed{004}.\n\nBut let me check again: the sum is 2,552,004. The last three digits are 004. Therefore, when divided by 1000, the remainder is 004. So, \\boxed{004} is the correct answer.\n\n**Final Answer**\n\\boxed{004}')
# output: [4.00400000000000, '004,004']
# Expected: `4`

When I tried to parse the above texts, I got incorrect parsed results. I tried officially recommended configs in README but it didn't help.

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