pub struct Finding {
pub category: &'static str,
pub start: usize,
pub end: usize,
pub score: f32,
}Expand description
One detected span: [start, end) byte offsets into the scanned text, its category, and a detector
confidence in [0.0, 1.0]. Deterministic detectors (signature / gazetteer / entropy) always report
1.0; the NER family reports the model’s per-entity probability so it can be thresholded and audited.
Fields§
§category: &'static str§start: usize§end: usize§score: f32Trait Implementations§
impl StructuralPartialEq for Finding
Auto Trait Implementations§
impl Freeze for Finding
impl RefUnwindSafe for Finding
impl Send for Finding
impl Sync for Finding
impl Unpin for Finding
impl UnsafeUnpin for Finding
impl UnwindSafe for Finding
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