MCPcopy Create free account
hub / github.com/THUDM/P-tuning / load_examples

Method load_examples

PT-Fewshot/pet/utils.py:100–103  ·  view source on GitHub ↗

Load a set of input examples from a file

(path: str)

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected