Load a set of input examples from a file
(path: str)
| 79 | |
| 80 | @staticmethod |
| 81 | def load_examples(path: str) -> List['InputExample']: |
| 82 | """Load a set of input examples from a file""" |
| 83 | with open(path, 'rb') as fh: |
| 84 | return pickle.load(fh) |
| 85 | |
| 86 | @staticmethod |
| 87 | def save_examples(examples: List['InputExample'], path: str) -> None: |