List of usage examples for org.apache.lucene.analysis.ja.tokenattributes InflectionAttribute getInflectionType
public String getInflectionType();
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.jav a 2 s.c o m*/ }