Class LabelStats (1.6.1)

LabelStats(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Statistics about annotation specs.

Attribute

NameDescription
example_count Mapping[str, int]
Map of each annotation spec's example count. Key is the annotation spec name and value is the number of examples for that annotation spec. If the annotated dataset does not have annotation spec, the map will return a pair where the key is empty string and value is the total number of annotations.

Inheritance

builtins.object > proto.message.Message > LabelStats

Classes

ExampleCountEntry

ExampleCountEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

Parameters
NameDescription
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, `.Message`]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.