MCPcopy Create free account
hub / github.com/google-research/language / read_examples

Function read_examples

language/quest/common/example_utils.py:61–66  ·  view source on GitHub ↗
(filepath)

Source from the content-addressed store, hash-verified

59
60
61def 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
69def write_examples(filepath, examples):

Callers

nothing calls this directly

Calls 2

ExampleMetadataClass · 0.85
ExampleClass · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…