Package opennlp.tools.util
package opennlp.tools.util
Package containing utility data structures and algorithms used by multiple other packages.
-
ClassDescriptionA base
ObjectStream
implementation for events.A baseObjectStream
implementation.Base class for all toolfactories
.Interface for context generators used with a sequence beam search.Cache<K,V> Provides fixed size, pre-allocated, least recently used replacement cache.AnObjectStream
implementation that works on aCollection
ofCollectionObjectStream
as source for elements.This class facilitates the downloading of pretrained OpenNLP models.The type of model.FilterObjectStream<S,T> Abstract base class for filteringstreams
.Allows repeated reads through a stream for certain model building types.This exception indicates that the provided training data is insufficient to train a desired model.This exception indicates that a resource violates the expected data format.A factory that createsMarkableFileInputStream
from aFile
This is a non-thread safe mutable int.ObjectStream<T>Readsobjects
from a stream.AFilterObjectStream
which merges text lines into paragraphs.Reads a plain text file and returns each line as aString
object.This interface makes anIterator
resettable.An iterator for a list which returns values in the opposite order as the typical list iterator.Represents a weighted sequence of outcomes.A codec for sequences of typeSequenceCodec
.Class for storing start and end integer offsets.AStringList
is an immutable list ofString
s.Declares and handles default parameters used for or during training models.TheVersion
class represents the OpenNLP Tools library version.