pub struct SentenceSplitterConfig {
pub terminals: Vec<char>,
pub abbreviation_guard: bool,
}Expand description
Configuration for sentence splitting.
Fields§
§terminals: Vec<char>Terminal punctuation characters.
abbreviation_guard: boolIf true, try to handle abbreviations (Mr., Dr., etc.) by not splitting.
Trait Implementations§
Source§impl Clone for SentenceSplitterConfig
impl Clone for SentenceSplitterConfig
Source§fn clone(&self) -> SentenceSplitterConfig
fn clone(&self) -> SentenceSplitterConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SentenceSplitterConfig
impl Debug for SentenceSplitterConfig
Auto Trait Implementations§
impl Freeze for SentenceSplitterConfig
impl RefUnwindSafe for SentenceSplitterConfig
impl Send for SentenceSplitterConfig
impl Sync for SentenceSplitterConfig
impl Unpin for SentenceSplitterConfig
impl UnsafeUnpin for SentenceSplitterConfig
impl UnwindSafe for SentenceSplitterConfig
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