Struct sentencepiece::PieceWithId [−][src]
Expand description
Sentence piece with its identifier and string span.
Fields
piece: String
The sentence piece as a string.
id: u32
The vocabulary identifier of the sentence piece.
span: (u32, u32)
The span of the sentence piece in the tokenized string.
The span is encoded as the byte offsets [begin, end).
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for PieceWithId
impl Send for PieceWithId
impl Sync for PieceWithId
impl Unpin for PieceWithId
impl UnwindSafe for PieceWithId
Blanket Implementations
Mutably borrows from an owned value. Read more