vak.common.labels#

Functions

from_df(dataset_df, dataset_path)

Returns labels for each vocalization in a dataset.

multi_char_labels_to_single_char(labelmap[, ...])

Return a copy of a labelmap where any labels that are strings with multiple characters are converted to single characters.

to_map(labelset[, map_unlabeled])

Convert set of labels to dict mapping those labels to a series of consecutive integers from 0 to n inclusive, where n is the number of labels in the set.

to_set(labels_list)

Given a list of labels from annotations, return the set of (unique) labels.