vak.transforms.frame_labels.transforms.ToLabels#
- class vak.transforms.frame_labels.transforms.ToLabels(labelmap: dict)[source]#
Bases:
object
Transforms that converts vector of frame labels to a string, one character for each continuous segment.
Allows for converting output of network from a label for each frame to one label for each continuous segment, in order to compute string-based metrics like edit distance.
- labelmap#
That maps string labels to integers. The mapping is inverted to convert back to string labels.
- Type:
Methods
__init__
(labelmap)