fixing error in stemming filter
git-svn-id: https://russianmorphology.googlecode.com/svn/trunk@127 d817d54c-26ab-11de-abc9-2f7d1455ff7a
This commit is contained in:
parent
19559e2856
commit
2b5509c825
@ -39,6 +39,7 @@ public class EnglishStemmerFilter extends TokenFilter {
|
||||
return false;
|
||||
}
|
||||
String s = new String(termAtt.buffer(), 0, termAtt.length());
|
||||
s = englishStemmer.getStemmedWord(s);
|
||||
termAtt.setEmpty();
|
||||
termAtt.append(s);
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user