org.basex.query.ft
Class StemDir
java.lang.Object
org.basex.util.TokenSet
org.basex.util.ObjectMap<byte[]>
org.basex.query.ft.StemDir
public final class StemDir
- extends ObjectMap<byte[]>
Simple stemming directory for full-text requests.
- Author:
- Workgroup DBIS, University of Konstanz 2005-10, ISC License, Christian Gruen
Method Summary |
boolean |
read(IO fl)
Reads a stop words file. |
byte[] |
stem(byte[] word)
Returns a stemmed word or the word itself. |
StemDir
public StemDir()
read
public boolean read(IO fl)
- Reads a stop words file.
- Parameters:
fl
- file reference
- Returns:
- true if everything went alright
stem
public byte[] stem(byte[] word)
- Returns a stemmed word or the word itself.
- Parameters:
word
- word to be stemmed
- Returns:
- resulting token