MCPcopy Index your code
hub / github.com/Depth2World/VLADBench / clean_string

Function clean_string

evaluate_utils.py:49–54  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

47
48 return iou
49def clean_string(s):
50 while s and (s[0] in ":[]()' ."):
51 s = s[1:]
52 while s and (s[-1] in ":[]()' ."):
53 s = s[:-1]
54 return s
55
56def convert_if_number(answer):
57 if isinstance(answer, (int, float)):

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