Uses of Class
opennlp.tools.util.Span
Packages that use Span
Package
Description
Package related to finding non-recursive syntactic annotation such as noun phrase chunks.
Package related to linking entities to external data sources.
Experimental package related to the corpus format used by the "brat rapid annotation tool" (brat).
Experimental package related to the Irish Sentence Bank format.
Experimental package related to the
MASC
corpus format.Experimental package related to the National corpus of Polish
NKJP
format.Package related to finding proper names and numeric amounts.
Package containing common code for performing full syntactic parsing.
Package related to identifying sentence boundaries.
Contains classes related to finding token or words in a string.
Package containing utility data structures and algorithms used by multiple other packages.
-
Uses of Span in opennlp.tools.chunker
Methods in opennlp.tools.chunker that return SpanModifier and TypeMethodDescriptionSpan[]
Chunker.chunkAsSpans
(String[] toks, String[] tags) Span[]
ChunkerME.chunkAsSpans
(String[] toks, String[] tags) Span[]
ChunkSample.getPhrasesAsSpanList()
static Span[]
ChunkSample.phrasesAsSpanList
(String[] aSentence, String[] aTags, String[] aPreds) Create arrays ofspans
of phrases. -
Uses of Span in opennlp.tools.cmdline.chunker
Methods in opennlp.tools.cmdline.chunker that return SpanModifier and TypeMethodDescriptionprotected Span[]
ChunkerDetailedFMeasureListener.asSpanArray
(ChunkSample sample) -
Uses of Span in opennlp.tools.cmdline.namefind
Methods in opennlp.tools.cmdline.namefind that return SpanModifier and TypeMethodDescriptionprotected Span[]
TokenNameFinderDetailedFMeasureListener.asSpanArray
(NameSample sample) -
Uses of Span in opennlp.tools.entitylinker
Classes in opennlp.tools.entitylinker with type parameters of type SpanModifier and TypeInterfaceDescriptioninterface
EntityLinker<T extends Span>
EntityLinkers establish connections with external data to enrich extracted entities.Subclasses of Span in opennlp.tools.entitylinkerMethods in opennlp.tools.entitylinker with parameters of type SpanModifier and TypeMethodDescriptionEntityLinker.find
(String doctext, Span[] sentences, Span[][] tokensBySentence, Span[][] namesBySentence) Links an entire document of named entities to an external source.EntityLinker.find
(String doctext, Span[] sentences, Span[][] tokensBySentence, Span[][] namesBySentence, int sentenceIndex) Links the names that correspond to the tokens[] spans.Constructors in opennlp.tools.entitylinker with parameters of type Span -
Uses of Span in opennlp.tools.formats.brat
Methods in opennlp.tools.formats.brat that return Span -
Uses of Span in opennlp.tools.formats.irishsentencebank
Methods in opennlp.tools.formats.irishsentencebank that return SpanModifier and TypeMethodDescriptionSpan[]
IrishSentenceBankDocument.IrishSentenceBankSentence.getTokens()
Constructors in opennlp.tools.formats.irishsentencebank with parameters of type SpanModifierConstructorDescriptionIrishSentenceBankSentence
(String src, String trans, String orig, Span[] toks, IrishSentenceBankDocument.IrishSentenceBankFlex[] flx) -
Uses of Span in opennlp.tools.formats.masc
Subclasses of Span in opennlp.tools.formats.mascModifier and TypeClassDescriptionclass
class
class
Methods in opennlp.tools.formats.masc that return types with arguments of type SpanModifier and TypeMethodDescriptionMascSentence.getNamedEntities()
MascSentence.getTokensSpans()
Retrieves the boundaries of individual tokens. -
Uses of Span in opennlp.tools.formats.nkjp
Methods in opennlp.tools.formats.nkjp that return Span -
Uses of Span in opennlp.tools.namefind
Methods in opennlp.tools.namefind that return SpanModifier and TypeMethodDescriptionSpan[]
Span[]
static Span[]
NameFinderME.dropOverlappingSpans
(Span[] spans) Removesspans
with are intersecting or crossing in any way.Span[]
Span[][]
Finds tokensspans
for the specified document of sentences and their tokens.Span[]
Span[]
Generates name tags for the given sequence, typically a sentence, returningtoken spans
for any identified names.Span[]
Findsspans
with character indices, rather than word.Span[]
Span[]
Generates name tags for the given sequence, typically a sentence, returningtoken spans
for any identified names.Span[]
NameSample.getNames()
Methods in opennlp.tools.namefind with parameters of type SpanModifier and TypeMethodDescriptionstatic Span[]
NameFinderME.dropOverlappingSpans
(Span[] spans) Removesspans
with are intersecting or crossing in any way.String[]
String[]
static String[]
NameFinderEventStream.generateOutcomes
(Span[] names, String type, int length) Deprecated, for removal: This API element is subject to removal in a future version.double[]
Retrieves 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.Constructors in opennlp.tools.namefind with parameters of type SpanModifierConstructorDescriptionNameSample
(String[] sentence, Span[] names, boolean clearAdaptiveData) Initializes aNameSample
instance with given parameters.NameSample
(String[] sentence, Span[] names, String[][] additionalContext, boolean clearAdaptiveData) Initializes aNameSample
instance with given parameters.NameSample
(String id, String[] sentence, Span[] names, String[][] additionalContext, boolean clearAdaptiveData) Initializes aNameSample
instance with given parameters. -
Uses of Span in opennlp.tools.parser
Methods in opennlp.tools.parser that return SpanModifier and TypeMethodDescriptionConstituent.getSpan()
Returns the span of the constituent.Parse.getSpan()
Methods in opennlp.tools.parser with parameters of type SpanModifier and TypeMethodDescriptionstatic void
Utility method to insert named entities.Constructors in opennlp.tools.parser with parameters of type SpanModifierConstructorDescriptionConstituent
(String label, Span span) Initializes anode
for this specifiedtext
andspan
of the specifiedtype
with probabilityp
and the headindex
.Initializes anode
for this specifiedtext
andspan
of the specifiedtype
with probabilityp
and the headindex
. -
Uses of Span in opennlp.tools.sentdetect
Methods in opennlp.tools.sentdetect that return SpanModifier and TypeMethodDescriptionSpan[]
SentenceSample.getSentences()
Span[]
NewlineSentenceDetector.sentPosDetect
(CharSequence s) Span[]
SentenceDetector.sentPosDetect
(CharSequence s) Detects sentences in a character sequence.Span[]
SentenceDetectorME.sentPosDetect
(CharSequence s) Detects the position of the first words of sentences in aCharSequence
.Span[]
ThreadSafeSentenceDetectorME.sentPosDetect
(CharSequence s) Constructors in opennlp.tools.sentdetect with parameters of type SpanModifierConstructorDescriptionSentenceSample
(CharSequence document, Span... sentences) Initializes the current instance. -
Uses of Span in opennlp.tools.tokenize
Methods in opennlp.tools.tokenize that return SpanModifier and TypeMethodDescriptionSpan[]
TokenSample.getTokenSpans()
Span[]
SimpleTokenizer.tokenizePos
(String s) Span[]
ThreadSafeTokenizerME.tokenizePos
(String s) Span[]
Tokenizer.tokenizePos
(String s) Finds the boundaries of atomic parts in a string.Span[]
TokenizerME.tokenizePos
(String d) Tokenizes the string.Span[]
WhitespaceTokenizer.tokenizePos
(String d) Span[]
WordpieceTokenizer.tokenizePos
(String text) Constructors in opennlp.tools.tokenize with parameters of type SpanModifierConstructorDescriptionTokenSample
(String text, Span[] tokenSpans) Initializes ainstance
. -
Uses of Span in opennlp.tools.util
Methods in opennlp.tools.util that return SpanMethods in opennlp.tools.util with parameters of type SpanModifier and TypeMethodDescriptionint
Compares the specifiedSpan
to the current span.boolean
Identicalspans
are considered to contain each other.boolean
Checks if the specifiedSpan
crosses this span.T[]
boolean
Span.intersects
(Span s) Checks if the specifiedSpan
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) Constructors in opennlp.tools.util with parameters of type Span
BioCodec
implementation of the SequenceValidator instead!