[][src]Struct jieba_rs::TFIDF

pub struct TFIDF<'a> { /* fields omitted */ }

TF-IDF keywords extraction

Require tfidf feature to be enabled

Implementations

impl<'a> TFIDF<'a>[src]

pub fn new_with_jieba(jieba: &'a Jieba) -> Self[src]

pub fn load_dict<R: BufRead>(&mut self, dict: &mut R) -> Result<()>[src]

pub fn add_stop_word(&mut self, word: String) -> bool[src]

Add a new stop word

pub fn remove_stop_word(&mut self, word: &str) -> bool[src]

Remove an existing stop word

pub fn set_stop_words(&mut self, stop_words: BTreeSet<String>)[src]

Replace all stop words with new stop words set

Trait Implementations

impl<'a> Debug for TFIDF<'a>[src]

impl<'a> KeywordExtract for TFIDF<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for TFIDF<'a>

impl<'a> Send for TFIDF<'a>

impl<'a> Sync for TFIDF<'a>

impl<'a> Unpin for TFIDF<'a>

impl<'a> UnwindSafe for TFIDF<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.