edu.washington.cs.knowitall.extractor
Class ReVerbExtractor

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.ReVerbExtractor

public class ReVerbExtractor
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
ReVerbExtractor()
          Explicit constructor to invoke the corresponding super's constructor without arguments.
ReVerbExtractor(int minFreq, boolean useLexSynConstraints, boolean mergeOverlapRels, boolean allowUnary)
          Explicit constructor to invoke the corresponding super's constructor with arguments.
 
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

ReVerbExtractor

public ReVerbExtractor()
Explicit constructor to invoke the corresponding super's constructor without arguments.


ReVerbExtractor

public ReVerbExtractor(int minFreq,
                       boolean useLexSynConstraints,
                       boolean mergeOverlapRels,
                       boolean allowUnary)
Explicit constructor to invoke the corresponding super's constructor with arguments.

Parameters:
minFreq -
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.