Uses of Class
opennlp.tools.util.Span
Packages that use Span
Package
Description
-
Uses of Span in opennlp.tools.chunker
Methods in opennlp.tools.chunker that return SpanModifier and TypeMethodDescriptionSpan[]Chunker.chunkAsSpans(String[] toks, String[] tags) Span[]ChunkSample.getPhrasesAsSpanList()static Span[]ChunkSample.phrasesAsSpanList(String[] aSentence, String[] aTags, String[] aPreds) Create arrays ofspansof phrases. -
Uses of Span in opennlp.tools.entitylinker
Classes in opennlp.tools.entitylinker with type parameters of type SpanModifier and TypeInterfaceDescriptioninterfaceEntityLinker<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.namefind
Methods in opennlp.tools.namefind that return SpanModifier and TypeMethodDescriptionSpan[][]Finds tokensspansfor the specified document of sentences and their tokens.Span[]Generates name tags for the given sequence, typically a sentence, returningtoken spansfor any identified names.Span[]OffsetMappingNameFinder.findInOriginal(String[] tokens) Finds names and returns theirspansin the character coordinates of the original input, regardless of any normalization applied before detection.Span[]NameSample.getNames()Constructors in opennlp.tools.namefind with parameters of type SpanModifierConstructorDescriptionNameSample(String[] sentence, Span[] names, boolean clearAdaptiveData) Initializes aNameSampleinstance with given parameters.NameSample(String[] sentence, Span[] names, String[][] additionalContext, boolean clearAdaptiveData) Initializes aNameSampleinstance with given parameters.NameSample(String id, String[] sentence, Span[] names, String[][] additionalContext, boolean clearAdaptiveData) Initializes aNameSampleinstance 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 voidUtility method to insert named entities.Constructors in opennlp.tools.parser with parameters of type SpanModifierConstructorDescriptionConstituent(String label, Span span) Initializes anodefor this specifiedtextandspanof the specifiedtypewith probabilitypand the headindex.Initializes anodefor this specifiedtextandspanof the specifiedtypewith probabilitypand the headindex. -
Uses of Span in opennlp.tools.sentdetect
Methods in opennlp.tools.sentdetect that return SpanModifier and TypeMethodDescriptionSpan[]SentenceSample.getSentences()Span[]SentenceDetector.sentPosDetect(CharSequence s) Detects sentences in a character sequence.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[]BertTokenizer.tokenizePos(String text) Not supported: wordpiece tokens (subwords,##continuations and special tokens) have no faithful character spans in the original text.Span[]Tokenizer.tokenizePos(String s) Finds the boundaries of atomic parts in a string.Span[]WhitespaceTokenizer.tokenizePos(String d) Span[]WordpieceTokenizer.tokenizePos(String text) Not supported: wordpiece tokens (subwords,##continuations and special tokens) have no faithful character spans in the original 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 TypeMethodDescriptionintCompares the specifiedSpanto the current span.booleanIdenticalspansare considered to contain each other.booleanChecks if the specifiedSpancrosses this span.T[]booleanSpan.intersects(Span s) Checks if the specifiedSpanintersects with this span.static String[]Span.spansToStrings(Span[] spans, CharSequence s) static String[]Span.spansToStrings(Span[] spans, String[] tokens) booleanSpan.startsWith(Span s) Constructors in opennlp.tools.util with parameters of type Span -
Uses of Span in opennlp.tools.util.normalizer
Methods in opennlp.tools.util.normalizer that return SpanModifier and TypeMethodDescriptionAlignedText.toNormalizedSpan(int originalStart, int originalEnd) Maps a span of the original text forward to the normalized text.Alignment.toNormalizedSpan(int originalStartOffset, int originalEndOffset) Maps a half-open span of the original text to the half-open span of the normalized text that covers it.AlignedText.toOriginalSpan(int normalizedStart, int normalizedEnd) Maps a span of the normalized text back to the tightest span of the original text.Alignment.toOriginalSpan(int normalizedStart, int normalizedEnd) Maps a half-open span of the normalized text to the tightest half-open span of the original text that produced it.Methods in opennlp.tools.util.normalizer that return types with arguments of type SpanModifier and TypeMethodDescriptionCharClass.splitSpans(CharSequence text) Splits text into the maximal runs of non-member code points, as character spans into the original text.