porter2

Crates.ioporter2
lib.rsporter2
version0.0.1004
sourcesrc
created_at2014-11-23 00:31:57.298321
updated_at2015-12-11 23:55:08.907714
descriptionAn (incomplete) implementation of the Porter 2 English Stemmer
homepage
repositoryhttps://github.com/carols10cents/porter2
max_upload_size
id361
size1,271,791
Carol (Nichols || Goulding) (carols10cents)

documentation

README

Porter2 English Stemmer

Build Status

This is an INCOMPLETE implementation of the Porter2 english stemmer written in Rust. It's a little toy project for me to learn Rust on, while doing something somewhat useful.

Please check rust-ci.org for rust version compatibility.

Many thanks to the start that mrordinaire's porter stemmer in rust gave me!!

Compiling

I'm using Cargo!!! Just run cargo build!!!!

Running the tests

I'm using Cargo!!! Just run cargo test!!!!

The tests are really just one test with a lot of cases-- it runs through the words in some input files and asserts that the stem of the word matches the corresponding line in the expected output files.

Stemming

After compiling, you should have a binary in target/porter2 that will read a list of words, one per line, from stdin and print their stems to stdout.

Example:

./target/porter2 < test-data/voc.txt > output.txt

License

MIT. See LICENSE.

Commit count: 0

cargo fmt