All Classes and Interfaces

Class
Description
Abstract class which contains code to tag and chunk parses for bottom up parsing and leaves implementation of advancing parses and completing parses to extend class.
A base implementation of a ClassPathModelFinder for the detection of OpenNLP models in the classpath.
Abstract class containing many of the methods used to generate contexts for parsing.
Abstract DataIndexer implementation for collecting event and context counts used in training.
A basic EventModelSequenceTrainer implementation that processes events.
A base ObjectStream implementation for events.
A basic EventTrainer implementation.
 
A basic MaxentModel implementation.
An abstract, basic implementation of a model reader.
An abstract, basic implementation of a model writer.
A base ObjectStream implementation.
Abstract class extended by parser event streams which perform tagging and chunking.
Base class for sample stream factories.
Parent class of all snowball stemmers, which must implement stem
 
 
 
A CharSequenceNormalizer that folds diacritics for matching, the multilingual-safe counterpart to a Latin-only ASCII folding filter.
An interface for generating features for name entity identification and for updating document level contexts.
Parser for Floresta Sita(c)tica Arvores Deitadas corpus, output to for the Portuguese Chunker training.
A Factory to create a Arvores Deitadas ChunkStream from the command line utility.
 
The AdditionalContextFeatureGenerator generates the context from the passed in additional context.
Reads the ids from the metadata of an Arvores Deitadas sentence, which differs between corpora.
Where the digit runs of the two ids lie in the metadata, each as an inclusive start and an exclusive end.
The ids of a sentence.
Parser for Floresta Sita(c)tica Arvores Deitadas corpus, output to for the Portuguese NER training.
A Factory to create a Arvores Deitadas NameSampleDataStream from the command line utility.
 
Note: Do not use this class, internal use only!
Note: Do not use this class, internal use only!
 
Note: Do not use this class, internal use only!
Note: Do not use this class, internal use only!
 
Stream filter which merges text lines into sentences, following the Arvores Deitadas syntax.
 
Parses a sample of AD corpus.
Represents the AD leaf
The end of a leaf line.
The part of a leaf line after the lemma.
What the scans of one line remember: for each index, whether no end of a leaf line was found there, and the index of the next closing parenthesis at or after it.
Represents the AD node
A punctuation line.
A tag at the start of a line.
Represents a tree element, Node or Leaf
Note: Do not use this class, internal use only!
 
One parsed affix condition: a fixed-length sequence of literal code points and bracketed character classes, matched with a single scan and no regular expressions.
A CharSequenceNormalizer implementation that aggregates the functionality of other normalizers.
The AggregatedFeatureGenerator aggregates a set of feature generators and calls them to generate the features.
 
An OffsetAwareNormalizer that applies a chain of offset-aware normalizers in order and composes their per-stage Alignments with Alignment.andThen(Alignment), so the result maps a span found in the fully normalized text back to the original input through every stage.
The result of a normalization that keeps the original text alongside the normalized form and a full Alignment between them.
A bidirectional alignment between an original text and a normalized form of it.
Builds an Alignment as the normalized text is produced, by recording each edit in order.
Checks whether a candidate token is accepted by the alphanumeric optimization of TokenizerME and TokSpanEventStream, so it is not split further.
Thrown if more than one provider has the highest priority.
Internal class used by Snowball stemmers
Class for storing the Ancora Spanish head rules associated with parsing.
 
 
One annotation of a Document: a typed value anchored to a Span of the document's original text, or a span-less value under a document-scoped key.
Encapsulates a type to class mapping for entities, relations, events, etc.
 
This class implements the stemming algorithm defined by a snowball script.
One step of arc-standard beam search over a FeedforwardNetwork, shared by beam decoding and beam refinement: every node of the beam is expanded by each applicable transition scored by summed log-probability, and the best expansions are advanced.
One path of the beam.
Converts an annotated dependency tree into the sequence of parser transitions needed to reconstruct it.
Tracks the state of an arc-standard dependency parse: a stack of tokens being processed, a buffer of unread tokens, and the dependency arcs created so far.
Parser for command line arguments.
Auxiliary record that holds information about an argument.
 
 
 
 
 
 
 
 
 
 
Utility class for simple vector arithmetic.
Provides access to model persisted artifacts.
Responsible to create an artifact from an InputStream.
ASCII character helpers shared by the normalizer implementations of this package, so the character definitions cannot drift apart between classes.
Generates predictive contexts for deciding how constituents should be attached.
Accumulates the unlabeled and labeled attachment scores over all tokens and over the tokens that are not punctuation.
 
The Attributes class stores name value pairs.
Generates a feature for each word in a document.
Represents a minimal tuple of information.
This is a common base model which can be used by the components' specific model classes.
Isolates all references to ObjectInputFilter, which is not available on every platform (e.g.
Base class for all tool factories.
A ContextGenerator implementation for maxent decisions, assuming that the input given to the BasicContextGenerator.getContext(String) method is a String containing contextual predicates separated by whitespace, for instance:
Common format parameters.
Common training parameters.
Performs k-best search over a sequence.
 
Immutable node in a backward-linked chain of outcome candidates, used only inside BeamSearch.bestSequences(int, Object[], Object[], double, BeamSearchContextGenerator, SequenceValidator).
Interface for context generators used with a sequence beam search.
Character classifications and text transforms of the reference BERT BasicTokenizer, shared by WordpieceEncoder and WordpieceTokenizer.
Adds bigram features based on tokens and token classes.
The default SequenceCodec implementation according to the BILOU scheme.
A SequenceValidator implementation for the BilouCodec.
A DataReader that reads files from a binary format.
A GISModelReader that reads models from a binary format.
A GISModelWriter that writes models in a binary format.
A NaiveBayesModelReader that reads models from a binary format.
A NaiveBayesModelWriter that writes models in a binary format.
A PerceptronModelReader that reads models from a binary format.
A PerceptronModelWriter that writes models in a binary format.
A QNModelReader that reads models from a binary format.
A QNModelWriter that writes models in a binary format.
The default SequenceCodec implementation according to the BIO scheme: B: 'beginning' of a NE I: 'inside', the word is inside a NE O: 'outside', the word is a regular word outside a NE See also the paper by Roth D.
A sample stream for the training files of the BioNLP/NLPBA 2004 shared task.
 
 
The BPEModel stores learned BPE merge operations and can be serialized and deserialized for reuse.
A Tokenizer implementation that performs subword tokenization using Byte Pair Encoding (BPE).
Represents a pair of adjacent symbols in BPE.
A BaseToolFactory for BPE tokenization that manages the BPE merge rules artifact and its serialization within a BPEModel.
An ArtifactSerializer for BPE merge rules.
Learns BPE merge operations from a training corpus and produces a BPEModel.
 
Reads the annotations from the brat .ann annotation file.
 
 
 
 
 
 
Brat (brat rapid annotation tool) is based on the stav visualiser which was originally made in order to visualise BioNLP'11 Shared Task data.
 
 
Generates Name Sample objects for a Brat Document object.
Note: Do not use this class, internal use only!
 
Generates Brown cluster features for token bigrams.
Class to load a Brown cluster document in the format: word\tword_class\tprob.
 
Obtain the paths listed in the pathLengths array from the Brown class.
Generates BrownCluster features for current token and token class.
Generates BrownCluster features for current token.
Generates predictive contexts for deciding how constituents should be combined.
Creates the features or contexts for the building phase of parsing.
A CharSequenceNormalizer that replaces unambiguous list-bullet characters with a space, so a bullet acts as a token separator rather than sticking to the following word.
Loads the line-based data files bundled with OpenNLP, such as the Unicode Character Database extracts and the project-authored emoji tables.
Holds data that is loaded on the first call to BundledUnicodeData.Lazy.get().
Receives one line of a data file.
Parses a bundled data stream.
An ArtifactSerializer implementation for binary data, kept in byte[].
Provides fixed size, pre-allocated, least recently used replacement cache.
Caches features of the aggregated generators.
 
A Stemmer that memoizes word-to-stem mappings in a bounded per-thread LRU cache.
 
A CharSequenceNormalizer that lower cases text for case-insensitive matching.
This class implements the stemming algorithm defined by a snowball script.
The char.def code point to category mappings over the Unicode code point range.
Collects char.def mappings in file order and builds a CategoryTable, giving a later mapping precedence over an earlier one that covers the same code point, which is what direct indexing does for the BMP.
One mapping line retained for validation after all categories have been read.
The categories assigned to one code point, stored both in mapping order and as a mask over the dictionary's dense category ids.
The CharacterNgramFeatureGenerator uses character ngrams to generate features about each token.
A configurable class of Unicode code points and the cursor based operations over it.
Chooses the code point that replaces one maximal run of member code points.
A char sequence normalizer, used to adjusting (prune, substitute, add, etc.) characters in order to remove noise from text
Generates predictive context for deciding when a constituent is complete.
Generates predictive context for deciding when a constituent is complete.
A Checksum-based event stream implementation.
Computes and validates the hex-encoded file digests that downloads are verified against.
A StringInterner implementation by Aleksey Shipilëv with relaxed canonical requirements.
A StringInterner implementation based on ConcurrentHashMap by Aleksey Shipilëv.
Creates predictive context for the pre-chunking phases of parsing.
The interface for chunkers which provide chunk tags for a sequence of tokens.
Adapts a Chunker to the document pipeline: reads Layers.SENTENCES, Layers.TOKENS, and Layers.POS_TAGS and provides ChunkerAnnotator.CHUNKS, one annotation per phrase chunk carrying the chunk type, for example NP or VP, on the span from its first to its last token.
Interface for a BeamSearchContextGenerator used in syntactic chunking.
Cross validator for Chunker.
A marker interface for evaluating chunkers.
The ChunkerEvaluator measures the performance of the given Chunker with the provided reference samples.
Class for creating an event stream out of data files for training a Chunker.
 
The class represents a maximum-entropy-based Chunker.
The ChunkerModel is the model used by a learnable Chunker.
An ArtifactSerializer implementation for models.
Factory producing OpenNLP ChunkSampleStreams.
 
Class for holding chunks for a single unit of text.
A SequenceStream implementation encapsulating samples.
Parses the conll 2000 shared task shallow parser training data.
 
Enables the detection of OpenNLP models in the classpath via Classgraph.
 
A record that holds the binary representation of an OpenNLP model and related properties.
Encapsulates a classpath entry that is associated with a model URI and optional properties.
Describes a scanner which detects OpenNLP specific model files in an applications's classpath.
Responsible for loading OpenNLP models from the classpath via entries.
A provider for obtaining pre-trained OpenNLP models from an application's classpath.
Shared code-point decoding for forward (and reverse) cursor scans over CharSequence text.
A code point at an index together with its UTF-16 width.
An immutable set of Unicode code points with O(1) membership.
An ObjectStream implementation that works on a Collection of CollectionObjectStream as source for elements.
A maxent event representation which we can use to sort based on the predicates indexes contained in the events.
A maxent predicate representation which we can use to sort based on the outcomes.
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.
A configurable context generator for a POSTagger.
 
Computes the Unicode confusable skeleton of text, following the skeleton algorithm defined in UTS #39 (Unicode Security Mechanisms).
 
A CharSequenceNormalizer that reduces text to its Unicode confusable skeleton (UTS #39).
Parser for the Dutch and Spanish ner training files of the CONLL 2002 shared task.
 
Note: Do not use this class, internal use only!
 
An import stream which can parse the CONLL03 data.
 
 
 
Reads samples directly from CoNLL-U content, mapping the HEAD and DEPREL columns of the basic dependency annotation.
Creates ConlluDependencySampleStream instances for the command line tools.
The command line parameters of the CoNLL-U dependency format.
 
Note: Do not use this class, internal use only!
 
 
Note: Do not use this class, internal use only!
 
 
 
Note: Do not use this class, internal use only!
 
The CoNNL-U Format is specified here.
The token range a multiword token line covers.
The part-of-speech tag column of a CoNLL-U file: the universal tags or the language-specific tags.
 
Note: Do not use this class, internal use only!
 
 
Parses the data from the CONLL 06 shared task into POS Samples.
Note: Do not use this class, internal use only!
 
Note: Do not use this class, internal use only!
 
Note: Do not use this class, internal use only!
 
Holds feature information about a specific Parse node.
 
 
Note: Do not use this class, internal use only!
 
Holds constituents when reading parses.
Class which associates a real valued parameter or expected value with a particular contextual predicate or feature.
Represents a generator of contexts for maxent decisions.
Caches the hidden-layer contribution of each (feature position, embedding row) pair a FeedforwardDependencyParser scores, within a byte budget.
Provides access to training and test partitions for n-fold cross validation.
The CrossValidationPartitioner.TestSampleStream iterates over all test elements.
The CrossValidationPartitioner.TrainingSampleStream which iterates over all training elements.
Common cross validator parameters.
This class implements the stemming algorithm defined by a snowball script.
A CharSequenceNormalizer that maps every Unicode dash to an ASCII hyphen-minus (U+002D), reusing the cursor based CharClass.dashes() engine.
Represents an indexer which compresses events in memory and performs feature selection.
A factory that produces DataIndexer instances.
Describes generic ways to read data from a DataInputStream.
An interface for objects which can deliver a stream of training data to be supplied to an EventStream.
Features based on chunking model described in Fei Sha and Fernando Pereira.
The default chunker SequenceValidator implementation.
A default implementation of ClassPathModelProvider which by default relies on SimpleClassPathModelFinder to scan for models in the current classpath.
Default implementation of the EndOfSentenceScanner.
A context generator for language detector.
Simple feature generator for learning statistical lemmatizers.
The default lemmatizer SequenceValidator implementation.
A NameContextGenerator implementation for determining contextual features for a tag-chunk style named-entity recognizer.
A default context generator for a POSTagger.
The default POS tagger SequenceValidator implementation.
Generate event contexts for maxent decisions for sentence detection.
A default TokenContextGenerator which produces events for maxent decisions for tokenization.
The default implementation of TrainingProgressMonitor.
Shared plumbing for Stemmer wrappers that route each call to a per-thread payload minted from a StemmerFactory, following the OwnerOrPerThreadState pattern of the thread-safe *ME components.
One labeled edge of a DependencyTree: the token at dependent is governed by the token at head under the given relation.
Generates the classification features for one arc-standard configuration: words and tags of the topmost stack and frontmost buffer positions, their pairings, the partial structure built so far (tags and relations of the leftmost and rightmost dependents, valency counts), and a bucketed distance between stack top and buffer front.
Cross validator for DependencyParserME.
A marker interface for evaluating dependency parsers.
Measures the quality of a DependencyParser against gold samples with the two standard scores: the unlabeled attachment score (UAS, the fraction of tokens with the correct head) and the labeled attachment score (LAS, the fraction of tokens with the correct head and relation label).
Turns samples into training events: for each sample the ArcStandardOracle derives the gold transitions, and every transition becomes one event pairing the configuration features with the encoded transition.
The persisted form of a trained DependencyParserME: the transition classification model plus the standard model manifest, serialized and loaded through the same BaseModel machinery as every other tool model.
The interface for dependency parsers, which assign every token of a sentence a syntactic head and a relation label, forming a single-rooted tree over the sentence.
A greedy transition-based DependencyParser: a classifier picks the next arc-standard Transition for each configuration until the parse is complete, always taking the highest scoring transition that is applicable.
One dependency-annotated sentence: tokens, their part-of-speech tags, and the gold DependencyTree over them.
An immutable dependency tree over one sentence: for every token, the index of its head and the label of the relation to that head.
 
 
A Detokenizer merges tokens back to their detokenized representation.
This enum contains an operation for every token to merge the tokens together to their detokenized form.
 
Base class for factories which need a Detokenizer.
 
An iterable and serializable dictionary implementation.
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.
A rule based detokenizer.
A persistor used by for reading and writing dictionaries of all kinds.
 
The DictionaryFeatureGenerator uses a DictionaryNameFinder to generate features for detected names based on the InSpanGenerator.
A Lemmatizer implementation that works by simple dictionary lookup into a Map built from a file containing, for each line:
This is a Dictionary based name finder.
An ArtifactSerializer implementation for dictionaries.
An immutable, thread-safe StopwordFilter backed by an OpenNLP Dictionary.
Fluent builder for DictionaryStopwordFilter.
A CharSequenceNormalizer that maps Unicode decimal digits to their ASCII equivalents, so for example Arabic-Indic, Devanagari, or fullwidth digits all become 0-9.
A layer of the Term normalization stack, in increasing order of aggressiveness.
The DirectoryModelFinder class is responsible for finding model files in a given directory on the classpath.
The directory sample stream allows for creating an ObjectStream<File> from a directory listing of files.
Cross validator for DocumentCategorizer.
A marker interface for evaluating doccat.
The factory that provides Doccat default implementations and resources.
A model for document categorization
An offset-anchored annotation container: the original text of one document plus any number of typed annotation layers over it.
How Document.merge(Document, DuplicateLayerPolicy) treats a layer key that is present on both documents.
Runs a fixed sequence of annotators over a text, producing one Document that carries every step's layers.
Assembles a DocumentAnalyzer from annotators in execution order.
A pipeline step that reads layers from a Document and returns a new document with its own layers added.
The SPI for DocumentAnnotator providers.
Support methods shared by DocumentAnnotator implementations: the required-layer and layer-alignment checks, the per-sentence walk over the token layer, and the mapping of sentence-relative token spans onto character spans.
Receives one sentence's contiguous token run during DocumentAnnotators.forEachSentence(List, List, SentenceTokenConsumer).
This feature generator creates document begin features.
Interface for classes which categorize documents.
Context generator for DocumentCategorizer.
The DocumentCategorizerEvaluator measures the performance of the given DocumentCategorizer with the provided reference samples.
Iterator-like class for modeling document classification events.
A Max-Ent based implementation of DocumentCategorizer.
The argument and duplicate layer checks shared by the merge implementations.
Interface for processing an entire document allowing a TokenNameFinder to use context from the entire document.
Class which holds a classified document and its category.
Reads in string encoded training samples, parses them and outputs DocumentSample objects.
Factory producing OpenNLP DocumentSampleStreams.
 
 
Reads a plain text file and return each line as a String object.
The lexicon as a double-array trie: one transition is one array read and one comparison.
Builds the trie from sorted surface ranges.
A surface range with children waiting to be placed.
A WordVector implementation that represents the vector as array of double values.
This class facilitates the downloading of pretrained OpenNLP models.
 
This class implements the stemming algorithm defined by a snowball script.
 
A CharSequenceNormalizer that expands the ellipsis and leader characters to ASCII dots: the horizontal ellipsis (U+2026) to "..." and the two-dot leader (U+2025) to "..".
Thrown if a TextEmbedder fails to embed text, for example because the inference backend reports an error.
The annotation record of one emoji: an extensible per-symbol store of attribute values, each carrying its own provenance.
One attribute value with its provenance, mirroring one row of the bundled data file.
Generates features from the emoji annotation layer for the token at the given index: the project-authored coarse sentiment score (emojiSentiment=2), the entity type (emojiType=HEART), the document category (emojiCategory=SMILEYS_AND_EMOTION), and for flags the ISO 3166 region (emojiRegion=DE).
A GeneratorFactory that produces EmojiAnnotationFeatureGenerator instances when EmojiAnnotationFeatureGeneratorFactory.create() is called, for use in a feature generation descriptor:
The joined-facts layer of the emoji annotation record store: a hook through which facts that live in user-installed data, typically a gazetteer (coordinates, containment chain, GeoNames or Who's On First identifiers), are resolved at run time and merged into an EmojiAnnotation.
The bundled-facts layer of the emoji annotation record store: license-clean, provenance-tagged attributes intrinsic to a pictograph (name, coarse sentiment, entity type, document category), loaded on first use from the project-authored emoji-annotations.txt resource.
Assembles one EmojiAnnotation per symbol from bundled facts (EmojiAnnotations), derived facts (EmojiFlags), and optional joined facts (EmojiAnnotationJoin).
The document-category hint of an annotated emoji, one constant per group header of the upstream Unicode emoji-test.txt (Emoji Keyboard/Display Test Data for UTS #51).
A CharSequenceNormalizer implementation that replaces each run of complete emoji with one space.
The bundled emoji/emoticon fold tables (emoji-emoticons.txt) and the sequence substitution shared by EmojiToEmoticonCharSequenceNormalizer and EmoticonToEmojiCharSequenceNormalizer.
One direction table, keyed by the first code point of the source sequence, candidates ordered longest source first so a scan is longest-match.
One fold row: a source code point sequence and its replacement.
The two direction tables produced by EmojiEmoticons.parse(InputStream).
The coarse entity type of an annotated emoji, a small project-authored taxonomy assigned from the subgroup headers of the upstream Unicode emoji-test.txt (Emoji Keyboard/Display Test Data for UTS #51), with documented exceptions: for example the face-smiling and face-concerned subgroups map to EmojiEntityType.FACE and transport-ground maps to EmojiEntityType.VEHICLE.
Generates document features from the emoji annotation layer: for every annotated token the project-authored coarse sentiment score (emojiSentiment=2), the entity type (emojiType=HEART), the document category hint (emojiCategory=SMILEYS_AND_EMOTION), and for flags the ISO 3166 region (emojiRegion=DE).
The derived-facts layer of the emoji annotation record store: decodes flag emoji to ISO 3166 codes purely from the code point sequence, with no data file.
A SentimentContextGenerator that adds emoji annotation features to the default token context: for every annotated token the project-authored coarse sentiment score (emojiSentiment=2), the entity type (emojiType=HEART), the category (emojiCategory=SMILEYS_AND_EMOTION), and for flags the region (emojiRegion=DE).
A SentimentFactory whose context generator adds emoji annotation features (see EmojiSentimentContextGenerator).
A CharSequenceNormalizer that folds emoji to ASCII emoticons, using the bundled emoji-emoticons.txt mapping (for example U+1F642 SLIGHTLY SMILING FACE to :)).
A CharSequenceNormalizer that folds ASCII emoticons to emoji, using the bundled emoji-emoticons.txt mapping (for example :-) to U+1F642 SLIGHTLY SMILING FACE).
ObjectStream to clean up empty lines for empty line separated document streams.
- Skips empty line at training data start
- Transforms multiple empty lines in a row into one
- Replaces white space lines with empty lines
- TODO: Terminates last document with empty line if it is missing

This stream should be used by the components that mark empty lines to mark document boundaries.
Encoding parameter.
Scans CharSequence, StringBuffer, and char[] for the offsets of sentence ending characters.
This class implements the stemming algorithm defined by a snowball script.
EntityLinkers establish connections with external data to enrich extracted entities.
Generates a EntityLinker instances via a properties file configuration.
Properties wrapper for EntityLinker implementations.
An Entry is a StringList which can optionally be mapped to attributes.
 
Parser for the Italian NER training files of the Evalita 2007 and 2009 NER shared tasks.
 
Note: Do not use this class, internal use only!
 
This class encapsulates the variables used in producing probabilities from a model and facilitates passing these variables to the eval method.
 
An abstract base class for evaluators.
Common evaluation parameters.
The context of a decision point during training.
 
Field delimiters and messages shared by FileEventStream, RealValueFileEventStream and SimpleEventStreamBuilder.
The fields of one event line.
A specialized Trainer that is based on a 'EventModelSequence' approach.
 
A specialized Trainer that is based on an Event approach.
Indicates that a certain API feature is not stable and might change with a new release.
Checks the Unicode Extended_Pictographic property of a code point.
The ExtensionLoader is responsible to load extensions to the OpenNLP library.
Exception indicates that an OpenNLP extension could not be loaded.
 
 
Provides the language dependent tokenizer resources: the TokenizerCharacterPolicy that decides which tokens the alphanumeric optimization accepts without further splitting, and the TokenContextGenerator.
Interface for generating features for document categorization.
The FeatureGeneratorResourceProvider provides access to the resources available in the model.
This class provide common utilities for feature generation.
The feature template of the feedforward parser for one sentence: a fixed set of configuration positions whose words, tags, and arc labels are embedded and concatenated into the network input, following Chen and Manning (2014).
The persisted form of a trained FeedforwardDependencyParser: the network weights plus the standard model manifest, serialized and loaded through the same BaseModel machinery as every other tool model.
The neural DependencyParser: an arc-standard decoder over the FeedforwardDependencyModel.
Trains the FeedforwardDependencyModel: oracle-derived transition examples, minibatch AdaGrad over a softmax cross-entropy loss, cube activation, and inverted dropout on the hidden layer, the training recipe of Chen and Manning (2014).
A projective training sample with its arc-standard oracle derivation.
The forward pass, backward pass, gradient buffers, and AdaGrad state shared by local training and beam refinement.
The parsed hyperparameters of one training or refinement run.
The weights of the feedforward transition parser: embeddings for words, tags, and arc labels, one hidden layer with cube activation, and a transition output layer, after Chen and Manning (2014).
Reads and writes a network as a FeedforwardDependencyModel artifact: a four-byte magic, an int format version, the three vocabularies, the transition inventory, the embedding size, and the weight matrices and vectors.
Class for using a file of events as an event stream.
Note: Do not use this class, internal use only!
Provides the ability to read the contents of files contained in an object stream of files.
Abstract base class for filtering streams.
Common evaluation parameters.
This class implements the stemming algorithm defined by a snowball script.
A WordVector implementation that represents the vector as array of float values.
The FMeasure is a utility class for evaluators which measures precision, recall and the resulting f-measure.
Utility class for the OpenNLP formats package.
This class implements the stemming algorithm defined by a snowball script.
A CharSequenceNormalizer that applies Unicode full case folding for case-insensitive matching, as defined by the Default Case Algorithms in Section 3.13 of the Unicode Standard, using the bundled CaseFolding.txt data of the Unicode Character Database.
Interface for a function.
Represents a labeler for nodes which contain traces so that these traces can be predicted by a Parser.
Creates a set of feature generators based on a provided XML descriptor.
 
An generic AbstractModelReader implementation.
An ArtifactSerializer implementation for models.
An generic AbstractModelWriter implementation.
This class implements the stemming algorithm defined by a snowball script.
A CharSequenceNormalizer that transliterates German umlauts and the eszett the way German conventionally expands them (DIN 5007-2): a-umlaut to ae, o-umlaut to oe, u-umlaut to ue, and eszett to ss, with the capital umlauts and the capital eszett (U+1E9E) expanded likewise.
Parser for the GermEval 2014 Named Entity Recognition Shared Task data.
Selects which NER annotation layer to read from the GermEval 2014 data.
Note: Do not use this class, internal use only!
 
A maximum entropy model which has been trained using the Generalized Iterative Scaling (GIS) procedure.
The base class for readers of GIS models.
The base class for writers of GIS models.
An implementation of Generalized Iterative Scaling (GIS).
GloVe is an unsupervised learning algorithm for obtaining vector representations for words.
This class implements the stemming algorithm defined by a snowball script.
Encoder for head rules associated with parsing.
Class for storing the English HeadRules associated with parsing.
 
 
Reads the hex code point notation of Unicode data files and similar code point tables: one code point as hex digits (1F600), a sequence as hex digits separated by whitespace (1F468 200D 1F469), and an inclusive range as two code points joined by two dots (1F3FB..1F3FF).
A StringInterner implementation based on HashMap by Aleksey Shipilëv.
This class implements the stemming algorithm defined by a snowball script.
Affix tables with entry counts and source locations for validation errors.
An entry including the directive name.
A compound flag sequence with optional and repeated elements.
Interprets a flag according to the affix file's FLAG setting.
Non-recursive longest-match input and output conversions.
A conversion with optional word-boundary requirements.
An immutable, in-memory Hunspell-format dictionary loaded from user-supplied .aff and .dic files.
One parsed affix rule of a PFX or SFX block.
The parsed affix file content.
An immutable index of affix rules keyed by the boundary code point of their affix material, answering each lookup by binary search so the per-word scans in HunspellStemmer allocate nothing.
The capitalization classes of a word.
A compound-boundary restriction and optional spelling replacement.
The place a part takes in a compound, deciding which positional flag admits it.
The flag encodings a dictionary may declare with the FLAG directive.
Controls whether unsupported affix directives prevent dictionary loading.
The first occurrence of an unsupported affix directive.
One BREAK declaration: a separator and the anchors that bind it to the start or end of the word.
Opt-in installation of Hunspell .aff/.dic pairs and their license readme from an application-supplied DictionaryCatalog.
A dictionary-backed Stemmer over a HunspellDictionary: a surface form is reduced to the dictionary words it can be derived from by removing one suffix, one prefix, a cross-product combination of both, or an additional affix licensed by a continuation class.
One selected compound-part reading.
A required boundary after a compound spelling substitution.
The shareable handle for Hunspell stemming: holds one immutable HunspellDictionary and hands out HunspellStemmer instances over it.
The default Document implementation: an unmodifiable map from layer key to an unmodifiable annotation list.
This classes indexes string lists.
This class implements the stemming algorithm defined by a snowball script.
Allows repeated reads through a stream for certain model building types.
Generates features if the tokens are recognized by the provided TokenNameFinder.
 
This exception indicates that the provided training data is insufficient to train a desired model.
Classes, fields, or methods annotated &#64;Internal are for OpenNLP internal use only.
This exception indicates that a resource violates the expected data format.
A CharSequenceNormalizer that removes invisible format and bidirectional control characters that add no textual content and are a common source of noise and spoofing (the byte-order mark, zero width space, word joiner, bidi marks/embeddings/overrides/isolates, the invisible math operators, soft hyphen, and the Arabic letter mark).
A structure to hold an Irish Sentence Bank document, which is a collection of tokenized sentences.
 
 
 
Note: Do not use this class, internal use only!
 
Note: Do not use this class, internal use only!
Note: Do not use this class, internal use only!
 
This class implements the stemming algorithm defined by a snowball script.
This class implements the stemming algorithm defined by a snowball script.
A StopCriteria implementation to identify whether the absolute difference between the training accuracy of current and previous iteration is under the defined tolerance.
A StringInterner implementation based on String.intern().
Class for holding the document language and its confidence
Validates language codes against ISO 639 standards.
The interface for LanguageDetector which predicts the Language for a context.
 
 
A context generator interface for LanguageDetector.
Cross validator for LanguageDetector.
A marker interface for evaluating language detectors.
The LanguageDetectorEvaluator measures the performance of the given LanguageDetector with the provided reference LanguageSamples.
Iterator-like class for modeling an event stream of samples.
Default factory used by LanguageDetector.
Implements a learnable LanguageDetector.
 
The LanguageDetectorModel is the model used by a learnable LanguageDetector.
This class reads in string encoded training samples, parses them and outputs LanguageSample objects.
Factory producing OpenNLP lang detector sample streams.
 
A language model can calculate the probability p (between 0 and 1) of a certain sequence of tokens, given its underlying vocabulary.
 
Holds a classified document and its Language.
Stream factory for those streams which carry language.
Stores a per-thread "last result" value for APIs that expose probabilities or other data from the most recent decode call (e.g.
Dictionary-driven segmentation for languages written without spaces: a Viterbi search over the word lattice of a MecabDictionary, minimizing the sum of word costs and connection costs.
One lattice node: a candidate morpheme with its best path cost so far.
Identifies one annotation layer of a Document and carries the type of that layer's annotation values, so reading a layer back is statically typed.
How the annotations of a layer relate to the document text.
The standard layer keys for the results the toolkit produces itself.
 
Note: Do not use this class, internal use only!
 
Represents a lemmatized sentence.
Class for creating an event stream out of data files for training a probabilistic Lemmatizer.
A SequenceStream implementation encapsulating samples.
Reads data for training and testing the Lemmatizer.
The common interface for lemmatizers.
Adapts a Lemmatizer to the document pipeline: reads Layers.SENTENCES, Layers.TOKENS, and Layers.POS_TAGS and provides LemmatizerAnnotator.LEMMAS, one annotation per token on the token's span.
Interface for the context generator used for probabilistic Lemmatizer.
A marker interface for evaluating lemmatizers.
The LemmatizerEvaluator measures the performance of the given Lemmatizer with the provided reference samples.
The factory that provides Lemmatizer default implementation and resources.
A probabilistic Lemmatizer implementation.
The LemmatizerModel is the model used by a learnable Lemmatizer.
Factory producing OpenNLP LemmaSampleStreams.
 
A structure to hold the letsmt document.
A content handler to receive and process SAX events.
 
 
Note: Do not use this class, internal use only!
 
An OffsetAwareNormalizer that collapses runs of Unicode whitespace like WhitespaceCharSequenceNormalizer, but keeps line and paragraph structure: any whitespace run that contains a line break collapses to a single newline (U+000A) instead of a space, and leading and trailing whitespace is trimmed.
Performs line search to find a minimum.
Represents a LineSearch result encapsulating the relevant data at a point in time during computation.
A default, extended Span that holds additional information about a Span.
A StopCriteria implementation to identify whether the difference between the log likelihood of current and previous iteration is under the defined threshold.
This class serves as an adapter for a Logger used within a PrintStream.
Class implementing the probability distribution over labels returned by a classifier as a log of probabilities.
A class implementing the logarithmic Probability for a label.
Finds email addresses in text for UrlCharSequenceNormalizer and classifies whole tokens as email addresses.
The normalized text with the original-text range for each character.
A WordVectorTable implementation that maps tokens to word vectors via a Map.
Implements a markable FileInputStream.
A factory that creates MarkableFileInputStream from a File
A simple marker interface for classes that support or refer to the Masc.MASC_FORMAT.
 
 
A helper class to parse the header (.hdr) files.
Parses MASC identifier and anchor attributes; lists are separated by XML whitespace.
A class to process the MASC Named entity stand-off annotation file
 
Note: Do not use this class, internal use only!
 
A class for parsing MASC's Penn tagging/tokenization stand-off annotation
 
Note: Do not use this class, internal use only!
 
 
A helper class to extract the extract a quark from the corpus file even if it is beyond the bounds of the sentence.
A class to parse the sentence segmentation stand-off annotation.
 
Note: Do not use this class, internal use only!
 
A specialized Span to express tokens in documents.
 
Note: Do not use this class, internal use only!
 
 
Class to parse the word ("quark") segmentation stand-off annotation.
Interface for maximum entropy models.
Calculates the arithmetic mean of values added with the Mean.add(double) method.
An immutable, in-memory dictionary in the MeCab directory format: lexicon entries from the *.csv files, connection costs from matrix.def, character categories from char.def, and unknown-word templates from unk.def, loaded from a user-supplied dictionary directory.
One character category's unknown-word behavior from char.def.
One lexicon or unknown-word entry.
Fetches and unpacks a MeCab-format dictionary archive into a local directory, so the dictionary is acquired by the user at install time and never ships with this library.
A helper class that handles Strings with more than 64k (65535 bytes) in length.
A model type to pattern enumeration.
Enumeration of supported model types.
Utility class for handling of models.
One morpheme from lattice segmentation: the Span it covers in the original text, its surface form, and the feature columns its dictionary entry carries.
Moses is a statistical machine translation system that allows you to automatically train translation models for any language pair.
Factory producing OpenNLP MosesSentenceSampleStream objects.
 
 
 
 
 
 
An extension of Context used to store parameters or expected values associated with this context which can be updated or assigned.
This is a non-thread safe mutable int.
Interface that allows TagDictionary entries to be added and removed.
Specialized parameters for the evaluation of a naive bayes classifier
A MaxentModel implementation of the multinomial Naive Bayes classifier model.
The base class for readers of models.
The base class for NaiveBayesModel writers.
Trains models using the combination of EM algorithm and Naive Bayes classifier which is described in:
Interface for generating the context for a name finder by specifying a set of feature generators.
Adapts a TokenNameFinder to the document pipeline: reads Layers.SENTENCES and Layers.TOKENS, maps the finder's token-index spans to character spans on the original text, and provides Layers.ENTITIES.
This class helps to read the US Census data from the files to build a StringList for each dictionary entry in the name-finder dictionary.
Class for creating an event stream out of data files for training an TokenNameFinder.
A maximum-entropy-based name finder implementation.
The default name finder SequenceValidator implementation.
Encapsulates names for a single unit of text.
The NameSampleDataStream class converts tagged tokens provided by a DataStream to NameSample objects.
Factory producing OpenNLP NameSampleDataStreams.
 
A SequenceStream implementation encapsulating samples.
A stream which removes name samples which do not have a certain type.
Note: Do not use this class, internal use only!
Note: Do not use this class, internal use only!
 
Note: Do not use this class, internal use only!
Note: Do not use this class, internal use only!
 
Evaluates negative log-likelihood and its gradient from DataIndexer.
The Newline SentenceDetector assumes that sentences are line delimited and recognizes one sentence per non-empty line.
A CharSequenceNormalizer that applies Unicode Normalization Form C (canonical composition, UAX #15).
A CharSequenceNormalizer that applies Unicode Normalization Form KC (compatibility composition, UAX #15).
The NGramCharModel can be used to create character ngrams.
Generates ngram features for a document.
Generates an nGram, via an optional separator, and returns the grams as a list of strings
A LanguageModel based on a NGramModel using Stupid Backoff to get the probabilities of the ngrams.
The NGramModel can be used to crate ngrams and character ngrams.
Utility class for ngrams.
 
 
 
Note: Do not use this class, internal use only!
 
The National corpus of Polish (NKJP) format.
A no-op StringInterner implementation, which does not intern.
Per-language normalization settings, mirroring how OpenNLP already selects a Snowball stemmer by language.
A registry of NormalizationProfiles by language, with detection-based fallback: pick the profile for a requested language, or detect the language with a LanguageDetector when it is unspecified.
This class implements the stemming algorithm defined by a snowball script.
A CharSequenceNormalizer implementation that normalizes text in terms of numbers: every maximal run of ASCII digits (0 to 9), that is the longest unbroken stretch of consecutive digits, is replaced by a single space.
A DataReader implementation based on ObjectInputStream.
Reads objects from a stream.
 
 
A CharSequenceNormalizer that can additionally report the Alignment from its normalized output back to the input, so a span found in the normalized text maps to the exact character offsets of the original.
A TokenNameFinder that can additionally report detected spans in the character coordinates of the original input, mapping back through any text normalization applied before detection.
A DataIndexer for maxent model data which handles cutoffs for uncommon contextual predicates and provides a unique integer index for each of the predicates.
A DataIndexer for maxent model data which handles cutoffs for uncommon contextual predicates and provides a unique integer index for each of the predicates and maintains event values.
 
Name Sample Stream parser for the OntoNotes 4.0 named entity files.
Note: Do not use this class, internal use only!
 
Note: Do not use this class, internal use only!
Note: Do not use this class, internal use only!
The definition feature maps the underlying distribution of outcomes.
Routes mutable per-invocation state either to a single owner-thread field or to ThreadLocal storage once multiple threads use the same enclosing instance.
An OffsetAwareNormalizer that unwraps hard-wrapped prose while keeping real paragraph breaks.
A FilterObjectStream which merges text lines into paragraphs.
Evaluates negative log-likelihood and its gradient in parallel.
A ParallelNegLogLikelihood.ComputeTask that is computed in parallel.
Argument checks that report an invalid parameter with an IllegalArgumentException naming that parameter.
 
Data structure for holding parse constituents.
A shift reduce style Parser implementation based on Adwait Ratnaparkhi's 1998 thesis.
Defines common methods for full-syntactic parsers.
A built-attach Parser implementation.
Adapts a constituency Parser to the document pipeline: reads Layers.SENTENCES and Layers.TOKENS and provides ParserAnnotator.PHRASES, one annotation per phrase node of each sentence's parse, carrying the phrase label and the span of its head token.
One phrase of a constituency parse: its label, such as NP or VP, and the span of the token that heads it.
 
The parser chunker SequenceValidator implementation.
A marker interface for evaluating parsers.
Wrapper class for one of four shift-reduce parser event streams.
Wrapper class for one of four built-attach parser event streams.
Enumeration of event types for a Parser.
 
This is the default ParserModel implementation.
 
Enumeration of supported Parser types.
 
Factory producing OpenNLP ParseSampleStreams.
 
Note: Do not use this class, internal use only!
Note: Do not use this class, internal use only!
 
Note: Do not use this class, internal use only!
 
Note: Do not use this class, internal use only!
 
A model implementation based one the perceptron algorithm.
The base class for readers of models.
The base class for PerceptronModel writers.
Trains models using the perceptron algorithm.
Reads a plain text file and returns each line as a String object.
A generic DataReader implementation for plain text files.
A NaiveBayesModelReader that reads models from a plain text format.
A NaiveBayesModelWriter that writes models in a plain text format.
This class implements the stemming algorithm defined by a snowball script.
A thread-safe factory for PorterStemmer instances.
Utility class to handle Portuguese contractions.
This class implements the stemming algorithm defined by a snowball script.
Interface for a BeamSearchContextGenerator used in POS tagging.
Provides a means of determining which tags are valid for a particular word based on a TagDictionary read from a file.
The POSEvaluator measures the performance of the given POSTagger with the provided reference samples.
The POSModel is the model used by a learnable POSTagger.
An ArtifactSerializer implementation for models.
Represents an pos-tagged sentence.
Reads the samples from an Iterator and converts those samples into events which can be used by the maxent library for training.
A SequenceStream implementation encapsulating samples.
 
Defines the format for part-of-speech tagging, i.e.
A mapping implementation for converting between different POS tag formats.
 
The interface for part of speech taggers.
Adapts a POSTagger to the document pipeline: reads Layers.SENTENCES and Layers.TOKENS and provides Layers.POS_TAGS, one tag annotation per token on the token's span.
 
A marker interface for evaluating pos taggers.
The factory that provides POSTagger default implementations and resources.
 
A POS tagging driven feature generator.
A part-of-speech tagger implementation that uses maximum entropy.
Adds the token POS tag as feature.
 
Note: Do not use this class, internal use only!
Note: Do not use this class, internal use only!
 
Note: Do not use this class, internal use only!
Note: Do not use this class, internal use only!
 
A feature generator implementation that generates prefix-based features.
This AdaptiveFeatureGenerator generates features indicating the outcome associated with a previously occurring word.
This AdaptiveFeatureGenerator generates features indicating the outcome associated with two previously occurring words.
This interface allows one to implement a prior distribution for use in maximum entropy model training.
A marker interface for classes with probabilistic capabilities.
Class implementing the probability distribution over labels returned by a classifier.
Class implementing the probability for a label.
A data container encapsulating language detection results.
An ArtifactSerializer implementation for properties.
Creates instances of one service interface from a ProviderSpec.
Thrown if Providers cannot resolve exactly one provider.
Resolves the providers of one SPI.
A configuration file of a class loader.
The providers one ServiceLoader pass of the constructor found, and how many it left out.
The entries of a configuration value, kept to parse a value that does not change only once.
A provider with the name and priority read once at lookup.
Describes what a Provider should create: an optional location, such as a model file, and string options.
Implementation of the Limited memory Broyden-Fletcher-Goldfarb-Shanno algorithm (L-BFGS) which supports L1-, L2-regularization and Elastic Net for solving convex optimization problems.
Evaluate the quality of training parameters.
L2-regularized objective Function.
A maximum entropy model which has been trained via the L-BFGS algorithm , which belongs to the group of Quasi Newton (QN) algorithms.
The base class for readers of QN models.
The base class for writers of models.
A Maxent model trainer using the L-BFGS algorithm.
For measuring model's training accuracy.
A CharSequenceNormalizer that folds typographic quotation marks to their ASCII forms: the single quotes and apostrophes to ' and the double quotes to ".
Class for real-valued events as an event stream.
Class for using a file of real-valued events as an event stream.
A TokenNameFinder implementation based on a series of regular expressions.
Returns a RegexNameFinder based on a selection of defaults or a configuration and a selection of defaults.
Enumeration of typical regex expressions available in OpenNLP.
 
 
This interface makes an Iterator resettable.
 
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 on ResourceInstaller.Limits.Builder.build().
Writes content into the staging directory of ResourceInstaller.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.
This class implements the stemming algorithm defined by a snowball script.
This class implements the stemming algorithm defined by a snowball script.
Represents a generic type of processable elements.
A specialization of ObjectStream that shuffles samples.
A specialization of ObjectStream that skips a number of samples.
Interface for SentenceDetector context generators.
A cross validator for sentence detectors.
 
 
Creates contexts/features for end-of-sentence detection in Thai text.
The interface for sentence detectors, which find the sentence boundaries in a text.
Adapts a SentenceDetector to the document pipeline: provides Layers.SENTENCES from the document text.
 
The SentenceDetectorEvaluator measures the performance of the given SentenceDetector with the provided reference SentenceSamples.
The factory that provides SentenceDetector default implementations and resources
A sentence detector for splitting up raw text into sentences.
An immutable, length-bucketed index over an abbreviation Dictionary.
 
This feature generator creates sentence begin and end features.
The SentenceModel is the model used by a learnable SentenceDetector.
A SentenceSample contains a document with begin indexes of the individual sentences.
This class is a stream filter which reads a sentence by line samples from an ObjectStream and converts them into SentenceSample objects.
Factory producing OpenNLP SentenceSampleStreams.
 
Class for using a Context Generator for Sentiment Analysis.
Class for performing cross validation on the Sentiment Analysis Parser.
Class for creating a document sample
Splits DocumentSample into SentimentSamples.
Reads Sentiment Samples to group them as a document based on the clear adaptive data flag.
 
An sentiment specific EvaluationMonitor to be used by the evaluator.
The SentimentEvaluator measures the performance of the given SentimentME with the provided reference SentimentSamples.
Class for creating events for Sentiment Analysis that is later sent to MaxEnt.
Class for creating sentiment factories for training.
A SentimentDetector implementation for creating and using maximum-entropy-based Sentiment Analysis models.
Class for the basis of the Sentiment Analysis model.
Class for holding text used for sentiment analysis.
Class for converting Strings through Data Stream to SentimentSample using tokenised text.
Factory for creating a sample stream factory for sentiment analysis.
Class for creating a type filter.
Class which models a sequence.
Represents a weighted sequence of outcomes.
A classification model that can label an input Sequence.
A codec for sequences of type SequenceCodec.
Interface for streams of sequences used to train sequence models.
Class which turns a SequenceStream into an event stream.
 
 
A marker interface so that implementing classes can refer to the corresponding ArtifactSerializer implementation.
A SAX style SGML parser.
Defines methods to handle content produced by a SgmlParser.
A Stemmer that is safe to share across threads by routing each call to a per-thread delegate minted from a StemmerFactory.
A CharSequenceNormalizer implementation that shrinks repeated whitespace and repeated characters in text, in three steps: Each run of two or more ASCII whitespace characters (tab, line feed, vertical tab, form feed, carriage return, or space) collapses to a single space.
Enables the detection of OpenNLP models in the classpath via JDK classes By default, this class will search for JAR files starting with "opennlp-models-*".
Builds an in-memory ObjectStream of events from text lines, mainly for tests.
Trains models with sequences using the perceptron algorithm.
A basic Tokenizer implementation which performs tokenization using character classes.
 
Base class for a snowball stemmer
A Stemmer backed by the generated Snowball engines.
 
A thread-safe factory that captures a Snowball stemmer configuration for APIs that accept a StemmerFactory.
A plain, thread-confined stemmer that applies one Snowball engine directly; not thread-safe.
A CharSequenceNormalizer implementation that normalizes social media text: hashtags, user handles, retweet markers, emoticons, and repeated laughter.
Class for storing start and end integer offsets.
 
This class implements the stemming algorithm defined by a snowball script.
Reduces a word to its root form.
Adapts a Stemmer to the document pipeline: stems the token layer and provides StemmerAnnotator.STEMS, one annotation per token on the token's span.
Provides a StemmerAnnotator under the name "stemmer".
A factory that captures a stemmer configuration and creates configured Stemmer instances on demand.
Stop criteria for model training.
A pluggable filter that decides whether a token (or a sequence of tokens) is a stopword that should be removed during downstream text processing.
A Tokenizer decorator which delegates tokenization to a wrapped Tokenizer and then removes any tokens identified as stopwords by the supplied StopwordFilter.
A FilterObjectStream which removes stopwords from each String[] sample produced by an underlying ObjectStream<String[]>.
Static factory for StopwordFilter instances backed by bundled language-specific stopword resources or caller-supplied input streams.
A marker-interface for a String interner implementation.
Provides string interning utility methods.
A StringList is an immutable list of Strings.
Recognizes predefined patterns in strings.
 
One subword unit produced by a SubwordTokenizer, including the model representation and source range.
Splits text into subword units from a fixed model vocabulary, reporting the model id and original-text span for each unit.
A feature generator implementation that generates suffix-based features.
Marks a member with a public contract that is a user-supplied regular expression, for example the patterns given to RegexNameFinder or the alphanumeric Pattern accepted by the tokenizer factories.
This class implements the stemming algorithm defined by a snowball script.
Interface to determine which tags are valid for a particular word based on a tag dictionary.
A forward-only reader for classic v7, POSIX ustar, GNU, and pax tar streams.
One token as a stack of normalization layers.
Builds Terms by segmenting text and applying a configured stack of normalization Dimensions to each token.
A builder for TermAnalyzer.
Exception to terminate the execution of a command line tool.
One entry of a term vector layer: a term, how often it occurs in the document, and where.
Rolls the token layer up into a term vector layer for index consumers: one TermVector per distinct term, carrying the term string, its occurrence count, and (in full mode) the occurrence offsets.
How much each TermVector records.
Encodes text into a fixed-length vector.
The SPI for TextEmbedder providers.
Entry point for composing normalization steps into a single CharSequenceNormalizer.
A fluent builder that appends normalization steps in order and composes them into one CharSequenceNormalizer via TextNormalizer.Builder.build().
Classes, fields, or methods annotated &#64;ThreadSafe are safe to use in multithreading contexts.
Deprecated.
As of OPENNLP-1816, ChunkerME is itself thread-safe.
Deprecated.
As of OPENNLP-1816, LanguageDetectorME is itself thread-safe.
Deprecated.
As of OPENNLP-1816, LemmatizerME is itself thread-safe.
Deprecated.
As of OPENNLP-1816, NameFinderME is itself thread-safe.
Deprecated.
As of OPENNLP-1816, POSTaggerME is itself thread-safe.
Deprecated.
As of OPENNLP-1816, SentenceDetectorME is itself thread-safe.
Deprecated.
As of OPENNLP-1816, TokenizerME is itself thread-safe.
Generates features for the class of a token.
Interface for context generators required for tokenizer implementations.
Generates a feature which contains a token itself.
The interface for tokenizers, which segment a string into its tokens.
Adapts a Tokenizer to the document pipeline: provides Layers.TOKENS.
An immutable policy for testing token eligibility against explicit character sets.
A cross validator for tokenizers.
A marker interface for evaluating tokenizers.
The TokenizerEvaluator measures the performance of the given Tokenizer with the provided reference samples.
The factory that provides Tokenizer default implementation and resources.
Checks a candidate token against a whole-match regular expression, for factories and event streams configured with a custom alphanumeric Pattern.
A Tokenizer for converting raw text into separated tokens.
 
The TokenizerModel is the model used by a learnable Tokenizer.
The TokenizerStream uses a Tokenizer to tokenize the input string and output samples.
The interface for name finders which provide name tags for a sequence of tokens.
Cross validator for TokenNameFinder.
 
Reads samples to group them as a document based on the clear adaptive data flag.
A marker interface for evaluating name finders.
The TokenNameFinderEvaluator measures the performance of the given TokenNameFinder with the provided reference samples.
The factory that provides TokenNameFinder default implementations and resources.
The TokenNameFinderModel is the model used by a learnable TokenNameFinder.
 
Partitions tokens into sub-tokens based on character classes and generates class features for each of the sub-tokens and combinations of those sub-tokens.
A TokenSample is text with token spans.
Class which produces an Iterator<TokenSample> from a file of whitespace delimited tokens.
This class is a stream filter which reads in string encoded samples and creates samples out of them.
Factory producing OpenNLP TokenSampleStreams.
 
 
This class reads the samples via an Iterator and converts the samples into events which can be used by the maxent library for training.
Represents a common base for training implementations.
A factory to initialize Trainer instances depending on a trainer type configured via Parameters.
 
Configuration used for model training.
Enumeration of Training measures.
Declares and handles default parameters used for or during training models.
An interface to capture training progress of a model.
Common training parameters.
One action of the arc-standard transition system: shift the next buffer token onto the stack, or attach one of the two topmost stack tokens to the other under a relation label.
The kinds of arc-standard action.
Adds trigram features based on tokens and token classes.
This class implements the stemming algorithm defined by a snowball script.
An ObjectStream implementation for the Twenty Newsgroups text corpus.
Note: Do not use this class, internal use only!
 
Collecting event and context counts by making two passes over the events.
 
An InputStream which cannot be closed.
Reference data for Unicode dashes, plus O(1) membership lookups.
The Unicode general category of a dash code point.
One Unicode dash code point and its reference attributes.
Finds complete emoji at a position of a text, from the bundled inventory of Unicode Emoji 18.0 sequences.
A trie node: the code points that may follow, and whether a sequence ends here.
The result of one trie walk.
Reference data for Unicode whitespace, plus O(1) membership lookups.
Line-breaking behavior, mirroring the "Notes" column of the reference table.
Unicode general category for a whitespace or related code point.
One related code point that is commonly confused with whitespace but is not (White_Space=no).
One Unicode whitespace code point and its reference attributes.
Provide a maximum entropy model with a uniform Prior.
Frequency-driven segmentation for Chinese and similar scripts: a Viterbi search that maximizes the summed log-probability of the words in a user-supplied frequency lexicon, with unlisted characters falling back to single-character words.
One immutable trie node: children are a sorted character array with a parallel node array, found by binary search, so a descent avoids boxing a Character.
One mutable trie node during construction, copied into a UnigramSegmenter.WordTrie.
One pending post-order traversal step.
Thrown if no available provider supports a spec, or none of them has the configured name.
A CharSequenceNormalizer implementation that replaces each http or https URL and each email address with one space.
 
The Version class represents the OpenNLP Tools library version.
A CharSequenceNormalizer that collapses each run of Unicode whitespace to a single ASCII space and trims the edges, reusing the cursor based CharClass.whitespace() engine.
Selects the whitespace definition used by StringUtil.isWhitespace(char) and StringUtil.isWhitespace(int): the Unicode White_Space property, or OpenNLP's legacy definition from 1.x/2.x.
Splits a text into the maximal stretches that contain no whitespace, as judged by StringUtil.isWhitespace(char).
Receives one whitespace-free stretch of a text.
A basic Tokenizer implementation which performs tokenization using white spaces.
This stream formats ObjectStream of samples into whitespace separated token strings.
Matches file names against the wildcards accepted by AbstractClassPathModelFinder.matchesWildcard(java.net.URL, String).
Generates previous (left-sided) and next (right-sided) features for a given AdaptiveFeatureGenerator.
The Unicode Word_Break property values, used by the UAX #29 word boundary algorithm.
Looks up the Unicode Word_Break property of a code point.
 
 
 
An AdaptiveFeatureGenerator implementation of a word cluster feature generator.
Defines a word cluster GeneratorFactory; it reads an element containing 'w2vwordcluster' as a tag name.
A SubwordTokenizer implementing the BERT tokenization stages: basic tokenization (control removal, whitespace normalization, CJK isolation, optional lower casing with accent stripping, punctuation isolation) followed by greedy longest-match wordpiece segmentation.
One node of the vocabulary trie.
A vocabulary match and the exclusive end offset in normalized text.
Finds vocabulary entries without creating strings for candidate lengths.
A Tokenizer implementation which performs tokenization using word pieces.
Finds word boundaries in text using the Unicode Text Segmentation algorithm (UAX #29), rules WB1 through WB999.
 
Receives each word segment as the half-open character range [start, end).
A stream filter which reads a sentence per line that contains words and tags in word_tag format and outputs a POSSample objects.
Note: Do not use this class, internal use only!
 
A word token produced by WordTokenizer: the character Span into the source text together with its WordType.
A word tokenizer built on the Unicode Text Segmentation algorithm (UAX #29).
Receives each word token as a character range and its type, with no allocation.
The category of a word token.
A word vector.
A table that maps tokens to word vectors.
 
Creates XML parsers that process untrusted input securely.
Holds the shared StAX factory.