MCPcopy Create free account
hub / github.com/Depth2World/VLADBench / convert_if_number

Function convert_if_number

evaluate_utils.py:56–59  ·  view source on GitHub ↗
(answer)

Source from the content-addressed store, hash-verified

54 return s
55
56def convert_if_number(answer):
57 if isinstance(answer, (int, float)):
58 return str(answer)
59 return answer
60
61def remove_symbols(input_string):
62 if 'correct answer is:' in input_string:

Callers 4

Geneal_criterion_QAFunction · 0.85
Grounding_criterion_QAFunction · 0.85
RoadChange_criterion_QAFunction · 0.85
Judge_criterion_QAFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected