Package com.yahoo.language.opennlp
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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanequals(com.yahoo.language.Linguistics other) com.yahoo.language.detect.Detectorcom.yahoo.language.process.TokenizerMethods inherited from class com.yahoo.language.simple.SimpleLinguistics
getCharacterClasses, getGramSplitter, getNormalizer, getSegmenter, getStemmer, getTransformer
-
Constructor Details
-
OpenNlpLinguistics
@Inject public OpenNlpLinguistics()
-
-
Method Details
-
getTokenizer
public com.yahoo.language.process.Tokenizer getTokenizer()- Specified by:
getTokenizerin interfacecom.yahoo.language.Linguistics- Overrides:
getTokenizerin classcom.yahoo.language.simple.SimpleLinguistics
-
getDetector
public com.yahoo.language.detect.Detector getDetector()- Specified by:
getDetectorin interfacecom.yahoo.language.Linguistics- Overrides:
getDetectorin 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
-