List of usage examples for org.apache.lucene.analysis.ja.tokenattributes InflectionAttribute getInflectionForm
public String getInflectionForm();
From source file:com.github.riccardove.easyjasub.lucene.LuceneParser.java
License:Apache License
private void readInflection(TokenStream tokenStream, LuceneToken token) { InflectionAttribute inflection = tokenStream.getAttribute(InflectionAttribute.class); if (inflection != null) { token.setInflectionForm(LuceneUtil.translateInflectedForm(inflection.getInflectionForm())); token.setInflectionType(LuceneUtil.translateInflectionType(inflection.getInflectionType())); }/*from ww w .j av a 2 s. c o m*/ }