Load a set of input examples from a file
(path: str)
| 98 | |
| 99 | @staticmethod |
| 100 | def load_examples(path: str) -> List['InputExample']: |
| 101 | """Load a set of input examples from a file""" |
| 102 | with open(path, 'rb') as fh: |
| 103 | return pickle.load(fh) |
| 104 | |
| 105 | @staticmethod |
| 106 | def save_examples(examples: List['InputExample'], path: str) -> None: |