pub struct SpanScore {
pub begin: Option<i32>,
pub end: Option<i32>,
pub score: Option<Score>,
}Expand description
This is a single score for a given span of text.
This type is not used in any activity, and only used as part of another schema.
Fields§
§begin: Option<i32>“begin” and “end” describe the span of the original text that the attribute score applies to. The values are the UTF-16 codepoint range. “end” is exclusive. For example, with the text “Hi there”, the begin/end pair (0,2) describes the text “Hi”.
If “begin” and “end” are unset, the score applies to the full text.
end: Option<i32>no description provided
score: Option<Score>The score value.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SpanScore
impl<'de> Deserialize<'de> for SpanScore
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 Part for SpanScore
Auto Trait Implementations§
impl Freeze for SpanScore
impl RefUnwindSafe for SpanScore
impl Send for SpanScore
impl Sync for SpanScore
impl Unpin for SpanScore
impl UnwindSafe for SpanScore
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