pub struct DoSegmentOptions {
pub simple: Option<bool>,
pub strip_punctuation: Option<bool>,
pub convert_synonym: Option<bool>,
pub strip_stopword: Option<bool>,
pub strip_space: Option<bool>,
pub disable_modules: Vec<String>,
}Expand description
Per-call segmentation options.
None means inherit from SegmentOptions.options_do_segment then default false
(JS Object.assign({}, defaults, optionsDoSegment, options)).
Fields§
§simple: Option<bool>§strip_punctuation: Option<bool>§convert_synonym: Option<bool>§strip_stopword: Option<bool>§strip_space: Option<bool>§disable_modules: Vec<String>Implementations§
Source§impl DoSegmentOptions
impl DoSegmentOptions
pub fn convert_synonym() -> Self
pub fn merge(&self, over: &Self) -> Self
pub fn simple_flag(&self) -> bool
pub fn strip_punctuation_flag(&self) -> bool
pub fn convert_synonym_flag(&self) -> bool
pub fn strip_stopword_flag(&self) -> bool
pub fn strip_space_flag(&self) -> bool
Trait Implementations§
Source§impl Clone for DoSegmentOptions
impl Clone for DoSegmentOptions
Source§fn clone(&self) -> DoSegmentOptions
fn clone(&self) -> DoSegmentOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DoSegmentOptions
impl Debug for DoSegmentOptions
Source§impl Default for DoSegmentOptions
impl Default for DoSegmentOptions
Source§fn default() -> DoSegmentOptions
fn default() -> DoSegmentOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DoSegmentOptions
impl RefUnwindSafe for DoSegmentOptions
impl Send for DoSegmentOptions
impl Sync for DoSegmentOptions
impl Unpin for DoSegmentOptions
impl UnsafeUnpin for DoSegmentOptions
impl UnwindSafe for DoSegmentOptions
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