pub struct ExtractionQualityMetrics {
pub total: usize,
pub duplicates: usize,
pub duplication_rate: f64,
pub noisy: usize,
pub noise_rate: f64,
}Expand description
Lightweight extraction-quality diagnostics inspired by CORE-KG.
These are heuristics. They are useful for monitoring regressions and surfacing obvious quality problems (e.g., repeated identical nodes, garbage spans) but they are not “ground truth” correctness metrics.
Fields§
§total: usizeTotal number of extracted entities.
duplicates: usizeCount of entities considered duplicates under conservative normalization.
duplication_rate: f64Duplicate rate (duplicates / total).
noisy: usizeCount of entities considered “noisy” spans (punctuation-only, numeric-only, etc.).
noise_rate: f64Noise rate (noisy / total).
Trait Implementations§
Source§impl Clone for ExtractionQualityMetrics
impl Clone for ExtractionQualityMetrics
Source§fn clone(&self) -> ExtractionQualityMetrics
fn clone(&self) -> ExtractionQualityMetrics
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 ExtractionQualityMetrics
impl Debug for ExtractionQualityMetrics
Source§impl Default for ExtractionQualityMetrics
impl Default for ExtractionQualityMetrics
Source§fn default() -> ExtractionQualityMetrics
fn default() -> ExtractionQualityMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ExtractionQualityMetrics
impl RefUnwindSafe for ExtractionQualityMetrics
impl Send for ExtractionQualityMetrics
impl Sync for ExtractionQualityMetrics
impl Unpin for ExtractionQualityMetrics
impl UnsafeUnpin for ExtractionQualityMetrics
impl UnwindSafe for ExtractionQualityMetrics
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more