Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 452 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 452 Bytes

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());
}