pub struct OptimizationOutcome {
pub tool: String,
pub original_tokens: usize,
pub rewritten_tokens: usize,
pub reduction_pct: f32,
pub semantic_similarity: f32,
pub original: String,
pub rewritten: String,
pub applied_rules: Vec<String>,
}Fields§
§tool: String§original_tokens: usize§rewritten_tokens: usize§reduction_pct: f32§semantic_similarity: f32Bag-of-content-lemmas Jaccard between the original and rewritten
descriptions, ignoring stopwords and filler. This is what we mean by
“semantic similarity” — the goal is ≥ 0.95 for the pipeline.
original: String§rewritten: String§applied_rules: Vec<String>Trait Implementations§
Source§impl Clone for OptimizationOutcome
impl Clone for OptimizationOutcome
Source§fn clone(&self) -> OptimizationOutcome
fn clone(&self) -> OptimizationOutcome
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 OptimizationOutcome
impl Debug for OptimizationOutcome
Source§impl<'de> Deserialize<'de> for OptimizationOutcome
impl<'de> Deserialize<'de> for OptimizationOutcome
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 OptimizationOutcome
impl RefUnwindSafe for OptimizationOutcome
impl Send for OptimizationOutcome
impl Sync for OptimizationOutcome
impl Unpin for OptimizationOutcome
impl UnsafeUnpin for OptimizationOutcome
impl UnwindSafe for OptimizationOutcome
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