Uses of Class
org.nlp2rdf.core.Span

Packages that use Span
org.nlp2rdf.core   
org.nlp2rdf.core.impl   
org.nlp2rdf.core.util   
 

Uses of Span in org.nlp2rdf.core
 

Methods in org.nlp2rdf.core that return Span
 Span URIGenerator.getSpanFor(String prefix, String uri, String text)
           
 

Methods in org.nlp2rdf.core that return types with arguments of type Span
 TreeMap<Span,List<Span>> Text2RDF.getTokenization(String prefix, String text, URIGenerator uriGenerator, com.hp.hpl.jena.ontology.OntModel model)
           
 TreeMap<Span,List<Span>> Text2RDF.getTokenization(String prefix, String text, URIGenerator uriGenerator, com.hp.hpl.jena.ontology.OntModel model)
           
 

Methods in org.nlp2rdf.core with parameters of type Span
 int Span.compareTo(Span s)
          Compares the specified span to the current span.
 boolean Span.contains(Span s)
          Returns true if the specified span is contained by this span.
<S> S
Text2RDF.createStringAnnotationForClass(Class<S> cl, String prefix, String text, Span span, URIGenerator uriGenerator, com.hp.hpl.jena.ontology.OntModel model)
          This is a convenience function, which does quite a lot: 1.
 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.
 String URIGenerator.makeUri(String prefix, String text, Span span)
          Depending on the implementation, it might be necessary to call init before calling this function
 String URIGenerator.makeUri(String prefix, String text, Span span, com.hp.hpl.jena.ontology.OntModel model)
          Additionally creates the uri in the model and assigns the recipe class
static String[] Span.spansToStrings(Span[] spans, CharSequence s)
          Converts an array of Spans to an array of Strings.
static String[] Span.spansToStrings(Span[] spans, 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.
 

Method parameters in org.nlp2rdf.core with type arguments of type Span
 com.hp.hpl.jena.ontology.OntModel Text2RDF.generateNIFModel(String prefix, String text, TreeMap<Span,List<Span>> tokenizedText, URIGenerator uriGenerator, Document document, com.hp.hpl.jena.ontology.OntModel model)
          adds sso:Sentence and sso:Word to it adds the word property and additionally, though optional, the firstWord and lastWord property

Note that the expected tokenizer matches the opennlp tokenizer well, so instead of forcing a tokenizer to match the interface it might be smarter to rewrite this method.

 com.hp.hpl.jena.ontology.OntModel Text2RDF.generateNIFModel(String prefix, String text, TreeMap<Span,List<Span>> tokenizedText, URIGenerator uriGenerator, Document document, com.hp.hpl.jena.ontology.OntModel model)
          adds sso:Sentence and sso:Word to it adds the word property and additionally, though optional, the firstWord and lastWord property

Note that the expected tokenizer matches the opennlp tokenizer well, so instead of forcing a tokenizer to match the interface it might be smarter to rewrite this method.

 

Constructors in org.nlp2rdf.core with parameters of type Span
Span(Span span, int offset)
          Initializes a new Span object with an existing Span which is shifted by an offset.
 

Uses of Span in org.nlp2rdf.core.impl
 

Methods in org.nlp2rdf.core.impl that return Span
 Span MD5Based.getSpanFor(String prefix, String uri, String text)
           
 Span OffsetBased.getSpanFor(String prefix, String uri, String text)
           
 Span AbstractURIGenerator.getSpanFor(String prefix, String uri, String text)
           
 

Methods in org.nlp2rdf.core.impl with parameters of type Span
 String MD5Based.makeUri(String prefix, String text, Span span)
           
 String OffsetBased.makeUri(String base, String text, Span span)
           
 String AbstractURIGenerator.makeUri(String prefix, String text, Span span, com.hp.hpl.jena.ontology.OntModel model)
           
 

Method parameters in org.nlp2rdf.core.impl with type arguments of type Span
 void MD5Based.setMinimalContextLength(String text, Set<Span> spans)
           
 

Constructor parameters in org.nlp2rdf.core.impl with type arguments of type Span
MD5Based(String text, Set<Span> allSpans)
           
 

Uses of Span in org.nlp2rdf.core.util
 

Methods in org.nlp2rdf.core.util with parameters of type Span
static String URIGeneratorHelper.getContextAfter(Span span, String text, int contextLength)
           
static String URIGeneratorHelper.getContextBefore(Span span, String text, int contextLength)
           
 



Copyright © 2011. All Rights Reserved.