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

Method _normalize_example

lit_nlp/api/dataset.py:257–260  ·  view source on GitHub ↗
(
      self, data: JsonDict, ex_id: ExampleId, meta: lit_types.InputMetadata
  )

Source from the content-addressed store, hash-verified

255 _index: dict[ExampleId, IndexedInput] = {}
256
257 def _normalize_example(
258 self, data: JsonDict, ex_id: ExampleId, meta: lit_types.InputMetadata
259 ):
260 return types.MappingProxyType(dict(data, _id=ex_id, _meta=meta))
261
262 def index_inputs(
263 self, examples: list[lit_types.JsonDict]

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected