pub struct AnnotatedSentence {
pub id: AnnotationId,
pub span: TextSpanRef,
pub text: String,
pub token_start: usize,
pub token_end: usize,
pub token_ids: Vec<AnnotationId>,
pub paragraph_id: Option<AnnotationId>,
}Expand description
Data type for annotated sentence.
Fields§
§id: AnnotationIdIdentifier for this value.
span: TextSpanRefThe span value.
text: StringText content for this value.
token_start: usizeThe token start value.
token_end: usizeThe token end value.
token_ids: Vec<AnnotationId>The token identifiers value.
paragraph_id: Option<AnnotationId>The paragraph identifier value.
Trait Implementations§
Source§impl Clone for AnnotatedSentence
impl Clone for AnnotatedSentence
Source§fn clone(&self) -> AnnotatedSentence
fn clone(&self) -> AnnotatedSentence
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnnotatedSentence
impl Debug for AnnotatedSentence
Source§impl<'de> Deserialize<'de> for AnnotatedSentence
impl<'de> Deserialize<'de> for AnnotatedSentence
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AnnotatedSentence
Source§impl PartialEq for AnnotatedSentence
impl PartialEq for AnnotatedSentence
Source§fn eq(&self, other: &AnnotatedSentence) -> bool
fn eq(&self, other: &AnnotatedSentence) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AnnotatedSentence
impl Serialize for AnnotatedSentence
impl StructuralPartialEq for AnnotatedSentence
Auto Trait Implementations§
impl Freeze for AnnotatedSentence
impl RefUnwindSafe for AnnotatedSentence
impl Send for AnnotatedSentence
impl Sync for AnnotatedSentence
impl Unpin for AnnotatedSentence
impl UnsafeUnpin for AnnotatedSentence
impl UnwindSafe for AnnotatedSentence
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