Uses of Class
opennlp.tools.util.Span

Packages that use Span
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.namefind Package related to finding proper names and numeric amounts. 
opennlp.tools.parser Package containing common code for performing full syntactic parsing. 
opennlp.tools.tokenize Package related to finding tokens or word segments. 
opennlp.tools.util Package containing utility data structures and algorithms used by multiple other packages. 
 

Uses of Span in opennlp.tools.coref.mention
 

Methods in opennlp.tools.coref.mention that return Span
 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()
           
 

Constructors in opennlp.tools.coref.mention with parameters of type Span
Mention(Span span, Span headSpan, int entityId, Parse parse, java.lang.String extentType)
           
Mention(Span span, Span headSpan, int entityId, Parse parse, java.lang.String extentType, java.lang.String nameType)
           
MentionContext(Span span, Span headSpan, int entityId, Parse parse, java.lang.String extentType, java.lang.String nameType, int mentionIndex, int mentionsInSentence, int mentionIndexInDocument, int sentenceIndex, HeadFinder headFinder)
           
 

Uses of Span in opennlp.tools.coref.sim
 

Constructors in opennlp.tools.coref.sim with parameters of type Span
Context(Span span, Span headSpan, int entityId, Parse parse, java.lang.String extentType, java.lang.String nameType, HeadFinder headFinder)
           
 

Uses of Span in opennlp.tools.namefind
 

Methods in opennlp.tools.namefind that return Span
 Span[] TokenNameFinder.find(java.lang.String[] tokens)
          Generates name tags for the given sequence, typically a sentence, returning token spans for any identified names.
 Span[] RegexNameFinder.find(java.lang.String[] tokens)
           
 Span[] DictionaryNameFinder.find(java.lang.String[] tokenStrings)
           
 Span[] NameFinderME.find(java.lang.String[] tokens)
           
 Span[][] DocumentNameFinder.find(java.lang.String[][] document)
          Returns tokens span for the specified document of sentences and their tokens.
 Span[] NameFinderME.find(java.lang.String[] tokens, java.lang.String[][] additionalContext)
          Generates name tags for the given sequence, typically a sentence, returning token spans for any identified names.
 Span[] NameSample.getNames()
           
 

Methods in opennlp.tools.namefind with parameters of type Span
static java.lang.String[] NameFinderEventStream.generateOutcomes(Span[] names, java.lang.String[] nameTypes, 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 product the probabilities for each of the outcomes which make up the span.
 

Constructors in opennlp.tools.namefind with parameters of type Span
NameSample(Token[] sentence, Span[] names, boolean clearAdaptiveData)
          Initializes the current instance.
NameSample(Token[] sentence, Span[] names, java.lang.String[] nameTypes, boolean clearAdaptiveData)
           
NameSample(Token[] sentence, Span[] names, java.lang.String[] types, java.lang.String[][] additionalContext, boolean clearAdaptiveData)
          Initializes the current instance.
 

Uses of Span in opennlp.tools.parser
 

Methods in opennlp.tools.parser that return Span
 Span Parse.getSpan()
          Returns the character offsets for this constituent.
 Span Constituent.getSpan()
          Returns the span of the constituent.
 

Constructors in opennlp.tools.parser with parameters of type Span
Constituent(java.lang.String label, Span span)
           
Parse(java.lang.String text, Span span, java.lang.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(java.lang.String text, Span span, java.lang.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.
 

Uses of Span in opennlp.tools.tokenize
 

Methods in opennlp.tools.tokenize that return Span
 Span[] WhitespaceTokenizer.tokenizePos(java.lang.String d)
           
 Span[] SimpleTokenizer.tokenizePos(java.lang.String s)
           
 Span[] TokenizerME.tokenizePos(java.lang.String d)
          Tokenizes the string.
 Span[] Tokenizer.tokenizePos(java.lang.String s)
          Tokenize a string.
 

Methods in opennlp.tools.tokenize with parameters of type Span
 void TokSpanEventStream.addEvents(Span[] tokens, java.lang.String text)
          Adds training events to the event stream for each of the specified tokens.
 

Uses of Span in opennlp.tools.util
 

Methods in opennlp.tools.util with parameters of type 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 java.lang.String[] Span.spansToStrings(Span[] spans, java.lang.String s)
          Converts an array of Spans to an array of Strings.
static java.lang.String[] Span.spansToStrings(Span[] spans, java.lang.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.
 



Copyright 2008 Jason Baldridge, Gann Bierner, and Thomas Morton. All Rights Reserved.