TextCleaner

Trait TextCleaner 

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

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

Trait for text cleaning operations

Required Methods§

Source

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

Clean the input text

Provided Methods§

Source

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

Clean a batch of texts

Implementors§