Package opennlp.tools.util
Package containing utility data structures and algorithms used by multiple other packages.
-
Interface Summary Interface Description BeamSearchContextGenerator<T> Interface for context generators used with a sequence beam search.InputStreamFactory Allows repeated reads through a stream for certain model building types.ObjectStream<T> Readsobjects
from a stream.ResetableIterator<E> This interface makes anIterator
resettable.SequenceCodec<T> A codec for sequences of typeSequenceCodec
.SequenceValidator<T> -
Class Summary Class Description AbstractEventStream<T> A baseObjectStream
implementation for events.AbstractObjectStream<T> A baseObjectStream
implementation.BaseToolFactory Base class for all toolfactories
.Cache<K,V> Provides fixed size, pre-allocated, least recently used replacement cache.CollectionObjectStream<E> AnObjectStream
implementation that works on aCollection
ofCollectionObjectStream
as source for elements.DownloadUtil This class facilitates the downloading of pretrained OpenNLP models.EventTraceStream FilterObjectStream<S,T> Abstract base class for filteringstreams
.MarkableFileInputStreamFactory A factory that createsMarkableFileInputStream
from aFile
MutableInt This is a non-thread safe mutable int.ObjectStreamUtils ParagraphStream AFilterObjectStream
which merges text lines into paragraphs.PlainTextByLineStream Reads a plain text file and returns each line as aString
object.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.Span Class for storing start and end integer offsets.StringList AStringList
is an immutable list ofString
s.StringUtil TokenTag TrainingParameters Declares and handles default parameters used for or during training models.Version TheVersion
class represents the OpenNLP Tools library version.XmlUtil -
Enum Summary Enum Description DownloadUtil.ModelType The type of model. -
Exception Summary Exception Description 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.