#[repr(u64)]pub enum NLTaggerOptions {
OmitWords = 1,
OmitPunctuation = 2,
OmitWhitespace = 4,
OmitOther = 8,
JoinNames = 16,
JoinContractions = 32,
}Expand description
Constants for linguistic tagger enumeration specifying which tokens to omit and whether to join names.
Variants§
OmitWords = 1
Omit tokens of type word (items considered to be words).
OmitPunctuation = 2
Omit tokens of type punctuation (all punctuation).
OmitWhitespace = 4
Omit tokens of type whitespace (whitespace of all sorts).
OmitOther = 8
Omit tokens of type other (non-linguistic items, such as symbols).
JoinNames = 16
Typically, multiple-word names will be returned as multiple tokens, following the standard tokenization practice of the tagger.
JoinContractions = 32
Contractions will be returned as one token.
Trait Implementations§
Source§impl Clone for NLTaggerOptions
impl Clone for NLTaggerOptions
Source§fn clone(&self) -> NLTaggerOptions
fn clone(&self) -> NLTaggerOptions
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 NLTaggerOptions
impl Debug for NLTaggerOptions
Source§impl Ord for NLTaggerOptions
impl Ord for NLTaggerOptions
Source§fn cmp(&self, other: &NLTaggerOptions) -> Ordering
fn cmp(&self, other: &NLTaggerOptions) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for NLTaggerOptions
impl PartialEq for NLTaggerOptions
Source§impl PartialOrd for NLTaggerOptions
impl PartialOrd for NLTaggerOptions
impl Copy for NLTaggerOptions
impl Eq for NLTaggerOptions
impl StructuralPartialEq for NLTaggerOptions
Auto Trait Implementations§
impl Freeze for NLTaggerOptions
impl RefUnwindSafe for NLTaggerOptions
impl Send for NLTaggerOptions
impl Sync for NLTaggerOptions
impl Unpin for NLTaggerOptions
impl UnwindSafe for NLTaggerOptions
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