(filepath)
| 59 | |
| 60 | |
| 61 | def read_examples(filepath): |
| 62 | examples_json = jsonl_utils.read(filepath) |
| 63 | examples = [Example(**example) for example in examples_json] |
| 64 | for example in examples: |
| 65 | example.metadata = ExampleMetadata(**example.metadata) |
| 66 | return examples |
| 67 | |
| 68 | |
| 69 | def write_examples(filepath, examples): |
nothing calls this directly
no test coverage detected
searching dependent graphs…