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.Heap<E> Interface for interacting with a Heap data structure.InputStreamFactory Allows repeated reads through a stream for certain types of model building.ObjectStream<T> ReadsObject
s from a stream.ResetableIterator<E> This interface makes anIterator
resetable.SequenceCodec<T> SequenceValidator<T> -
Class Summary Class Description AbstractEventStream<T> AbstractObjectStream<T> BaseToolFactory Base class for all tool factories.BeamSearch<T> Performs k-best search over sequence.Cache Provides fixed size, pre-allocated, least recently used replacement cache.CollectionObjectStream<E> CountedSet<E> Set which counts the number of times a values are added to it.EventTraceStream FilterObjectStream<S,T> Abstract base class for filteringObjectStream
s.HashList Class which creates mapping between keys and a list of values.ListHeap<E extends java.lang.Comparable<E>> This class implements the heap interface using aList
as the underlying data structure.MarkableFileInputStreamFactory A factory that createsMarkableFileInputStream
from aFile
ObjectStreamUtils ParagraphStream Stream filter which merges text lines into paragraphs.PlainTextByLineStream Reads a plain text file and return 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 TheStringList
is an immutable list ofString
s.StringUtil TrainingParameters TreeHeap<E> Deprecated. not used anymore, when there is need for a heap use ListHeap insteadVersion TheVersion
class represents the OpenNlp Tools library version. -
Exception Summary Exception Description InvalidFormatException This exception indicates that a resource violates the expected data format.