TextNormalizer

Trait TextNormalizer 

Source
pub trait TextNormalizer {
    // Required method
    fn normalize(&self, text: &str) -> Result<String>;

    // Provided method
    fn normalize_batch(&self, texts: &[&str]) -> Result<Vec<String>> { ... }
}
Expand description

Trait for text normalization operations

Required Methods§

Source

fn normalize(&self, text: &str) -> Result<String>

Normalize the input text

Provided Methods§

Source

fn normalize_batch(&self, texts: &[&str]) -> Result<Vec<String>>

Normalize a batch of texts

Implementors§