jieba_rs

Trait KeywordExtract

Source
pub trait KeywordExtract {
    // Required method
    fn extract_keywords(
        &self,
        jieba: &Jieba,
        sentence: &str,
        top_k: usize,
        allowed_pos: Vec<String>,
    ) -> Vec<Keyword>;
}
Expand description

Extracts keywords from a given sentence with the Jieba instance.

Required Methods§

Source

fn extract_keywords( &self, jieba: &Jieba, sentence: &str, top_k: usize, allowed_pos: Vec<String>, ) -> Vec<Keyword>

Implementors§