pub struct SentenceWithPieces {
pub pieces: Array1<i64>,
pub sentence: Sentence,
pub token_offsets: Vec<usize>,
}
Expand description
A sentence and its word pieces.
Fields§
§pieces: Array1<i64>
Word pieces in a sentence.
sentence: Sentence
Sentence graph.
token_offsets: Vec<usize>
The the offsets of tokens in pieces
.
Trait Implementations§
Source§impl Debug for SentenceWithPieces
impl Debug for SentenceWithPieces
Source§impl PartialEq for SentenceWithPieces
impl PartialEq for SentenceWithPieces
impl Eq for SentenceWithPieces
impl StructuralPartialEq for SentenceWithPieces
Auto Trait Implementations§
impl Freeze for SentenceWithPieces
impl RefUnwindSafe for SentenceWithPieces
impl Send for SentenceWithPieces
impl Sync for SentenceWithPieces
impl Unpin for SentenceWithPieces
impl UnwindSafe for SentenceWithPieces
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.