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

Function remove_symbols

evaluate_utils.py:61–65  ·  view source on GitHub ↗
(input_string)

Source from the content-addressed store, hash-verified

59 return answer
60
61def remove_symbols(input_string):
62 if 'correct answer is:' in input_string:
63 input_string = input_string.split('correct answer is:')[-1]
64 cleaned_string = re.sub(r'[\*\n\""]', '', input_string)
65 return cleaned_string
66
67def extract_options(text):
68

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