|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IStemmingRule
A rule for deriving a stem (a.k.a., root or lemma) from a word.
Method Summary | |
---|---|
java.lang.String |
apply(java.lang.String word)
Applies this rule to the given word. |
java.lang.String |
apply(java.lang.String word,
java.lang.String suffix)
Applies this rule to the given word, adding the specified suffix to the end of the returned string. |
java.lang.String |
getEnding()
Returns the ending for this rule. |
java.lang.String |
getSuffix()
Returns the suffix for this rule. |
java.util.Set<java.lang.String> |
getSuffixIgnoreSet()
Returns the set of suffixes that should be ignored when applying this stemming rule. |
Methods inherited from interface edu.mit.jwi.item.IHasPOS |
---|
getPOS |
Method Detail |
---|
java.lang.String getSuffix()
null
,
empty, or all whitespace.
java.lang.String getEnding()
null
,
empty, or all whitespace.
java.util.Set<java.lang.String> getSuffixIgnoreSet()
null
, but it
may return an empty set. The ignore set will not include the string
returned by getSuffix()
.
null
but possibly empty set of suffixes to be
ignoredjava.lang.String apply(java.lang.String word)
null
, but may be empty. If the rule cannot be applied to the
word, this method returns null
. This call is equivalent to
calling apply(String, String)
with null
as the
second argument
word
- the word to which the stemming rule should be applied.
null
if the rule cannot be
applied to this wordjava.lang.String apply(java.lang.String word, java.lang.String suffix)
null
.
word
- the word to which the stemming rule should be applied.suffix
- a suffix that should be appended to the root once it has been
derived; may be null
.
null
if the rule cannot be
applied to this word
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |