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

Method get_dataset_specs

lit_nlp/app.py:1088–1093  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1086 )
1087
1088 def get_dataset_specs(self) -> dict[str, dict[str, str]]:
1089 datasets_with_spec = collections.defaultdict(dict)
1090 for name, ds in self._datasets.items():
1091 for field_name, lit_data_class in ds.spec().items():
1092 datasets_with_spec[name][field_name] = type(lit_data_class).__name__
1093 return datasets_with_spec
1094
1095 def save_cache(self):
1096 for m in self._models.values():

Callers

nothing calls this directly

Calls 1

specMethod · 0.45

Tested by

no test coverage detected