Searched refs:stem (Results 1 - 25 of 103) sorted by relevance

12345

/lucene-3.6.0/lucene/contrib/analyzers/common/src/test/org/apache/lucene/analysis/hunspell/
H A DHunspellStemmerTest.java40 List<HunspellStemmer.Stem> stems = stemmer.stem("lucene");
46 stems = stemmer.stem("mahoute");
53 List<HunspellStemmer.Stem> stems = stemmer.stem("solr");
61 List<HunspellStemmer.Stem> stems = stemmer.stem("abcd");
72 stems = stemmer.stem("apache");
76 stems = stemmer.stem("APACHE");
80 stems = stemmer.stem("Apache");
84 stems = stemmer.stem("foos");
88 stems = stemmer.stem("food");
92 stems = stemmer.stem("Foo
[all...]
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/pt/
H A DPortugueseMinimalStemmer.java36 public int stem(char s[], int len) { method in class:PortugueseMinimalStemmer
/lucene-3.6.0/lucene/contrib/analyzers/stempel/src/java/org/egothor/stemmer/
H A DDiffIt.java103 String stem = st.nextToken();
104 System.out.println(stem + " -a");
107 if (token.equals(stem) == false) {
108 System.out.println(stem + " " + diff.exec(token, stem));
112 // no base token (stem) on a line
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/hunspell/
H A DHunspellStemmer.java56 * Find the stem(s) of the provided word
61 public List<Stem> stem(String word) { method in class:HunspellStemmer
62 return stem(word.toCharArray(), word.length());
66 * Find the stem(s) of the provided word
71 public List<Stem> stem(char word[], int length) { method in class:HunspellStemmer
76 stems.addAll(stem(word, length, null, 0));
81 * Find the unique stem(s) of the provided word
93 List<Stem> otherStems = stem(word, length, null, 0);
95 if (!terms.contains(s.stem)) {
97 terms.add(s.stem);
113 private List<Stem> stem(char word[], int length, char[] flags, int recursionDepth) { method in class:HunspellStemmer
225 private final char stem[]; field in class:HunspellStemmer.Stem
233 Stem(char stem[], int stemLength) argument
[all...]
H A DHunspellStemFilter.java31 * TokenFilter that uses hunspell affix rules and words to stem tokens. Since hunspell supports a word having multiple
47 * Creates a new HunspellStemFilter that will stem tokens from the given TokenStream using affix rules in the provided
51 * @param dictionary HunspellDictionary containing the affix rules and words that will be used to stem the tokens
58 * Creates a new HunspellStemFilter that will stem tokens from the given TokenStream using affix rules in the provided
62 * @param dictionary HunspellDictionary containing the affix rules and words that will be used to stem the tokens
93 buffer = dedup ? stemmer.uniqueStems(termAtt.buffer(), termAtt.length()) : stemmer.stem(termAtt.buffer(), termAtt.length());
99 Stem stem = buffer.remove(0);
100 termAtt.copyBuffer(stem.getStem(), 0, stem.getStemLength());
101 termAtt.setLength(stem
[all...]
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/gl/
H A DGalicianMinimalStemmer.java35 public int stem(char s[], int len) { method in class:GalicianMinimalStemmer
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/en/
H A DEnglishMinimalStemmer.java29 public int stem(char s[], int len) { method in class:EnglishMinimalStemmer
H A DEnglishMinimalStemFilter.java29 * A {@link TokenFilter} that applies {@link EnglishMinimalStemmer} to stem
50 final int newlen = stemmer.stem(termAtt.buffer(), termAtt.length());
H A DKStemFilter.java57 if ((!keywordAtt.isKeyword()) && stemmer.stem(term, len)) {
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/fr/
H A DFrenchMinimalStemmer.java63 public int stem(char s[], int len) { method in class:FrenchMinimalStemmer
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/no/
H A DNorwegianMinimalStemmer.java64 public int stem(char s[], int len) { method in class:NorwegianMinimalStemmer
84 case 'e': // to get correct stem for nouns ending in -e (kake -> kak, kaker -> kak)
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/analysis/
H A DPorterStemmer.java60 * by calling one of the various stem(something) methods.
77 * reset() resets the stemmer so it can stem another word. If you invoke
78 * the stemmer by calling add(char) and then stem(), you must call reset()
85 * adding characters, you can call stem(void) to process the word.
284 /* step2() turns terminal y to i when there is another vowel in the stem. */
433 public String stem(String s) { method in class:PorterStemmer
434 if (stem(s.toCharArray(), s.length()))
444 public boolean stem(char[] word) { method in class:PorterStemmer
445 return stem(word, word.length);
453 public boolean stem(cha method in class:PorterStemmer
468 public boolean stem(char[] word, int wordLen) { method in class:PorterStemmer
477 public boolean stem() { method in class:PorterStemmer
481 public boolean stem(int i0) { method in class:PorterStemmer
[all...]
H A DPorterStemFilter.java63 if ((!keywordAttr.isKeyword()) && stemmer.stem(termAtt.buffer(), 0, termAtt.length()))
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/miscellaneous/
H A DStemmerOverrideFilter.java59 String stem = dictionary.get(termAtt.buffer(), 0, termAtt.length());
60 if (stem != null) {
61 termAtt.setEmpty().append(stem);
/lucene-3.6.0/lucene/contrib/analyzers/stempel/src/test/org/egothor/stemmer/
H A DTestCompile.java129 String stem = st.nextToken();
131 CharSequence cmd = (usefull) ? trie.getFully(stem) : trie
132 .getLastOnPath(stem);
133 StringBuilder stm = new StringBuilder(stem);
135 assertEquals(stem.toLowerCase(), stm.toString().toLowerCase());
139 if (token.equals(stem)) {
146 assertEquals(stem.toLowerCase(), stm.toString().toLowerCase());
149 // no base token (stem) on a line
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/de/
H A DGermanMinimalStemmer.java64 public int stem(char s[], int len) { method in class:GermanMinimalStemmer
H A DGermanLightStemFilter.java29 * A {@link TokenFilter} that applies {@link GermanLightStemmer} to stem German
50 final int newlen = stemmer.stem(termAtt.buffer(), termAtt.length());
H A DGermanMinimalStemFilter.java29 * A {@link TokenFilter} that applies {@link GermanMinimalStemmer} to stem German
50 final int newlen = stemmer.stem(termAtt.buffer(), termAtt.length());
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/es/
H A DSpanishLightStemmer.java64 public int stem(char s[], int len) { method in class:SpanishLightStemmer
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/it/
H A DItalianLightStemmer.java64 public int stem(char s[], int len) { method in class:ItalianLightStemmer
/lucene-3.6.0/lucene/contrib/analyzers/kuromoji/src/java/org/apache/lucene/analysis/ja/
H A DJapaneseKatakanaStemFilter.java65 termAttr.setLength(stem(termAttr.buffer(), termAttr.length()));
73 private int stem(char[] term, int length) { method in class:JapaneseKatakanaStemFilter
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/ar/
H A DArabicStemFilter.java29 * A {@link TokenFilter} that applies {@link ArabicStemmer} to stem Arabic words..
50 final int newlen = stemmer.stem(termAtt.buffer(), termAtt.length());
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/bg/
H A DBulgarianStemFilter.java29 * A {@link TokenFilter} that applies {@link BulgarianStemmer} to stem Bulgarian
50 final int newlen = stemmer.stem(termAtt.buffer(), termAtt.length());
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/cz/
H A DCzechStemFilter.java29 * A {@link TokenFilter} that applies {@link CzechStemmer} to stem Czech words.
52 final int newlen = stemmer.stem(termAtt.buffer(), termAtt.length());
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/el/
H A DGreekStemFilter.java29 * A {@link TokenFilter} that applies {@link GreekStemmer} to stem Greek
55 final int newlen = stemmer.stem(termAtt.buffer(), termAtt.length());

Completed in 624 milliseconds

12345