Class NgramAnalyzer
- java.lang.Object
-
- org.apache.lucene.analysis.Analyzer
-
- net.sf.okapi.lib.search.lucene.analysis.NgramAnalyzer
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public final class NgramAnalyzer extends org.apache.lucene.analysis.Analyzer- Author:
- HaslamJD, HARGRAVEJE
-
-
Field Summary
Fields Modifier and Type Field Description static intMAX_INPUT_SIZE
-
Constructor Summary
Constructors Constructor Description NgramAnalyzer(int ngramLength)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.lucene.analysis.Analyzer.TokenStreamComponentscreateComponents(String fieldName)
-
-
-
Field Detail
-
MAX_INPUT_SIZE
public static final int MAX_INPUT_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
createComponents
protected org.apache.lucene.analysis.Analyzer.TokenStreamComponents createComponents(String fieldName)
- Specified by:
createComponentsin classorg.apache.lucene.analysis.Analyzer
-
-