(path: str, set_type: str)
| 1173 | |
| 1174 | @staticmethod |
| 1175 | def _create_examples(path: str, set_type: str) -> List[InputExample]: |
| 1176 | examples = [] |
| 1177 | df = read_tsv(path) |
| 1178 | |
| 1179 | for idx, row in df.iterrows(): |
| 1180 | guid = f"{set_type}-{idx}" |
| 1181 | text_a = punctuation_standardization(row['sentence']) |
| 1182 | label = row.get('label', None) |
| 1183 | example = InputExample(guid=guid, text_a=text_a, label=label) |
| 1184 | examples.append(example) |
| 1185 | |
| 1186 | return examples |
| 1187 | |
| 1188 | |
| 1189 | class ColaProcessor(Sst2Processor): |
no test coverage detected