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

    Constructors
    Constructor
    Description
    LuceneLinguistics(LuceneAnalysisConfig config, com.yahoo.component.provider.ComponentRegistry<org.apache.lucene.analysis.Analyzer> analyzers)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(com.yahoo.language.Linguistics other)
     
    com.yahoo.language.process.Tokenizer
     
     

    Methods inherited from class com.yahoo.language.simple.SimpleLinguistics

    getCharacterClasses, getDetector, getGramSplitter, getNormalizer, getSegmenter, getStemmer, getTransformer

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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:
      getTokenizer in interface com.yahoo.language.Linguistics
      Overrides:
      getTokenizer in class com.yahoo.language.simple.SimpleLinguistics
    • equals

      public boolean equals(com.yahoo.language.Linguistics other)
      Specified by:
      equals in interface com.yahoo.language.Linguistics
      Overrides:
      equals in class com.yahoo.language.simple.SimpleLinguistics
    • toString

      public String toString()
      Overrides:
      toString in class com.yahoo.language.simple.SimpleLinguistics