pub struct OptimizedPatternMatcher { /* private fields */ }Expand description
Optimized pattern matcher for routing decisions
Implementations§
Source§impl OptimizedPatternMatcher
impl OptimizedPatternMatcher
Sourcepub fn calculate_domain_scores(
&mut self,
text: &str,
) -> &FxHashMap<ExpertDomain, f32>
pub fn calculate_domain_scores( &mut self, text: &str, ) -> &FxHashMap<ExpertDomain, f32>
Calculate domain relevance scores efficiently
Sourcepub fn get_best_domain(&self) -> Option<(ExpertDomain, f32)>
pub fn get_best_domain(&self) -> Option<(ExpertDomain, f32)>
Get best domain with confidence score
Trait Implementations§
Source§impl Clone for OptimizedPatternMatcher
impl Clone for OptimizedPatternMatcher
Source§fn clone(&self) -> OptimizedPatternMatcher
fn clone(&self) -> OptimizedPatternMatcher
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 moreAuto Trait Implementations§
impl Freeze for OptimizedPatternMatcher
impl RefUnwindSafe for OptimizedPatternMatcher
impl Send for OptimizedPatternMatcher
impl Sync for OptimizedPatternMatcher
impl Unpin for OptimizedPatternMatcher
impl UnsafeUnpin for OptimizedPatternMatcher
impl UnwindSafe for OptimizedPatternMatcher
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