Package | Description |
---|---|
opennlp.tools.chunker |
Package related to finding non-recursive syntactic annotation such as noun phrase chunks.
|
opennlp.tools.cmdline | |
opennlp.tools.cmdline.chunker | |
opennlp.tools.cmdline.namefind | |
opennlp.tools.coref.mention |
Package related to the modeling mentions for coreference resolution.
|
opennlp.tools.coref.sim |
Package related to the modeling mention similarity for coreference resolution.
|
opennlp.tools.formats.muc | |
opennlp.tools.namefind |
Package related to finding proper names and numeric amounts.
|
opennlp.tools.parser |
Package containing common code for performing full syntactic parsing.
|
opennlp.tools.sentdetect |
Package related to identifying sentece boundries.
|
opennlp.tools.tokenize |
Contains classes related to finding token or words in a string.
|
opennlp.tools.util |
Package containing utility data structures and algorithms used by multiple other packages.
|
opennlp.uima.namefind |
Package related to finding proper names and numeric amounts.
|
opennlp.uima.sentdetect |
Package related to identifying sentece boundries.
|
opennlp.uima.tokenize |
Package related to finding tokens or word segments.
|
Modifier and Type | Method and Description |
---|---|
Span[] |
Chunker.chunkAsSpans(String[] toks,
String[] tags)
Generates tagged chunk spans for the given sequence returning the result in a span array.
|
Span[] |
ChunkerME.chunkAsSpans(String[] toks,
String[] tags) |
Span[] |
ChunkSample.getPhrasesAsSpanList()
Gets the phrases as an array of spans
|
static Span[] |
ChunkSample.phrasesAsSpanList(String[] aSentence,
String[] aTags,
String[] aPreds)
Static method to create arrays of spans of phrases
|
Modifier and Type | Method and Description |
---|---|
protected abstract Span[] |
DetailedFMeasureListener.asSpanArray(T sample) |
Modifier and Type | Method and Description |
---|---|
protected void |
EvaluationErrorPrinter.printError(Span[] references,
Span[] predictions,
T referenceSample,
T predictedSample,
String sentence) |
protected void |
EvaluationErrorPrinter.printError(Span[] references,
Span[] predictions,
T referenceSample,
T predictedSample,
String sentence) |
protected void |
EvaluationErrorPrinter.printError(Span[] references,
Span[] predictions,
T referenceSample,
T predictedSample,
String[] sentenceTokens) |
protected void |
EvaluationErrorPrinter.printError(Span[] references,
Span[] predictions,
T referenceSample,
T predictedSample,
String[] sentenceTokens) |
Modifier and Type | Method and Description |
---|---|
protected Span[] |
ChunkerDetailedFMeasureListener.asSpanArray(ChunkSample sample) |
Modifier and Type | Method and Description |
---|---|
protected Span[] |
TokenNameFinderDetailedFMeasureListener.asSpanArray(NameSample sample) |
Modifier and Type | Method and Description |
---|---|
Span |
Mention.getHeadSpan()
Returns the character offsets for the head of this extent.
|
Span |
MentionContext.getIndexSpan()
Returns a sentence-based token span for this mention.
|
Span |
Parse.getSpan()
Returns the character offsets of this parse node.
|
Span |
Mention.getSpan()
Returns the character offsets for this extent.
|
Span |
DefaultParse.getSpan() |
Constructor and Description |
---|
Mention(Span span,
Span headSpan,
int entityId,
Parse parse,
String extentType) |
Mention(Span span,
Span headSpan,
int entityId,
Parse parse,
String extentType,
String nameType) |
MentionContext(Span span,
Span headSpan,
int entityId,
Parse parse,
String extentType,
String nameType,
int mentionIndex,
int mentionsInSentence,
int mentionIndexInDocument,
int sentenceIndex,
HeadFinder headFinder) |
Constructor and Description |
---|
Context(Span span,
Span headSpan,
int entityId,
Parse parse,
String extentType,
String nameType,
HeadFinder headFinder) |
Modifier and Type | Method and Description |
---|---|
static boolean |
MucMentionInserterStream.addMention(int id,
Span mention,
Parse[] tokens) |
Modifier and Type | Method and Description |
---|---|
static Span[] |
NameFinderME.dropOverlappingSpans(Span[] spans)
Removes spans with are intersecting or crossing in anyway.
|
Span[] |
NameFinderME.find(String[] tokens) |
Span[] |
TokenNameFinder.find(String[] tokens)
Generates name tags for the given sequence, typically a sentence, returning token spans for any identified names.
|
Span[] |
RegexNameFinder.find(String[] tokens) |
Span[] |
DictionaryNameFinder.find(String[] textTokenized) |
Span[][] |
DocumentNameFinder.find(String[][] document)
Returns tokens span for the specified document of sentences and their tokens.
|
Span[] |
NameFinderME.find(String[] tokens,
String[][] additionalContext)
Generates name tags for the given sequence, typically a sentence,
returning token spans for any identified names.
|
Span[] |
NameSample.getNames() |
Modifier and Type | Method and Description |
---|---|
static Span[] |
NameFinderME.dropOverlappingSpans(Span[] spans)
Removes spans with are intersecting or crossing in anyway.
|
static String[] |
NameFinderEventStream.generateOutcomes(Span[] names,
String type,
int length)
Generates the name tag outcomes (start, continue, other) for each token in a sentence
with the specified length using the specified name spans.
|
double[] |
NameFinderME.probs(Span[] spans)
Returns an array of probabilities for each of the specified spans which is the arithmetic mean
of the probabilities for each of the outcomes which make up the span.
|
Constructor and Description |
---|
NameSample(String[] sentence,
Span[] names,
boolean clearAdaptiveData) |
NameSample(String[] sentence,
Span[] names,
String[][] additionalContext,
boolean clearAdaptiveData)
Initializes the current instance.
|
Modifier and Type | Method and Description |
---|---|
Span |
Constituent.getSpan()
Returns the span of the constituent.
|
Span |
Parse.getSpan()
Returns the character offsets for this constituent.
|
Modifier and Type | Method and Description |
---|---|
static void |
Parse.addNames(String tag,
Span[] names,
Parse[] tokens)
Utility method to inserts named entities.
|
Constructor and Description |
---|
Constituent(String label,
Span span) |
Parse(String text,
Span span,
String type,
double p,
int index)
Creates a new parse node for this specified text and span of the specified type with the specified probability
and the specified head index.
|
Parse(String text,
Span span,
String type,
double p,
Parse h)
Creates a new parse node for this specified text and span of the specified type with the specified probability
and the specified head and head index.
|
Modifier and Type | Method and Description |
---|---|
Span[] |
SentenceSample.getSentences()
Retrieves the sentences.
|
Span[] |
SentenceDetector.sentPosDetect(String s)
Sentence detect a string.
|
Span[] |
SentenceDetectorME.sentPosDetect(String s)
Detect the position of the first words of sentences in a String.
|
Constructor and Description |
---|
SentenceSample(String document,
Span... sentences)
Initializes the current instance.
|
Modifier and Type | Method and Description |
---|---|
Span[] |
TokenSample.getTokenSpans()
Retrieves the token spans.
|
Span[] |
SimpleTokenizer.tokenizePos(String s) |
Span[] |
TokenizerME.tokenizePos(String d)
Tokenizes the string.
|
Span[] |
Tokenizer.tokenizePos(String s)
Finds the boundaries of atomic parts in a string.
|
Span[] |
WhitespaceTokenizer.tokenizePos(String d) |
Constructor and Description |
---|
TokenSample(String text,
Span[] tokenSpans)
Initializes the current instance.
|
Modifier and Type | Method and Description |
---|---|
int |
Span.compareTo(Span s)
Compares the specified span to the current span.
|
boolean |
Span.contains(Span s)
Returns true if the specified span is contained by this span.
|
boolean |
Span.crosses(Span s)
Returns true is the specified span crosses this span.
|
boolean |
Span.intersects(Span s)
Returns true if the specified span intersects with this span.
|
static String[] |
Span.spansToStrings(Span[] spans,
CharSequence s)
|
static String[] |
Span.spansToStrings(Span[] spans,
String[] tokens) |
boolean |
Span.startsWith(Span s)
Returns true if the specified span is the begin of this span and the
specified span is contained in this span.
|
Constructor and Description |
---|
Span(Span span,
int offset)
Initializes a new Span object with an existing Span
which is shifted by an offset.
|
Modifier and Type | Method and Description |
---|---|
protected Span[] |
NameFinder.find(org.apache.uima.cas.CAS cas,
String[] tokens) |
protected Span[] |
DictionaryNameFinder.find(org.apache.uima.cas.CAS cas,
String[] tokens) |
Modifier and Type | Method and Description |
---|---|
protected void |
NameFinder.postProcessAnnotations(Span[] detectedNames,
org.apache.uima.cas.text.AnnotationFS[] nameAnnotations) |
Modifier and Type | Method and Description |
---|---|
protected Span[] |
SentenceDetector.detectSentences(String text) |
protected abstract Span[] |
AbstractSentenceDetector.detectSentences(String text) |
Modifier and Type | Method and Description |
---|---|
protected Span[] |
SimpleTokenizer.tokenize(org.apache.uima.cas.CAS cas,
org.apache.uima.cas.text.AnnotationFS sentence) |
protected Span[] |
Tokenizer.tokenize(org.apache.uima.cas.CAS cas,
org.apache.uima.cas.text.AnnotationFS sentence) |
protected Span[] |
WhitespaceTokenizer.tokenize(org.apache.uima.cas.CAS cas,
org.apache.uima.cas.text.AnnotationFS sentence) |
protected abstract Span[] |
AbstractTokenizer.tokenize(org.apache.uima.cas.CAS cas,
org.apache.uima.cas.text.AnnotationFS sentence) |
Modifier and Type | Method and Description |
---|---|
protected void |
Tokenizer.postProcessAnnotations(Span[] tokens,
org.apache.uima.cas.text.AnnotationFS[] tokenAnnotations) |
protected void |
AbstractTokenizer.postProcessAnnotations(Span[] tokens,
org.apache.uima.cas.text.AnnotationFS[] tokenAnnotations) |
Copyright © 2015 The Apache Software Foundation. All rights reserved.