pub struct KeywordsConfig {
pub version: u32,
pub patterns: HashMap<String, Vec<String>>,
pub stop_words: Vec<String>,
pub contradiction_signals: Vec<String>,
}Fields§
§version: u32§patterns: HashMap<String, Vec<String>>§stop_words: Vec<String>§contradiction_signals: Vec<String>Implementations§
Source§impl KeywordsConfig
impl KeywordsConfig
pub fn load() -> Self
pub fn get_patterns(&self, category: MemoryCategory) -> &[String]
pub fn get_stop_words_set(&self) -> HashSet<&str>
pub fn get_aliases() -> Vec<(&'static str, &'static str)>
Trait Implementations§
Source§impl Clone for KeywordsConfig
impl Clone for KeywordsConfig
Source§fn clone(&self) -> KeywordsConfig
fn clone(&self) -> KeywordsConfig
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 KeywordsConfig
impl Debug for KeywordsConfig
Source§impl Default for KeywordsConfig
impl Default for KeywordsConfig
Source§impl<'de> Deserialize<'de> for KeywordsConfig
impl<'de> Deserialize<'de> for KeywordsConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for KeywordsConfig
impl RefUnwindSafe for KeywordsConfig
impl Send for KeywordsConfig
impl Sync for KeywordsConfig
impl Unpin for KeywordsConfig
impl UnsafeUnpin for KeywordsConfig
impl UnwindSafe for KeywordsConfig
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