edu.stanford.nlp.ie.desc
Class DescExtractorTest

java.lang.Object
  |
  +--edu.stanford.nlp.ie.desc.DescExtractorTest

public class DescExtractorTest
extends Object

Command-line tool to test the description extractor.


Constructor Summary
DescExtractorTest(String ontologyFilenameOrURL, String conceptName, File extractionDir, String searchTer)
           
 
Method Summary
 void extractFrom(String sourceText)
          Extract from the named file
static void main(String[] args)
          Runs a simple demonstration of the extraction system.
 void storeRDF(PrintStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DescExtractorTest

public DescExtractorTest(String ontologyFilenameOrURL,
                         String conceptName,
                         File extractionDir,
                         String searchTer)
                  throws Exception
Method Detail

extractFrom

public void extractFrom(String sourceText)
                 throws IOException,
                        org.w3c.rdf.model.ModelException,
                        edu.unika.aifb.sitris.exception.NotSupportedException
Extract from the named file

IOException
org.w3c.rdf.model.ModelException
edu.unika.aifb.sitris.exception.NotSupportedException

storeRDF

public void storeRDF(PrintStream out)
              throws IOException,
                     org.w3c.rdf.model.ModelException,
                     org.w3c.rdf.syntax.SerializationException
IOException
org.w3c.rdf.model.ModelException
org.w3c.rdf.syntax.SerializationException

main

public static void main(String[] args)
Runs a simple demonstration of the extraction system. It loads an ontology, a set of serialized extractors, and extracts instances of a given Concept from one or more given text files.
Usage: java edu.stanford.nlp.ie.desc.DescExtractorTest ontologyFileOrUrl concept serializedExtractorDir searchTerm extractFromFile

Parameters:
args - Command line arguments, as above


Stanford NLP Group