MCPcopy Create free account
hub / github.com/InternScience/SciReason / to_float

Function to_float

opencompass/summarizers/multi_model.py:36–40  ·  view source on GitHub ↗
(text: str)

Source from the content-addressed store, hash-verified

34
35
36def to_float(text: str):
37 try:
38 return float(text)
39 except ValueError:
40 return 0
41
42
43def is_section_row(row: List[str]) -> bool:

Callers 3

average_rowsFunction · 0.85
create_win_rowFunction · 0.85
highlightFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected