Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PAIR-code/lit
/ spec
Method
spec
lit_nlp/api/dataset.py:190–192 ·
view source on GitHub ↗
Return a spec describing dataset elements.
(self)
Source
from the content-addressed store, hash-verified
188
pass
189
190
def
spec(self) -> Spec:
191
""
"Return a spec describing dataset elements."
""
192
return
self._spec
193
194
@property
195
def
examples(self) -> list[JsonDict]:
Callers
15
remap
Method · 0.95
_build_metadata
Method · 0.45
_run_annotators
Method · 0.45
get_dataset_specs
Method · 0.45
validate_dataset
Function · 0.45
validate_model
Function · 0.45
__init__
Method · 0.45
save
Method · 0.45
test_remap
Method · 0.45
test_init_from_indexed_examples_with_inconsistent_ids
Method · 0.45
test_init_without_examples
Method · 0.45
test_load_lit_format_unindexed
Method · 0.45
Calls
no outgoing calls
Tested by
8
test_remap
Method · 0.36
test_init_from_indexed_examples_with_inconsistent_ids
Method · 0.36
test_init_without_examples
Method · 0.36
test_load_lit_format_unindexed
Method · 0.36
test_load_lit_format_indexed
Method · 0.36
test_indexed_dataset_load
Method · 0.36
test_write_roundtrip
Method · 0.36
test_write_roundtrip_indexed
Method · 0.36