Struct sentencepiece::SentencePieceProcessor [−][src]
pub struct SentencePieceProcessor { /* fields omitted */ }
Expand description
Sentence piece tokenizer.
Instances of SentencePieceProcessor
can be used to tokenizer a
sentence using a sentencepiece model.
Implementations
Open a sentencepiece model.
Tokenizer a sentence.
Get the identifier of a sentence piece.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SentencePieceProcessor
impl Unpin for SentencePieceProcessor
impl UnwindSafe for SentencePieceProcessor