Class OpenNlpLinguistics

java.lang.Object
com.yahoo.language.simple.SimpleLinguistics
com.yahoo.language.opennlp.OpenNlpLinguistics
All Implemented Interfaces:
com.yahoo.language.Linguistics

public class OpenNlpLinguistics extends com.yahoo.language.simple.SimpleLinguistics
A linguistics implementation based on OpenNlp.
Author:
bratseth, jonmv
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.yahoo.language.Linguistics

    com.yahoo.language.Linguistics.Component
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

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

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

    getCharacterClasses, getGramSplitter, getNormalizer, getSegmenter, getStemmer, getTransformer

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OpenNlpLinguistics

      @Inject public OpenNlpLinguistics()
  • 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
    • getDetector

      public com.yahoo.language.detect.Detector getDetector()
      Specified by:
      getDetector in interface com.yahoo.language.Linguistics
      Overrides:
      getDetector 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