encode#

(s3prl.dataio.dataset.encode)

EncodeCategory#

class s3prl.dataio.dataset.encode.EncodeCategory(labels: List[str], encoder: CategoryEncoder)[source][source]#

Bases: Dataset

getinfo(index: int)[source]#

EncodeCategories#

class s3prl.dataio.dataset.encode.EncodeCategories(labels: List[List[str]], encoders: CategoryEncoders)[source][source]#

Bases: Dataset

getinfo(index: int)[source]#

EncodeMultiLabel#

class s3prl.dataio.dataset.encode.EncodeMultiLabel(labels: List[List[str]], encoder: CategoryEncoder)[source][source]#

Bases: Dataset

static label_to_binary_vector(label_ids: List[int], num_labels: int) Tensor[source][source]#
getinfo(index: int)[source]#

EncodeText#

class s3prl.dataio.dataset.encode.EncodeText(text: List[str], tokenizer: Tokenizer, iob: Optional[List[str]] = None)[source][source]#

Bases: Dataset

getinfo(index: int)[source]#