pub struct QualityMetrics {
pub keyword_retention: f64,
pub entity_retention: f64,
pub vocabulary_ratio: f64,
pub information_density: f64,
pub overall_score: f64,
}Expand description
Quality assessment for compressed text
Fields§
§keyword_retention: f64Percentage of important keywords preserved (0.0-1.0)
entity_retention: f64Percentage of named entities preserved (0.0-1.0)
vocabulary_ratio: f64Vocabulary diversity ratio (compressed/original)
information_density: f64Information density (unique_words/total_words)
overall_score: f64Overall quality score (0.0-1.0)
Implementations§
Trait Implementations§
Source§impl Clone for QualityMetrics
impl Clone for QualityMetrics
Source§fn clone(&self) -> QualityMetrics
fn clone(&self) -> QualityMetrics
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 QualityMetrics
impl RefUnwindSafe for QualityMetrics
impl Send for QualityMetrics
impl Sync for QualityMetrics
impl Unpin for QualityMetrics
impl UnwindSafe for QualityMetrics
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