edu.washington.cs.knowitall.extractor
Class R2A2

java.lang.Object
  extended by edu.washington.cs.knowitall.extractor.Extractor<ChunkedSentence,ChunkedBinaryExtraction>
      extended by edu.washington.cs.knowitall.extractor.RelationFirstNpChunkExtractor
          extended by edu.washington.cs.knowitall.extractor.ReVerbRelationExtractor
              extended by edu.washington.cs.knowitall.extractor.R2A2

public class R2A2
extends ReVerbRelationExtractor


Field Summary
 
Fields inherited from class edu.washington.cs.knowitall.extractor.ReVerbRelationExtractor
LONG_RELATION_PATTERN, PREP, SHORT_RELATION_PATTERN, VERB, WORD
 
Fields inherited from class edu.washington.cs.knowitall.extractor.RelationFirstNpChunkExtractor
allowUnary, arg1Extr, arg2Extr, relExtr
 
Constructor Summary
R2A2()
           
 
Method Summary
protected  void initializeArgumentExtractors()
           
static void main(String[] args)
          Runs the extractor on either standard input, or the given file.
 
Methods inherited from class edu.washington.cs.knowitall.extractor.ReVerbRelationExtractor
extractFromHtml, extractFromString, initializeRelationExtractor, initializeRelationExtractor
 
Methods inherited from class edu.washington.cs.knowitall.extractor.RelationFirstNpChunkExtractor
extractCandidates, getArgument1Extractor, getArgument2Extractor, getRelationExtractor, setAllowUnary, setArgument1Extractor, setArgument2Extractor, setRelationExtractor
 
Methods inherited from class edu.washington.cs.knowitall.extractor.Extractor
addMapper, compose, extract, getMappers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

R2A2

public R2A2()
Method Detail

initializeArgumentExtractors

protected void initializeArgumentExtractors()
Specified by:
initializeArgumentExtractors in class ReVerbRelationExtractor

main

public static void main(String[] args)
                 throws Exception
Runs the extractor on either standard input, or the given file. Uses the object returned by the DefaultObjects.getDefaultSentenceReaderHtml method to read NpChunkedSentence objects. Prints each sentence (prefixed by "sentence" and then a tab), followed by the extractions in the form "extraction", arg1, relation, and arg2, separated by tabs.

Parameters:
args -
Throws:
Exception


Copyright © 2010-2012 University of Washington CSE. All Rights Reserved.