Recent Releases of math-verify
math-verify - 0.8.0
- Added
raise_on_errorparameter toverifyandparsefunctions to optionally propagate internal exceptions. - Reduced default logging verbosity; errors are now logged at debug level unless
raise_on_erroris enabled. - Improved handling of
\\boxed{}expressions, including cases with units/percentages and multiple boxed values.
- Python
Published by hynky1999 12 months ago
math-verify - 0.7.0
- Added CITATION.cff file with library metadata
- Ensure And don't throw an error on comparisson
- Simplified joining of multiple boxed expressions
- Improved assignment resoluion
- Improved handling of And instances in
sympy_compare_relational - Qol changes (formatting, etc)
- Python
Published by hynky1999 12 months ago
math-verify - 0.6.2
- Made parsing timeout to be global not per extraction to avoid too long extraction time
- Changed timeout exception to be a custom exception to prevent default exception handler catching
- Fixed bug with 0,xxx not being parsed as float
- Python
Published by hynky1999 over 1 year ago
math-verify -
- Added support for setting numeric precision for numeric evaluation
- Fixed bug with expression with =
- Deprecated
equationsparameter inNormalizationConfig, as it is now handled by the parser - Fixed processing of Assignment relations
- Bumped latex2sympy2_extended to 1.0.9
- Python
Published by hynky1999 over 1 year ago
math-verify - 0.5.3
[0.5.3]
- Added support for multiple antlr4 runtimes:
antlr4-python3-runtime==4.13.2antlr4-python3-runtime==4.11.0antlr4-python3-runtime==4.9.3
[0.5.3-pre]
- Improve process of running
evaluate_model.py:- Update the README command and installation instructions.
- Update
inferencedependencies to "lighteval" instead of "lighteval[accelerate]" to reflect the fact thataccelerateis now a main rather than optional dependency oflighteval. - Fix import path passed to
lighteval/tasks/registry.py. - Provide
--override-bsas a CLI parameter as an alternative to automatic batch size selection, which does not work well on all hardware. - Use available accelerators.
- Python
Published by hynky1999 over 1 year ago
math-verify -
- Bump latex2sympy2_extended to 1.0.6, which fixes a bug with boxed normalization
- Allow more separators in latex expressions
- Python
Published by hynky1999 over 1 year ago
math-verify - 0.5.1
Remove empty excepts, so that KeyboardInterrupt is not caught
- Python
Published by hynky1999 over 1 year ago
math-verify -
Changed
- Replaced
FiniteSetfromsympywithFiniteSetfromlatex2sympy2_extended.setsinsrc/math_verify/grader.pyandsrc/math_verify/parser.py. - Modified
sympy_deep_compare_set_and_tupleandsympy_compare_setsfunctions to useSympyFiniteSetfor better compatibility withlatex2sympy2_extended. - Updated
is_assignment_relationto useis_expr_of_only_symbolsinstead ofis_assignment_symbol. - Improved sorting logic in
sympy_deep_compare_set_and_tupleto handleTimeoutError.
Added
- New test cases in
tests/test_numina_cases.pyfor enhanced expression comparison, including complex expressions and boxed expressions.
Fixed
- Fixed issues with expression comparison logic, ensuring more accurate results when comparing sets and tuples.
- Python
Published by hynky1999 over 1 year ago
math-verify - 0.4.1
Added
- Fix bug with \boxed expressions. Boxed expression have no ending stopped so they will extract until }. This is fine as normalization will then extract the content. Issue was that if we have multiple of them, it would take all of them no matter whether they are connected or not. So "\boxed{1} ahhh no it's \boxed{2}" would be parsed as "\boxed{1,2}. This is now fixed.
- Python
Published by hynky1999 over 1 year ago
math-verify - 0.4.0
Changelog
0.4.0
Added
- Support for multiple expressions joined by "and"/"or" in latex parsing
- Support for comparing expressions with different variable names in non-strict mode
- Support for comparing E (euler's number) with symbol 'e'
- Support for comparing concatenated symbols (e.g., 'abc' vs 'abc')
- Support for comparing relations with sets (e.g., '1 < x < 2' equals '(1,2)')
- Support for comparing tuples with sets
- Support for unwrapping function calls to their arguments
- Added new test files:
test_numina_cases.pyfor specific test casestest_open_thoughts.pyfor additional test scenariostest_strict.pyfor testing strict vs non-strict comparison modes
Changed
- Improved latex parsing to handle multiple expressions
- Enhanced set comparison logic to handle more edge cases
- Renamed
sympy_deep_compare_finite_settosympy_deep_compare_set_and_tuple - Updated
verifyfunction to support strict/non-strict comparison modes - Modified timeout handling in parsing functions
- Improved documentation and type hints
Fixed
- Fixed handling of percentage notation
- Fixed comparison of intervals with finite sets
- Fixed handling of boxed expressions with multiple values
- Fixed handling of text in latex expressions
Removed
- Removed redundant
sympy_compare_set_intervalfunction - Removed unnecessary string comparison in some cases
- Python
Published by hynky1999 over 1 year ago