libgrammstein 0.1.0

Hybrid language model (N-gram + Embeddings) for WFST text correction
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Concrete corrector implementations for code correction.
//!
//! This module provides implementations of the `CodeCorrector` trait:
//!
//! - **Lexical**: Token-level fuzzy matching using liblevenshtein
//! - **Grammar**: PCFG-based correction with Earley parsing
//! - **Semantic**: GNN/embedding-based semantic analysis
//! - **Ensemble**: Combined scoring from all sources

pub mod ensemble;
pub mod grammar;
pub mod lexical;
pub mod semantic;

pub use ensemble::EnsembleCorrector;
pub use grammar::GrammarCorrector;
pub use lexical::LexicalCorrector;
pub use semantic::SemanticCorrector;