|
RiTa index |
||||
| Name | RiStemmer | |||
| Description | A simple set of stemmers for extracting base roots from a word by
removing prefixes and suffixes. For example, the words 'run', 'runs',
and 'running' all have "run" as their stem.
String[] tests = { "run", "runs", "running" };
RiStemmer stem = new RiStemmer(this);
for (int i = 0; i < tests.length; i++)
System.out.println(stem.stem(tests[i]));
This class provides a # of implementations, each specified by a type constant.For example, to use the Lancaster (or Paice-Husk) algorithm instead of the Porter (the default), create the stemmer as follows: RiStemmer stem = new RiStemmer(this, LANCASTER_STEMMER);For a comparison of the various algorithms, see http://www.comp.lancs.ac.uk/computing/research/stemming/Links/algorithms.htm |
|||
| Constructors | RiStemmer(p); |
|||
| Methods |
|
|||
| Usage | Web & Application |