Package org.apache.lucene.analysis.hu
Class HungarianLightStemmer
java.lang.Object
org.apache.lucene.analysis.hu.HungarianLightStemmer
Light Stemmer for Hungarian.
This stemmer implements the "UniNE" algorithm in: Light Stemming Approaches for the French, Portuguese, German and Hungarian Languages Jacques Savoy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
isVowel
(char ch) private int
normalize
(char[] s, int len) private int
removeCase
(char[] s, int len) private int
removePlural
(char[] s, int len) private int
removePossessive
(char[] s, int len) int
stem
(char[] s, int len)
-
Constructor Details
-
HungarianLightStemmer
public HungarianLightStemmer()
-
-
Method Details
-
stem
public int stem(char[] s, int len) -
removeCase
private int removeCase(char[] s, int len) -
removePossessive
private int removePossessive(char[] s, int len) -
removePlural
private int removePlural(char[] s, int len) -
normalize
private int normalize(char[] s, int len) -
isVowel
private boolean isVowel(char ch)
-