INNER CODE UNIT · Rust

get_data

bminixhofer/nlprule · python/src/lib.rs:131

    fn get_data(
        &self,
        word: &str,
        add_lower: Option<bool>,
        use_compound_split_heuristic: Option<bool>,
    ) -> Vec<(String, String)> {
        self.tagger
            .get_tags_with_options(word, add_lower, use_compound_split_heuristic)
            .into_iter()
            .map(|x| (x.lemma().as_str().to_string(), x.pos().as_str().to_string()))
            .collect()
    }
}

impl PyTagger {
    pub fn tagger(&self) -> &Arc<Tagger> {
        &self.tagger
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…