MCPcopy Create free account
hub / github.com/google-research/language / ExampleMetadata

Class ExampleMetadata

language/quest/common/example_utils.py:24–44  ·  view source on GitHub ↗

Optional metadata used for analysis.

Source from the content-addressed store, hash-verified

22
23@dataclasses.dataclass(frozen=False)
24class ExampleMetadata:
25 """Optional metadata used for analysis."""
26 # The template used to synthesize this example.
27 template: typing.Optional[str] = None
28 # The domain of the example (e.g. films, books, plants, animals).
29 domain: typing.Optional[str] = None
30 # Fluency labels
31 fluency: typing.Optional[typing.Sequence[bool]] = None
32 # Meaning labels
33 meaning: typing.Optional[typing.Sequence[bool]] = None
34 # Naturalness labels
35 naturalness: typing.Optional[typing.Sequence[bool]] = None
36 # The following fields are dictionaries keyed by document title.
37 # The sequences can contain multiple values for replicated annotations.
38 relevance_ratings: typing.Optional[typing.Dict[str,
39 typing.Sequence[str]]] = None
40 evidence_ratings: typing.Optional[typing.Dict[str,
41 typing.Sequence[str]]] = None
42 # The nested value is a map from query substring to document substring.
43 attributions: typing.Optional[typing.Dict[str, typing.Sequence[typing.Dict[
44 str, str]]]] = None
45
46
47@dataclasses.dataclass(frozen=False)

Callers 1

read_examplesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…