MCPcopy
hub / github.com/open-compass/VLMEvalKit / listinstr

Function listinstr

vlmeval/smp/misc.py:118–123  ·  view source on GitHub ↗
(lst, s)

Source from the content-addressed store, hash-verified

116 return len(s.split(sym))
117
118def listinstr(lst, s):
119 assert isinstance(lst, list)
120 for item in lst:
121 if item in s:
122 return True
123 return False
124
125def d2df(D):
126 return pd.DataFrame({x: [D[x]] for x in D})

Callers 15

mainFunction · 0.85
EVALFunction · 0.85
SCAN_ONEFunction · 0.85
evaluateMethod · 0.85
evaluateMethod · 0.85
__init__Method · 0.85
evaluateMethod · 0.85
__init__Method · 0.85
build_promptFunction · 0.85
merge_dualFunction · 0.85
evaluateMethod · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected