org.basex.util.ft
Class GreekStemmer

java.lang.Object
  extended by org.basex.util.ft.FTIterator
      extended by org.basex.util.ft.Stemmer
          extended by org.basex.util.ft.InternalStemmer
              extended by org.basex.util.ft.GreekStemmer
All Implemented Interfaces:
java.lang.Comparable<org.basex.util.ft.LanguageImpl>, java.util.Iterator<FTSpan>

public class GreekStemmer
extends InternalStemmer

German stemming algorithm, derived from the Apache Lucene project and the report "Development of a Stemmer for the Greek Language" by Georgios Ntais.

Author:
BaseX Team 2005-12, BSD License, Christian Gruen

Method Summary
 int compareTo(org.basex.util.ft.LanguageImpl o)
           
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
protected  byte[] stem(byte[] word)
          Stems a word.
 boolean supports(Language ln)
          Checks if the specified language is supported.
 
Methods inherited from class org.basex.util.ft.InternalStemmer
prec, toString
 
Methods inherited from class org.basex.util.ft.Stemmer
hasNext, init, next, nextToken, supportFor
 
Methods inherited from class org.basex.util.ft.FTIterator
remove
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

stem

protected byte[] stem(byte[] word)
Description copied from class: Stemmer
Stems a word.

Specified by:
stem in class Stemmer
Parameters:
word - input word to stem
Returns:
the stem of the word

supports

public boolean supports(Language ln)
Checks if the specified language is supported.

Parameters:
ln - language
Returns:
true if language is supported

equals

public final boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

compareTo

public final int compareTo(org.basex.util.ft.LanguageImpl o)
Specified by:
compareTo in interface java.lang.Comparable<org.basex.util.ft.LanguageImpl>

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object