pub struct AnomalySegment {
pub start: usize,
pub end: usize,
pub text: String,
pub perplexity: f32,
pub entropy: f32,
pub anomaly_type: AnomalyType,
}Expand description
Represents an anomalous segment detected in text
Fields§
§start: usizeStart position in the text
end: usizeEnd position in the text
text: StringThe anomalous text segment
perplexity: f32Perplexity score of this segment
entropy: f32Entropy score of this segment
anomaly_type: AnomalyTypeType of anomaly detected
Trait Implementations§
Source§impl Clone for AnomalySegment
impl Clone for AnomalySegment
Source§fn clone(&self) -> AnomalySegment
fn clone(&self) -> AnomalySegment
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AnomalySegment
impl RefUnwindSafe for AnomalySegment
impl Send for AnomalySegment
impl Sync for AnomalySegment
impl Unpin for AnomalySegment
impl UnwindSafe for AnomalySegment
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