Rater

class audformat.Rater(type='human', *, description=None, meta=None)[source]

A rater is the author of an annotation.

Parameters:
Raises:

BadValueError – if an invalid type is passed

Examples

>>> Rater(define.RaterType.HUMAN)
{type: human}

__eq__()

Rater.__eq__(other)

Return self==value.

Return type:

bool

description

Rater.description

Description

dump()

Rater.dump(stream=None, indent=2)

Serialize object to YAML.

Parameters:
  • stream – file-like object. If None serializes to string

  • indent (int) – indent

Return type:

str

Returns:

YAML string

from_dict()

Rater.from_dict(d, ignore_keys=None)

Deserialize object from dictionary.

Parameters:
  • d (dict) – dictionary of class variables to assign

  • ignore_keys (Sequence[str]) – variables listed here will be ignored

meta

Rater.meta

Dictionary with meta fields

to_dict()

Rater.to_dict()

Serialize object to dictionary.

Return type:

dict

Returns:

dictionary with attributes

type

Rater.type

Rater type