espnet2.text.sentencepiece_tokenizer.SentencepiecesTokenizer
Less than 1 minute
espnet2.text.sentencepiece_tokenizer.SentencepiecesTokenizer
class espnet2.text.sentencepiece_tokenizer.SentencepiecesTokenizer(model: Path | str, encode_kwargs: Dict = {})
Bases: AbsTokenizer
text2tokens(line: str) → List[str]
tokens2text(tokens: Iterable[str]) → str