public abstract class Stemmer extends FTIterator
Modifier and Type | Method and Description |
---|---|
int |
compareTo(org.basex.util.ft.LanguageImpl o) |
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
hasNext() |
Stemmer |
init(byte[] txt)
Initializes the iterator.
|
FTSpan |
next() |
byte[] |
nextToken()
Returns the next token.
|
protected abstract byte |
prec()
Returns the precedence of the processor.
|
protected abstract byte[] |
stem(byte[] word)
Stems a word.
|
static boolean |
supportFor(Language l)
Checks if the language is supported by the available stemmers.
|
boolean |
supports(Language ln)
Checks if the specified language is supported.
|
String |
toString() |
remove
public static boolean supportFor(Language l)
l
- language to be foundprotected abstract byte[] stem(byte[] word)
word
- input word to stempublic final Stemmer init(byte[] txt)
FTIterator
init
in class FTIterator
txt
- textpublic final boolean hasNext()
public final FTSpan next()
public final byte[] nextToken()
FTIterator
Iterator.next()
to avoid the creation of new FTSpan
instances.nextToken
in class FTIterator
protected abstract byte prec()
public boolean supports(Language ln)
ln
- languagepublic final int compareTo(org.basex.util.ft.LanguageImpl o)
compareTo
in interface Comparable<org.basex.util.ft.LanguageImpl>
Copyright © 2005–2015 BaseX Team. All rights reserved.