# Package opennlp.tools.util

package opennlp.tools.util
Package containing utility data structures and algorithms used by multiple other packages.

- Related Packages
  Package
  Description
  opennlp.tools.util.eval
  opennlp.tools.util.ext
  Package containing extension loading code.
  opennlp.tools.util.featuregen
  This package contains classes for generating sequence features.
  opennlp.tools.util.java
  opennlp.tools.util.jvm
  opennlp.tools.util.model
  opennlp.tools.util.normalizer
  opennlp.tools.util.wordvector
- Class
  Description
  AbstractEventStream<T>
  A base `ObjectStream` implementation for events.
  AbstractObjectStream<T>
  A base `ObjectStream` implementation.
  BaseToolFactory
  Base class for all tool `factories`.
  BeamSearchContextGenerator<T>
  Interface for context generators used with a sequence beam search.
  Cache<K,V>
  Provides fixed size, pre-allocated, least recently used replacement cache.
  CollectionObjectStream<E>
  An `ObjectStream` implementation that works on a `Collection` of `CollectionObjectStream` as source for elements.
  DownloadUtil
  This class facilitates the downloading of pretrained OpenNLP models.
  DownloadUtil.ModelType
  The type of model.
  EventTraceStream
  FilterObjectStream<S,T>
  Abstract base class for filtering `streams`.
  InputStreamFactory
  Allows repeated reads through a stream for certain model building types.
  InsufficientTrainingDataException
  This exception indicates that the provided training data is insufficient to train a desired model.
  InvalidFormatException
  This exception indicates that a resource violates the expected data format.
  MarkableFileInputStreamFactory
  A factory that creates `MarkableFileInputStream` from a `File`
  MutableInt
  This is a non-thread safe mutable int.
  ObjectStream<T>
  Reads `objects` from a stream.
  ObjectStreamUtils
  ParagraphStream
  A `FilterObjectStream` which merges text lines into paragraphs.
  PlainTextByLineStream
  Reads a plain text file and returns each line as a `String` object.
  ResetableIterator<E>
  This interface makes an `Iterator` resettable.
  ReverseListIterator<T>
  An iterator for a list which returns values in the opposite order as the typical list iterator.
  Sequence
  Represents a weighted sequence of outcomes.
  SequenceCodec<T>
  A codec for sequences of type `SequenceCodec`.
  SequenceValidator<T>
  Span
  Class for storing start and end integer offsets.
  StringList
  A `StringList` is an immutable list of `String`s.
  StringUtil
  TokenTag
  TrainingParameters
  Declares and handles default parameters used for or during training models.
  Version
  The `Version` class represents the OpenNLP Tools library version.
  XmlUtil