ir.utilities
Class Porter

java.lang.Object
  extended by ir.utilities.Porter

public class Porter
extends java.lang.Object

The Porter stemmer for reducing words to their base stem form.


Constructor Summary
Porter()
           
 
Method Summary
static void main(java.lang.String[] args)
          For testing, print the stemmed version of a word
 java.lang.String stripAffixes(java.lang.String str)
          Takes a String as input and returns its stem as a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Porter

public Porter()
Method Detail

stripAffixes

public java.lang.String stripAffixes(java.lang.String str)
Takes a String as input and returns its stem as a String.


main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
For testing, print the stemmed version of a word

Throws:
java.io.IOException