MCPcopy Index your code
hub / github.com/THUDM/GLM / load_examples

Method load_examples

tasks/data_utils.py:81–84  ·  view source on GitHub ↗

Load a set of input examples from a file

(path: str)

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 1

loadMethod · 0.80

Tested by

no test coverage detected