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[]ChunkerME.chunkAsSpans(String[] toks, String[] tags) Span[]ThreadSafeChunkerME.chunkAsSpans(String[] toks, String[] tags) Deprecated.Span[]ChunkSample.getPhrasesAsSpanList()static Span[]ChunkSample.phrasesAsSpanList(String[] aSentence, String[] aTags, String[] aPreds) Create arrays ofspansof phrases. -
Uses of Span in opennlp.tools.document
Fields in opennlp.tools.document declared as SpanModifier and TypeFieldDescriptionprivate final SpanAnnotation.spanThe field for thespanrecord component.Methods in opennlp.tools.document that return SpanModifier and TypeMethodDescriptionAnnotation.span()Returns the value of thespanrecord component.static SpanDocumentAnnotators.toCharacterSpan(List<Annotation<String>> tokens, int first, int count, Span span, String source) Maps a span over one sentence's tokens onto the character span those tokens cover.Methods in opennlp.tools.document with parameters of type SpanModifier and TypeMethodDescriptionstatic SpanDocumentAnnotators.toCharacterSpan(List<Annotation<String>> tokens, int first, int count, Span span, String source) Maps a span over one sentence's tokens onto the character span those tokens cover.Constructors in opennlp.tools.document with parameters of type Span -
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.formats
Methods in opennlp.tools.formats that return SpanModifier and TypeMethodDescription(package private) static Spanprivate static Span(package private) static SpanMethods in opennlp.tools.formats that return types with arguments of type SpanModifier and TypeMethodDescriptionGermEval2014NameSampleStream.convertTagsToSpans(List<String> tags) -
Uses of Span in opennlp.tools.formats.brat
Fields in opennlp.tools.formats.brat declared as SpanMethods in opennlp.tools.formats.brat that return SpanMethods in opennlp.tools.formats.brat with parameters of type SpanModifier and TypeMethodDescription(package private) BratAnnotationBratAnnotationStream.AnnotatorNoteParser.parse(Span[] tokens, CharSequence line) (package private) BratAnnotationBratAnnotationStream.AttributeAnnotationParser.parse(Span[] values, CharSequence line) (package private) BratAnnotationBratAnnotationStream.BratAnnotationParser.parse(Span[] tokens, CharSequence line) (package private) BratAnnotationBratAnnotationStream.EventAnnotationParser.parse(Span[] tokens, CharSequence line) (package private) BratAnnotationBratAnnotationStream.RelationAnnotationParser.parse(Span[] tokens, CharSequence line) (package private) BratAnnotationBratAnnotationStream.SpanAnnotationParser.parse(Span[] values, CharSequence line) Constructors in opennlp.tools.formats.brat with parameters of type SpanModifierConstructorDescription(package private)SpanAnnotation(String id, String type, Span[] spans, String coveredText) -
Uses of Span in opennlp.tools.formats.irishsentencebank
Fields in opennlp.tools.formats.irishsentencebank declared as SpanModifier and TypeFieldDescriptionprivate final Span[]IrishSentenceBankDocument.IrishSentenceBankSentence.tokensMethods 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 TypeClassDescriptionclassclassclassFields in opennlp.tools.formats.masc with type parameters of type SpanMethods in opennlp.tools.formats.masc that return SpanModifier and TypeMethodDescription(package private) static SpanMascIdentifiers.parseAnchors(String anchors) Parses the two ordered, nonnegative offsets of a contiguous text region, each written in ASCII digits only, asMascIdentifiers.parseId(String, String)reads an identifier number.Methods in opennlp.tools.formats.masc that return types with arguments of type SpanModifier and TypeMethodDescriptionMascSentenceParser.getAnchors()MascSentence.getNamedEntities()MascSentence.getTokensSpans()Retrieves the boundaries of individual tokens.MascDocument.parseSentences(InputStream f_s) Parses the sentence annotation file, align it with the raw textMethod parameters in opennlp.tools.formats.masc with type arguments of type SpanModifier and TypeMethodDescriptionprivate static List<MascSentence> Combines the raw text with annotations that every file should have. -
Uses of Span in opennlp.tools.formats.muc
Fields in opennlp.tools.formats.muc with type parameters of type Span -
Uses of Span in opennlp.tools.formats.nkjp
Methods in opennlp.tools.formats.nkjp that return Span -
Uses of Span in opennlp.tools.namefind
Fields in opennlp.tools.namefind with type parameters of type SpanMethods in opennlp.tools.namefind that return SpanModifier and TypeMethodDescriptionSpan[]Span[]static Span[]NameFinderME.dropOverlappingSpans(Span[] spans) Removesspanswith are intersecting or crossing in any way.Span[]Span[][]Finds tokensspansfor the specified document of sentences and their tokens.Span[]Span[]Generates name tags for the given sequence, typically a sentence, returningtoken spansfor any identified names.Span[]Findsspanswith character indices, rather than word.Span[]Span[]Deprecated.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.private Span[]RegexNameFinder.getAnnotations(String text) Span[]NameSample.getNames()private Span[]Sets probabilities for the spans.Methods in opennlp.tools.namefind with parameters of type SpanModifier and TypeMethodDescriptionstatic Span[]NameFinderME.dropOverlappingSpans(Span[] spans) Removesspanswith 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.private voidNameFinderEventStream.overrideType(Span[] names) 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.private Span[]Sets probabilities for the spans.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
Fields in opennlp.tools.parser declared as SpanModifier and TypeFieldDescriptionprivate final SpanParserAnnotator.Phrase.headThe field for theheadrecord component.private final SpanConstituent.spanprivate SpanParse.spanThe character offsets into the text for this constituent.Methods in opennlp.tools.parser that return SpanModifier and TypeMethodDescriptionConstituent.getSpan()Returns the span of the constituent.Parse.getSpan()ParserAnnotator.Phrase.head()Returns the value of theheadrecord component.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.Validates the phrase. -
Uses of Span in opennlp.tools.sentdetect
Fields in opennlp.tools.sentdetect with type parameters of type SpanMethods in opennlp.tools.sentdetect that return SpanModifier and TypeMethodDescriptionSpan[]SentenceSample.getSentences()(package private) Span[]SentenceDetectorME.mapPositionsToSpans(CharSequence s, int[] starts, List<Double> probs) Maps accepted sentence-start positions to trimmed sentenceSpans, the core of the end-of-sentence position to span mapping (OPENNLP-205).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) Deprecated.private SpanSentenceDetectorME.trimmedSpan(CharSequence s, int start, int end) private Span[]Methods in opennlp.tools.sentdetect with parameters of type SpanMethod parameters in opennlp.tools.sentdetect with type arguments of type SpanModifier and TypeMethodDescriptionprivate voidSentenceDetectorME.addTrimmedSpan(List<Span> spans, CharSequence s, int start, int end, double prob) Constructors in opennlp.tools.sentdetect with parameters of type SpanModifierConstructorDescriptionSentenceSample(CharSequence document, Span... sentences) Initializes the current instance. -
Uses of Span in opennlp.tools.stopword
Methods in opennlp.tools.stopword that return SpanModifier and TypeMethodDescriptionSpan[]StopwordFilteringTokenizer.tokenizePos(String s) Computes token spans with the wrappedTokenizerand then drops the spans covering any stopword entry according to theStopwordFilter. -
Uses of Span in opennlp.tools.termvector
Fields in opennlp.tools.termvector with type parameters of type SpanMethods in opennlp.tools.termvector that return types with arguments of type SpanModifier and TypeMethodDescriptionTermVector.spans()Returns the value of thespansrecord component.Method parameters in opennlp.tools.termvector with type arguments of type SpanModifier and TypeMethodDescriptionstatic TermVectorCreates a fullTermVectorwhose frequency is derived from the occurrence spans.Constructor parameters in opennlp.tools.termvector with type arguments of type SpanModifierConstructorDescriptionTermVector(String term, int frequency, List<Span> spans) Validates the term vector and detaches the span list from the caller's input. -
Uses of Span in opennlp.tools.tokenize
Fields in opennlp.tools.tokenize with type parameters of type SpanMethods in opennlp.tools.tokenize that return SpanModifier and TypeMethodDescriptionSpan[]TokenSample.getTokenSpans()Span[]BPETokenizer.tokenizePos(String text) Finds the boundaries of atomic parts in a string.Span[]SimpleTokenizer.tokenizePos(String s) Span[]ThreadSafeTokenizerME.tokenizePos(String s) Deprecated.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) Not supported: wordpiece tokens (subwords,##continuations and special tokens) have no faithful character spans in the original text.Method parameters in opennlp.tools.tokenize with type arguments of type SpanModifier and TypeMethodDescriptionprivate static voidTokenSample.addToken(StringBuilder sample, List<Span> tokenSpans, String token, boolean isNextMerged) Constructors in opennlp.tools.tokenize with parameters of type SpanModifierConstructorDescriptionTokenSample(String text, Span[] tokenSpans) Initializes ainstance. -
Uses of Span in opennlp.tools.tokenize.lattice
Fields in opennlp.tools.tokenize.lattice declared as SpanModifier and TypeFieldDescriptionprivate final SpanMorpheme.spanThe field for thespanrecord component.Methods in opennlp.tools.tokenize.lattice that return SpanModifier and TypeMethodDescriptionMorpheme.span()Returns the value of thespanrecord component.Span[]LatticeTokenizer.tokenizePos(String text) Finds the boundaries of atomic parts in a string.Span[]UnigramSegmenter.tokenizePos(String text) Finds the boundaries of atomic parts in a string.Method parameters in opennlp.tools.tokenize.lattice with type arguments of type SpanModifier and TypeMethodDescriptionprivate voidViterbi over word log-probabilities within one whitespace-free stretch.Constructors in opennlp.tools.tokenize.lattice with parameters of type Span -
Uses of Span in opennlp.tools.tokenize.uax29
Fields in opennlp.tools.tokenize.uax29 declared as SpanModifier and TypeFieldDescriptionprivate final SpanWordToken.spanThe field for thespanrecord component.Methods in opennlp.tools.tokenize.uax29 that return SpanModifier and TypeMethodDescriptionWordToken.span()Returns the value of thespanrecord component.Span[]WordTokenizer.tokenizePos(String text) Returns the offset spans of the word tokens oftext, in order.Methods in opennlp.tools.tokenize.uax29 that return types with arguments of type SpanModifier and TypeMethodDescriptionWordSegmenter.segments(CharSequence text) Returns the word segments oftextas spans between consecutive boundaries.WordTokenizer.tokenizeSpans(CharSequence text) Computes the offset spans of the word tokens intext, in order.Constructors in opennlp.tools.tokenize.uax29 with parameters of type Span -
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.featuregen
Fields in opennlp.tools.util.featuregen declared as Span -
Uses of Span in opennlp.tools.util.normalizer
Fields in opennlp.tools.util.normalizer declared as SpanMethods in opennlp.tools.util.normalizer that return SpanModifier and TypeMethodDescriptionTerm.span()Returns the source span of this token, ornullif it was supplied as a pre-tokenized string.AlignedText.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.Constructors in opennlp.tools.util.normalizer with parameters of type SpanModifierConstructorDescription(package private)Term(TermAnalyzer analyzer, String original, Span span, String posTag) Creates a term and eagerly computes the analyzer's configured dimensions.
BioCodecimplementation of the SequenceValidator instead!