Save a set of input examples to a file
(examples: List['InputExample'], path: str)
| 85 | |
| 86 | @staticmethod |
| 87 | def save_examples(examples: List['InputExample'], path: str) -> None: |
| 88 | """Save a set of input examples to a file""" |
| 89 | with open(path, 'wb') as fh: |
| 90 | pickle.dump(examples, fh) |
| 91 | |
| 92 | |
| 93 | def num_special_tokens_to_add(text_a_ids, text_b_ids, answer_ids, add_cls, add_sep, add_piece, add_eos=True): |
nothing calls this directly
no outgoing calls
no test coverage detected