Package opennlp.tools.util
package opennlp.tools.util
-
ClassDescriptionA base
ObjectStreamimplementation for events.A baseObjectStreamimplementation.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.Computes and validates the hex-encoded file digests that downloads are verified against.AnObjectStreamimplementation that works on aCollectionofCollectionObjectStreamas source for elements.Selects, for the classes that corrected their output in 3.0.0, between the corrected output and the output of the 1.x/2.x releases.Opt-in catalog of remote dictionary archives and companion files, loaded from application-supplied properties containing URLs and SHA-512 digests.One catalog entry with a URI and the SHA-512 digest of its bytes.This class facilitates the downloading of pretrained OpenNLP models.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.Validates language codes against ISO 639 standards.Stores a per-thread "last result" value for APIs that expose probabilities or other data from the most recent decode call (e.g.Implements a markableFileInputStream.A factory that createsMarkableFileInputStreamfrom aFileThis is a non-thread safe mutable int.ObjectStream<T>Readsobjectsfrom a stream.Routes mutable per-invocation state either to a single owner-thread field or toThreadLocalstorage once multiple threads use the same enclosing instance.AFilterObjectStreamwhich merges text lines into paragraphs.Argument checks that report an invalid parameter with anIllegalArgumentExceptionnaming that parameter.Reads a plain text file and returns each line as aStringobject.This interface makes anIteratorresettable.Fetches a third-party resource, such as a training corpus, a dictionary archive, or a lexicon, into a local directory.A unit budget, counting bytes or archive entries:ResourceInstaller.Budget.spend(long)accumulates spent units and fails once the limit is crossed.Charges every byte read or skipped from an expanded stream against a shared budget.Safety limits and network behavior for one installation.Collects limit values and validates them onResourceInstaller.Limits.Builder.build().Writes content into the staging directory ofResourceInstaller.installSelected(Path, StagingStep, Function).Shared upper bounds for counts read from user-supplied resources, so a crafted file cannot force an outsized allocation before validation completes.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.AStringListis an immutable list ofStrings.Configuration used for model training.Declares and handles default parameters used for or during training models.TheVersionclass represents the OpenNLP Tools library version.Selects the whitespace definition used byStringUtil.isWhitespace(char)andStringUtil.isWhitespace(int): the UnicodeWhite_Spaceproperty, or OpenNLP's legacy definition from 1.x/2.x.Creates XML parsers that process untrusted input securely.Holds the shared StAX factory.