wordnet_stemmer 0.1.1

Wordnet stemmer
Documentation
  • Coverage
  • 0%
    0 out of 14 items documented0 out of 5 items with examples
  • Size
  • Source code size: 21.7 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.77 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Fiedzia/wordnet_stemmer
    3 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Fiedzia

Wordnet stemmer

Wordnet stemmer for rust, based on python nltk implementation.

You will need to download wordnet database files here: https://wordnet.princeton.edu/wordnet/download/current-version/

extern crate wordnet_stemmer;

use wordnet_stemmer::{WordnetStemmer, NOUN};

pub fn main(){
    let wn = ::WordnetStemmer::new("/home/maciej/nltk_data/corpora/wordnet/").unwrap();
    println!("{}", wn.lemma(NOUN, "dogs".to_owned());
}