Skip to content

Commit

Permalink
Update line_process.py
Browse files Browse the repository at this point in the history
add comment about cases of groundth and prediction
in the main function
  • Loading branch information
jiaochenlu authored Oct 17, 2023
1 parent 1441433 commit 48132db
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions examples/flows/evaluation/eval-chat-math/line_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,18 @@ def line_process(groundtruth: str, prediction: str) -> int:
processed_result = -1

return processed_result


if __name__ == "__main__":
processed_result = line_process("3/5", "6/10")
print("The processed result is", processed_result)

processed_result = line_process("1/2", "0.5")
print("The processed result is", processed_result)

processed_result = line_process("3", "5")
print("The processed result is", processed_result)

processed_result = line_process("2/3", "the answer is \box{2/3}")
print("The processed result is", processed_result)

0 comments on commit 48132db

Please sign in to comment.