Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenJieting committed Oct 25, 2023
1 parent 9aef7bc commit 3c93ff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/flows/evaluation/eval-chat-math/line_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
def string_to_number(raw_string: str) -> float:
''' Try to parse the prediction string and groundtruth string to float number.
Support parse int, float, fraction and recognize non-numeric string with wrong format.
Wrong format cases: 'the answer is \box{2/3}', '4/7//8'
Wrong format cases: 'the answer is \box{2/3}', '0, 5, or any number greater than 11', '4/7//9'
'''
float_number = 0.0
try:
Expand Down

0 comments on commit 3c93ff1

Please sign in to comment.