Advertisement

Lucene 英文词根处理方式

阅读量:
复制代码
    import com.google.common.collect.Lists;
    import com.google.common.collect.Sets;
    import org.apache.commons.collections.CollectionUtils;
    import org.apache.commons.lang3.StringUtils;
    import org.apache.lucene.analysis.TokenStream;
    import org.apache.lucene.analysis.en.EnglishAnalyzer;
    import org.apache.lucene.analysis.en.EnglishPossessiveFilter;
    import org.apache.lucene.analysis.en.EnglishMinimalStemFilter;
    import org.apache.lucene.analysis.tokenattributes.CharTermAttribute;
    import org.apache.lucene.queryparser.classic.ParseException;
    
    import java.

全部评论 (0)

还没有任何评论哟~