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 converting various corpora to OpenNLP Format.
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
MUC 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.
This package contains classes for generating sequence features.
Package related to finding proper names and numeric amounts.
Package related to identifying sentence boundaries.
Package related to finding tokens or word segments.
-
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) Span[]ChunkSample.getPhrasesAsSpanList()static Span[]ChunkSample.phrasesAsSpanList(String[] aSentence, String[] aTags, String[] aPreds) Create arrays ofspansof phrases. -
Uses of Span in opennlp.tools.cmdline
Methods in opennlp.tools.cmdline that return SpanModifier and TypeMethodDescriptionprotected abstract Span[]DetailedFMeasureListener.asSpanArray(T sample) Methods in opennlp.tools.cmdline with parameters of type SpanModifier and TypeMethodDescriptionprivate voidEvaluationErrorPrinter.findErrors(Span[] references, Span[] predictions, List<Span> falseNegatives, List<Span> falsePositives) Outputs falseNegatives and falsePositives spans from the references and predictions list.protected voidEvaluationErrorPrinter.printError(String id, Span[] references, Span[] predictions, T referenceSample, T predictedSample, String[] sentenceTokens) protected voidEvaluationErrorPrinter.printError(Span[] references, Span[] predictions, T referenceSample, T predictedSample, String sentence) protected voidEvaluationErrorPrinter.printError(Span[] references, Span[] predictions, T referenceSample, T predictedSample, String[] sentenceTokens) Method parameters in opennlp.tools.cmdline with type arguments of type SpanModifier and TypeMethodDescriptionprivate voidEvaluationErrorPrinter.findErrors(Span[] references, Span[] predictions, List<Span> falseNegatives, List<Span> falsePositives) Outputs falseNegatives and falsePositives spans from the references and predictions list.private StringAuxiliary method to print spansprivate voidEvaluationErrorPrinter.printErrors(List<Span> falsePositives, List<Span> falseNegatives, String doc) Auxiliary method to print span errorsprivate voidEvaluationErrorPrinter.printErrors(List<Span> falsePositives, List<Span> falseNegatives, String[] toks) Auxiliary method to print span errors -
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 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 Span -
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 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[]Span[]Generates name tags for the given sequence, typically a sentence, returningtoken spansfor any identified names.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 SpanConstituent.spanprivate SpanParse.spanThe character offsets into the text for this constituent.Methods in opennlp.tools.parser that return SpanModifier and TypeMethodDescriptionprivate static Span[]ParserEvaluator.getConstituencySpans(Parse parse) Obtainsspansfor every parse in a sentence.Constituent.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
Fields in opennlp.tools.sentdetect with type parameters of type SpanMethods 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) private Span[]Methods in opennlp.tools.sentdetect with parameters of type SpanConstructors in opennlp.tools.sentdetect with parameters of type SpanModifierConstructorDescriptionSentenceSample(CharSequence document, Span... sentences) Initializes the current instance. -
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[]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) 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.util
Classes in opennlp.tools.util that implement interfaces with type arguments of type SpanMethods 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.uima.namefind
Methods in opennlp.uima.namefind that return SpanMethods in opennlp.uima.namefind with parameters of type SpanModifier and TypeMethodDescriptionprotected abstract voidAbstractNameFinder.postProcessAnnotations(Span[] detectedNames, org.apache.uima.cas.text.AnnotationFS[] nameAnnotations) protected voidDictionaryNameFinder.postProcessAnnotations(Span[] detectedNames, org.apache.uima.cas.text.AnnotationFS[] nameAnnotations) protected voidNameFinder.postProcessAnnotations(Span[] detectedNames, org.apache.uima.cas.text.AnnotationFS[] nameAnnotations) -
Uses of Span in opennlp.uima.parser
Constructors in opennlp.uima.parser with parameters of type SpanModifierConstructorDescriptionParseConverter(String sentence, Span[] tokens) Initializes a new instance. -
Uses of Span in opennlp.uima.sentdetect
Methods in opennlp.uima.sentdetect that return SpanModifier and TypeMethodDescriptionprotected abstract Span[]AbstractSentenceDetector.detectSentences(String text) protected Span[]SentenceDetector.detectSentences(String text) -
Uses of Span in opennlp.uima.tokenize
Methods in opennlp.uima.tokenize that return SpanModifier and TypeMethodDescriptionprotected abstract Span[]AbstractTokenizer.tokenize(org.apache.uima.cas.CAS cas, org.apache.uima.cas.text.AnnotationFS sentence) 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) Methods in opennlp.uima.tokenize with parameters of type SpanModifier and TypeMethodDescriptionprotected abstract voidAbstractTokenizer.postProcessAnnotations(Span[] tokens, org.apache.uima.cas.text.AnnotationFS[] tokenAnnotations) protected voidSimpleTokenizer.postProcessAnnotations(Span[] detectedNames, org.apache.uima.cas.text.AnnotationFS[] nameAnnotations) protected voidTokenizer.postProcessAnnotations(Span[] tokens, org.apache.uima.cas.text.AnnotationFS[] tokenAnnotations) protected voidWhitespaceTokenizer.postProcessAnnotations(Span[] detectedNames, org.apache.uima.cas.text.AnnotationFS[] nameAnnotations)
BioCodecimplementation of the SequenceValidator instead!