#[non_exhaustive]pub struct Lexicons {
pub negation_markers: Vec<String>,
pub comparison_markers: Vec<String>,
pub causal_connectors: Vec<String>,
pub confirmation_tokens: Vec<String>,
pub state_operators: Vec<String>,
}Expand description
Configurable lexicon sets for category detection.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.negation_markers: Vec<String>Words/phrases indicating negation or contradiction (e.g. “not”, “no longer”).
comparison_markers: Vec<String>Words/phrases indicating comparison (e.g. “instead of”, “rather than”).
causal_connectors: Vec<String>Words/phrases indicating causal reasoning (e.g. “because”, “so that”).
confirmation_tokens: Vec<String>Words/phrases indicating confirmation (e.g. “confirmed”, “agreed”).
state_operators: Vec<String>Words/phrases indicating a state-change operation (e.g. “is now”, “set to”).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Lexicons
impl RefUnwindSafe for Lexicons
impl Send for Lexicons
impl Sync for Lexicons
impl Unpin for Lexicons
impl UnsafeUnpin for Lexicons
impl UnwindSafe for Lexicons
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