Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/caarmen/porter-stemmer
Simple Porter stemmer algorithm
https://github.com/caarmen/porter-stemmer
lib
Last synced: 11 days ago
JSON representation
Simple Porter stemmer algorithm
- Host: GitHub
- URL: https://github.com/caarmen/porter-stemmer
- Owner: caarmen
- License: lgpl-3.0
- Created: 2016-04-03T12:29:28.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-04-03T19:54:09.000Z (over 8 years ago)
- Last Synced: 2023-07-28T00:14:04.871Z (over 1 year ago)
- Topics: lib
- Language: Java
- Size: 163 KB
- Stars: 5
- Watchers: 2
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Porter Stemmer
==============This library provides an implementation of the Porter stemming algorithm, defined here:
http://tartarus.org/martin/PorterStemmer/def.txt
This implementation has not been tuned for high performance on large amounts of text. It is
a simple (naive perhaps) implementation of the rules.Command-line program:
--------------------
To test out the library on the command-line:```
./gradlew clean cliJar
cat /path/to/file.txt | java -jar example/build/libs/example-all-1.0.0.jar
```Using the library:
-----------------
The library is available on jcenter. To include the library in your project:maven:
```
ca.rmen
porter-stemmer
1.0.0```
gradle:
```
compile 'ca.rmen:porter-stemmer:1.0.0'
```To use the stemmer:
```java
PorterStemmer porterStemmer = new PorterStemmer();
String stem = porterStemmer.stemWord("incorporated"); // returns "incorpor"
```