com.beasys.commerce.axiom.util
Class PorterStemmer
java.lang.Object
|
+--com.beasys.commerce.axiom.util.PorterStemmer
- public class PorterStemmer
- extends java.lang.Object
This class is used for "Stemming" words, i.e. removing the commoner morpholpogical
and inflexional endings from words in english. It has the effect of normalazing
words such that they can be more reasonable queried in knowledge engines. It is
well known, commonly used and in the public domain. It was developed by Martin
Porter in 1970. This version was taken from his web site at Muscat where he is
now employed it was adapted via some simple renaming and the addition of a few
comments.
Method Summary |
java.lang.String |
stem(java.lang.String in)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
PorterStemmer
public PorterStemmer()
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object
stem
public java.lang.String stem(java.lang.String in)
Copyright © 2000 BEA Systems, Inc. All Rights Reserved