(row_i: int, row: List[str], table)
| 61 | |
| 62 | |
| 63 | def 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 | |
| 75 | def create_win_row(rows: List[List[str]]) -> List[str]: |
no test coverage detected