MCPcopy Create free account
hub / github.com/PAIR-code/lit / load

Method load

lit_nlp/api/dataset.py:159–170  ·  view source on GitHub ↗

Load and return additional previously-saved datapoints for this dataset. Args: path: The path to the persisted datapoint file. Returns: (Dataset) A dataset containing the loaded data.

(self, path: str)

Source from the content-addressed store, hash-verified

157 return spec
158
159 def load(self, path: str):
160 """Load and return additional previously-saved datapoints for this dataset.
161
162 Args:
163 path: The path to the persisted datapoint file.
164
165 Returns:
166 (Dataset) A dataset containing the loaded data.
167 """
168 if self._base is not None:
169 return self._base.load(path)
170 pass
171
172 def save(self, examples: list[IndexedInput], path: str):
173 """Save newly-created datapoints to disk in a dataset-specific format.

Callers 1

loadMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected