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

Function create_section_row

opencompass/summarizers/multi_model.py:63–72  ·  view source on GitHub ↗
(row_i: int, row: List[str], table)

Source from the content-addressed store, hash-verified

61
62
63def create_section_row(row_i: int, row: List[str], table) -> List[str]:
64 section_name = bold('[' + row[0].replace('-', '').strip() + ']')
65
66 # TODO: 区分 acc,rouge1,score 等
67 section_rows = []
68 for next_row in table[row_i + 1 :]:
69 if is_section_row(next_row):
70 break
71 section_rows.append(next_row)
72 return average_rows(section_name, section_rows)
73
74
75def create_win_row(rows: List[List[str]]) -> List[str]:

Callers 1

summarizeMethod · 0.85

Calls 4

boldFunction · 0.85
is_section_rowFunction · 0.85
average_rowsFunction · 0.85
replaceMethod · 0.80

Tested by

no test coverage detected