Crates.io | porter2 |
lib.rs | porter2 |
version | 0.0.1004 |
source | src |
created_at | 2014-11-23 00:31:57.298321 |
updated_at | 2015-12-11 23:55:08.907714 |
description | An (incomplete) implementation of the Porter 2 English Stemmer |
homepage | |
repository | https://github.com/carols10cents/porter2 |
max_upload_size | |
id | 361 |
size | 1,271,791 |
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!!
I'm using Cargo!!! Just run cargo build
!!!!
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.
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
MIT. See LICENSE.