pub struct StandardAnalyzer { /* private fields */ }Expand description
Runs one tokenizer followed by filters in insertion order.
See crates/khive-text/docs/api/analyzer-pipeline.md.
Implementations§
Source§impl StandardAnalyzer
impl StandardAnalyzer
Sourcepub fn with_tokenizer(tokenizer: impl Tokenizer + 'static) -> Self
pub fn with_tokenizer(tokenizer: impl Tokenizer + 'static) -> Self
Create an analyzer with the given tokenizer and no filters.
Sourcepub fn filter(self, f: impl TokenFilter + 'static) -> Self
pub fn filter(self, f: impl TokenFilter + 'static) -> Self
Append a filter to the pipeline. Filters run in insertion order.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for StandardAnalyzer
impl !UnwindSafe for StandardAnalyzer
impl Freeze for StandardAnalyzer
impl Send for StandardAnalyzer
impl Sync for StandardAnalyzer
impl Unpin for StandardAnalyzer
impl UnsafeUnpin for StandardAnalyzer
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