pub struct OdeEntity {
pub text: String,
pub label: String,
pub start: usize,
pub end: usize,
pub score: f32,
}Expand description
A single entity extracted by the GLiNER model (ODE-2).
Fields§
§text: StringSpan text as it appears in the input.
label: StringEntity type label (e.g. "person", "organization").
start: usizeStart character offset (inclusive) within the input text.
end: usizeEnd character offset (exclusive) within the input text.
score: f32Confidence score in the range [0, 1].
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OdeEntity
impl<'de> Deserialize<'de> for OdeEntity
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
Auto Trait Implementations§
impl Freeze for OdeEntity
impl RefUnwindSafe for OdeEntity
impl Send for OdeEntity
impl Sync for OdeEntity
impl Unpin for OdeEntity
impl UnsafeUnpin for OdeEntity
impl UnwindSafe for OdeEntity
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