Skip to main content

PreprocessingStep

Trait PreprocessingStep 

Source
pub trait PreprocessingStep:
    Debug
    + Send
    + Sync {
    // Required methods
    fn process(&self, text: &str) -> Result<String>;
    fn name(&self) -> &str;
}
Expand description

Trait for custom preprocessing steps

Required Methods§

Source

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

Source

fn name(&self) -> &str

Implementors§