pub struct InferenceEngine { /* private fields */ }Expand description
Main inference engine.
Combines linguistic features, delta analysis, and Bayesian updating to produce axis estimates with full provenance.
Implementations§
Source§impl InferenceEngine
impl InferenceEngine
Sourcepub fn with_config(config: InferenceConfig) -> Self
pub fn with_config(config: InferenceConfig) -> Self
Create an engine with custom configuration.
Sourcepub fn with_bayesian_config(bayesian_config: BayesianConfig) -> Self
pub fn with_bayesian_config(bayesian_config: BayesianConfig) -> Self
Create an engine with custom Bayesian configuration.
Sourcepub fn infer(&self, text: &str) -> InferredState
pub fn infer(&self, text: &str) -> InferredState
Infer state from a single message (no baseline).
Uses linguistic features only.
Sourcepub fn infer_from_features(
&self,
features: &LinguisticFeatures,
) -> InferredState
pub fn infer_from_features( &self, features: &LinguisticFeatures, ) -> InferredState
Infer from pre-extracted features.
Applies research-validated confidence scaling (TASK-016):
- Word count scaling (shorter texts = lower confidence)
- Axis-specific caps (based on evidence strength)
Sourcepub fn infer_with_baseline(
&self,
text: &str,
baseline: &mut Baseline,
current_state: Option<&InferredState>,
) -> InferredState
pub fn infer_with_baseline( &self, text: &str, baseline: &mut Baseline, current_state: Option<&InferredState>, ) -> InferredState
Infer with baseline context (enables delta analysis).
This is the full pipeline: linguistic + delta + Bayesian.
Sourcepub fn infer_with_features_and_baseline(
&self,
features: &LinguisticFeatures,
baseline: &mut Baseline,
current_state: Option<&InferredState>,
) -> InferredState
pub fn infer_with_features_and_baseline( &self, features: &LinguisticFeatures, baseline: &mut Baseline, current_state: Option<&InferredState>, ) -> InferredState
Full inference from features with baseline.
Sourcepub fn extract_features(&self, text: &str) -> LinguisticFeatures
pub fn extract_features(&self, text: &str) -> LinguisticFeatures
Extract features without inference (useful for external analysis).
Sourcepub fn new_baseline(&self) -> Baseline
pub fn new_baseline(&self) -> Baseline
Create a new baseline tracker.
Trait Implementations§
Source§impl Clone for InferenceEngine
impl Clone for InferenceEngine
Source§fn clone(&self) -> InferenceEngine
fn clone(&self) -> InferenceEngine
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 InferenceEngine
impl Debug for InferenceEngine
Auto Trait Implementations§
impl Freeze for InferenceEngine
impl RefUnwindSafe for InferenceEngine
impl Send for InferenceEngine
impl Sync for InferenceEngine
impl Unpin for InferenceEngine
impl UnsafeUnpin for InferenceEngine
impl UnwindSafe for InferenceEngine
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