Skip to content

Commit

Permalink
Fixed calculate_score.py
Browse files Browse the repository at this point in the history
Line 62: `extraction = str(round(float(extraction), precision))` --> `extraction = str(round(float(extraction), int(precision)))`
  • Loading branch information
lupantech authored Nov 29, 2024
1 parent 99fa993 commit ece407d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion evaluation/calculate_score.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def normalize_extracted_answer(

elif answer_type == 'float':
try:
normalized_extraction = str(round(float(extraction), precision))
normalized_extraction = str(round(float(extraction), int(precision)))
except Exception:
normalized_extraction = None

Expand Down

0 comments on commit ece407d

Please sign in to comment.