# Deprecated API

## Contents

- Terminally Deprecated
- Methods
- Constructors
- Enum Constants

- Terminally Deprecated Elements
  Element
  Description
  opennlp.tools.dictionary.serializer.Entry.getAttributes()
  opennlp.tools.dictionary.serializer.Entry.getTokens()
  opennlp.tools.langdetect.LanguageSample.getContext()
  opennlp.tools.langdetect.LanguageSample.getLanguage()
  opennlp.tools.langdetect.ProbingLanguageDetectionResult.getLanguages()
  opennlp.tools.langdetect.ProbingLanguageDetectionResult.getLength()
  opennlp.tools.util.TokenTag.getAdditionalData()
  opennlp.tools.util.TokenTag.getTag()
  opennlp.tools.util.TokenTag.getToken()

- Deprecated Methods
  Method
  Description
  opennlp.tools.chunker.ChunkerModel.getChunkerModel()
  use `ChunkerModel.getChunkerSequenceModel()` instead. This method will be removed soon.
  opennlp.tools.dictionary.serializer.Entry.getAttributes()
  opennlp.tools.dictionary.serializer.Entry.getTokens()
  opennlp.tools.langdetect.LanguageSample.getContext()
  opennlp.tools.langdetect.LanguageSample.getLanguage()
  opennlp.tools.langdetect.ProbingLanguageDetectionResult.getLanguages()
  opennlp.tools.langdetect.ProbingLanguageDetectionResult.getLength()
  opennlp.tools.namefind.NameFinderEventStream.generateOutcomes(Span[], String, int)
  use the `BioCodec` implementation of the SequenceValidator instead!
  opennlp.tools.postag.POSModel.getPosModel()
  use `POSModel.getPosSequenceModel()` instead. This method will be removed soon. Only required for Parser 1.5.x backward compatibility. Newer models don't need this anymore.
  opennlp.tools.util.TokenTag.getAdditionalData()
  opennlp.tools.util.TokenTag.getTag()
  opennlp.tools.util.TokenTag.getToken()

- Deprecated Constructors
  Constructor
  Description
  opennlp.tools.formats.ad.ADNameSampleStream(InputStreamFactory, String, boolean)
  opennlp.tools.sentdetect.SentenceDetectorME(SentenceModel, Factory)
  Use a `SentenceDetectorFactory` to extend SentenceDetector functionality.
  opennlp.tools.tokenize.TokenizerME(TokenizerModel, Factory)
  use `TokenizerFactory` to extend the Tokenizer functionality
  opennlp.tools.util.featuregen.CachedFeatureGenerator(AdaptiveFeatureGenerator...)

- Deprecated Enum Constants
  Enum Constant
  Description
  opennlp.tools.parser.ParserEventTypeEnum.CHUNK
  opennlp.tools.parser.ParserEventTypeEnum.TAG