Package com.yahoo.language.lucene
Class LuceneLinguistics
java.lang.Object
com.yahoo.language.simple.SimpleLinguistics
com.yahoo.language.lucene.LuceneLinguistics
- All Implemented Interfaces:
com.yahoo.language.Linguistics
public class LuceneLinguistics
extends com.yahoo.language.simple.SimpleLinguistics
Factory of Lucene based linguistics processors.
As described in the Linguistics docstring
> the tokenizer should typically stem, transform and normalize
TODO: docs for all available analysis components.
- Author:
- dainiusjocas
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.yahoo.language.Linguistics
com.yahoo.language.Linguistics.Component -
Constructor Summary
ConstructorsConstructorDescriptionLuceneLinguistics(LuceneAnalysisConfig config, com.yahoo.component.provider.ComponentRegistry<org.apache.lucene.analysis.Analyzer> analyzers) -
Method Summary
Methods inherited from class com.yahoo.language.simple.SimpleLinguistics
getCharacterClasses, getDetector, getGramSplitter, getNormalizer, getSegmenter, getStemmer, getTransformer
-
Constructor Details
-
LuceneLinguistics
@Inject public LuceneLinguistics(LuceneAnalysisConfig config, com.yahoo.component.provider.ComponentRegistry<org.apache.lucene.analysis.Analyzer> analyzers)
-
-
Method Details
-
getTokenizer
public com.yahoo.language.process.Tokenizer getTokenizer()- Specified by:
getTokenizerin interfacecom.yahoo.language.Linguistics- Overrides:
getTokenizerin classcom.yahoo.language.simple.SimpleLinguistics
-
equals
public boolean equals(com.yahoo.language.Linguistics other) - Specified by:
equalsin interfacecom.yahoo.language.Linguistics- Overrides:
equalsin classcom.yahoo.language.simple.SimpleLinguistics
-
toString
- Overrides:
toStringin classcom.yahoo.language.simple.SimpleLinguistics
-