2 releases
Uses old Rust 2015
0.1.1 | Jun 15, 2016 |
---|---|
0.1.0 | Feb 4, 2016 |
#4 in #wordnet
12KB
272 lines
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());
}
Dependencies
~2MB