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> Readsobjectsfrom a stream.ResetableIterator<E> This interface makes anIteratorresettable.SequenceCodec<T> A codec for sequences of typeSequenceCodec.SequenceValidator<T> -
Class Summary Class Description AbstractEventStream<T> A baseObjectStreamimplementation for events.AbstractObjectStream<T> A baseObjectStreamimplementation.BaseToolFactory Base class for all toolfactories.Cache<K,V> Provides fixed size, pre-allocated, least recently used replacement cache.CollectionObjectStream<E> AnObjectStreamimplementation that works on aCollectionofCollectionObjectStreamas 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 createsMarkableFileInputStreamfrom aFileMutableInt This is a non-thread safe mutable int.ObjectStreamUtils ParagraphStream AFilterObjectStreamwhich merges text lines into paragraphs.PlainTextByLineStream Reads a plain text file and returns each line as aStringobject.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 AStringListis an immutable list ofStrings.StringUtil TokenTag TrainingParameters Declares and handles default parameters used for or during training models.Version TheVersionclass 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.