pub struct MathAnalysis {Show 19 fields
pub total_tokens: usize,
pub unique_token_count: usize,
pub numbers: usize,
pub variables: usize,
pub operators: usize,
pub functions: usize,
pub greek_letters: usize,
pub constants: usize,
pub delimiters: usize,
pub latex_commands: usize,
pub scripts: usize,
pub symbols: usize,
pub units: usize,
pub text_tokens: usize,
pub whitespace: usize,
pub unknown: usize,
pub unique_tokens: HashSet<String>,
pub function_frequency: HashMap<String, usize>,
pub operator_frequency: HashMap<String, usize>,
}Expand description
Analysis results for mathematical text
Fields§
§total_tokens: usize§unique_token_count: usize§numbers: usize§variables: usize§operators: usize§functions: usize§greek_letters: usize§constants: usize§delimiters: usize§latex_commands: usize§scripts: usize§symbols: usize§units: usize§text_tokens: usize§whitespace: usize§unknown: usize§unique_tokens: HashSet<String>§function_frequency: HashMap<String, usize>§operator_frequency: HashMap<String, usize>Implementations§
Source§impl MathAnalysis
impl MathAnalysis
Sourcepub fn complexity_score(&self) -> f64
pub fn complexity_score(&self) -> f64
Calculate complexity score based on token diversity
Trait Implementations§
Source§impl Clone for MathAnalysis
impl Clone for MathAnalysis
Source§fn clone(&self) -> MathAnalysis
fn clone(&self) -> MathAnalysis
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 moreSource§impl Debug for MathAnalysis
impl Debug for MathAnalysis
Source§impl<'de> Deserialize<'de> for MathAnalysis
impl<'de> Deserialize<'de> for MathAnalysis
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 MathAnalysis
impl RefUnwindSafe for MathAnalysis
impl Send for MathAnalysis
impl Sync for MathAnalysis
impl Unpin for MathAnalysis
impl UnsafeUnpin for MathAnalysis
impl UnwindSafe for MathAnalysis
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,
Source§impl<T> ConfigSerializable for Twhere
T: Serialize + for<'de> Deserialize<'de>,
impl<T> ConfigSerializable for Twhere
T: Serialize + for<'de> Deserialize<'de>,
Source§fn save_to_file(&self, path: &Path) -> Result<(), TrustformersError>
fn save_to_file(&self, path: &Path) -> Result<(), TrustformersError>
Save to file
Source§fn load_from_file(path: &Path) -> Result<Self, TrustformersError>where
Self: Sized,
fn load_from_file(path: &Path) -> Result<Self, TrustformersError>where
Self: Sized,
Load from file
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