public class GreekStemmer
extends java.lang.Object
NOTE: Input is expected to be casefolded for Greek (including folding of final
sigma to sigma), and with diacritics removed. This can be achieved with
either GreekLowerCaseFilter
or ICUFoldingFilter.
Modifier and Type | Field and Description |
---|---|
private static CharArraySet |
exc12a |
private static CharArraySet |
exc12b |
private static CharArraySet |
exc13 |
private static CharArraySet |
exc14 |
private static CharArraySet |
exc15a |
private static CharArraySet |
exc15b |
private static CharArraySet |
exc16 |
private static CharArraySet |
exc17 |
private static CharArraySet |
exc18 |
private static CharArraySet |
exc19 |
private static CharArraySet |
exc4 |
private static CharArraySet |
exc6 |
private static CharArraySet |
exc7 |
private static CharArraySet |
exc8a |
private static CharArraySet |
exc8b |
private static CharArraySet |
exc9 |
Constructor and Description |
---|
GreekStemmer() |
Modifier and Type | Method and Description |
---|---|
private boolean |
endsWith(char[] s,
int len,
java.lang.String suffix)
Checks if the word contained in the leading portion of char[] array ,
ends with the suffix given as parameter.
|
private boolean |
endsWithVowel(char[] s,
int len)
Checks if the word contained in the leading portion of char[] array ,
ends with a Greek vowel.
|
private boolean |
endsWithVowelNoY(char[] s,
int len)
Checks if the word contained in the leading portion of char[] array ,
ends with a Greek vowel.
|
private int |
rule0(char[] s,
int len) |
private int |
rule1(char[] s,
int len) |
private int |
rule10(char[] s,
int len) |
private int |
rule11(char[] s,
int len) |
private int |
rule12(char[] s,
int len) |
private int |
rule13(char[] s,
int len) |
private int |
rule14(char[] s,
int len) |
private int |
rule15(char[] s,
int len) |
private int |
rule16(char[] s,
int len) |
private int |
rule17(char[] s,
int len) |
private int |
rule18(char[] s,
int len) |
private int |
rule19(char[] s,
int len) |
private int |
rule2(char[] s,
int len) |
private int |
rule20(char[] s,
int len) |
private int |
rule21(char[] s,
int len) |
private int |
rule22(char[] s,
int len) |
private int |
rule3(char[] s,
int len) |
private int |
rule4(char[] s,
int len) |
private int |
rule5(char[] s,
int len) |
private int |
rule6(char[] s,
int len) |
private int |
rule7(char[] s,
int len) |
private int |
rule8(char[] s,
int len) |
private int |
rule9(char[] s,
int len) |
int |
stem(char[] s,
int len)
Stems a word contained in a leading portion of a char[] array.
|
private static final CharArraySet exc4
private static final CharArraySet exc6
private static final CharArraySet exc7
private static final CharArraySet exc8a
private static final CharArraySet exc8b
private static final CharArraySet exc9
private static final CharArraySet exc12a
private static final CharArraySet exc12b
private static final CharArraySet exc13
private static final CharArraySet exc14
private static final CharArraySet exc15a
private static final CharArraySet exc15b
private static final CharArraySet exc16
private static final CharArraySet exc17
private static final CharArraySet exc18
private static final CharArraySet exc19
public int stem(char[] s, int len)
s
- A char[] array that contains the word to be stemmed.len
- The length of the char[] array.private int rule0(char[] s, int len)
private int rule1(char[] s, int len)
private int rule2(char[] s, int len)
private int rule3(char[] s, int len)
private int rule4(char[] s, int len)
private int rule5(char[] s, int len)
private int rule6(char[] s, int len)
private int rule7(char[] s, int len)
private int rule8(char[] s, int len)
private int rule9(char[] s, int len)
private int rule10(char[] s, int len)
private int rule11(char[] s, int len)
private int rule12(char[] s, int len)
private int rule13(char[] s, int len)
private int rule14(char[] s, int len)
private int rule15(char[] s, int len)
private int rule16(char[] s, int len)
private int rule17(char[] s, int len)
private int rule18(char[] s, int len)
private int rule19(char[] s, int len)
private int rule20(char[] s, int len)
private int rule21(char[] s, int len)
private int rule22(char[] s, int len)
private boolean endsWith(char[] s, int len, java.lang.String suffix)
s
- A char[] array that represents a word.len
- The length of the char[] array.suffix
- A String
object to check if the word given ends with these characters.private boolean endsWithVowel(char[] s, int len)
s
- A char[] array that represents a word.len
- The length of the char[] array.private boolean endsWithVowelNoY(char[] s, int len)
s
- A char[] array that represents a word.len
- The length of the char[] array.