Nothing Special   »   [go: up one dir, main page]

Skip to content

minhnhdo/rust-stem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust-stem

Porter's stemmer for rust

How to use

  1. Add the dependency to your Cargo.toml

    [dependencies.stem]
    git = "https://github.com/minhnhdo/rust-stem"
  2. Usage

    let word = "pencils"
    let s = stem::get(word);
    match s {
       Ok(stemmed) => println!("{} => {}", word, stemmed),
       Err(e) => println!("could not stem! reason: {}", e),
    }
  3. Compile / Run

    $ cargo run

About

Porter's stemmer for rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages