Trait jieba_rs::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§