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

public class ReVerbExtractor
extends RelationFirstNpChunkExtractor


Field Summary
static java.lang.String LONG_RELATION_PATTERN
           
static java.lang.String PREP
          Definition of the "preposition" part of the relation pattern.
static java.lang.String SHORT_RELATION_PATTERN
           
static java.lang.String VERB
          Definition of the "verb" of the relation pattern.
static java.lang.String WORD
          Definition of the "any word" part of the relation pattern.
 
Fields inherited from class edu.washington.cs.knowitall.extractor.RelationFirstNpChunkExtractor
arg1Extr, arg2Extr, relExtr
 
Constructor Summary
ReVerbExtractor()
          Constructs a new ReVerbExtractor using the default relation pattern, relation mappers, and argument mappers.
 
Method Summary
 java.lang.Iterable<ChunkedBinaryExtraction> extractFromHtml(java.lang.String html)
          Extracts from the given html using the default sentence reader returned by DefaultObjects.getDefaultSentenceReaderHtml().
 java.lang.Iterable<ChunkedBinaryExtraction> extractFromString(java.lang.String text)
          Extracts from the given text using the default sentence reader returned by DefaultObjects.getDefaultSentenceReader().
static void main(java.lang.String[] args)
          Runs the extractor on either standard input, or the given file.
 
Methods inherited from class edu.washington.cs.knowitall.extractor.RelationFirstNpChunkExtractor
extractCandidates, getArgument1Extractor, getArgument2Extractor, getRelationExtractor, setArgument1Extractor, setArgument2Extractor, setRelationExtractor
 
Methods inherited from class edu.washington.cs.knowitall.extractor.Extractor
addMapper, compose, extract, extract, getMappers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERB

public static final java.lang.String VERB
Definition of the "verb" of the relation pattern.

See Also:
Constant Field Values

WORD

public static final java.lang.String WORD
Definition of the "any word" part of the relation pattern.

See Also:
Constant Field Values

PREP

public static final java.lang.String PREP
Definition of the "preposition" part of the relation pattern.

See Also:
Constant Field Values

LONG_RELATION_PATTERN

public static final java.lang.String LONG_RELATION_PATTERN

SHORT_RELATION_PATTERN

public static final java.lang.String SHORT_RELATION_PATTERN
Constructor Detail

ReVerbExtractor

public ReVerbExtractor()
                throws java.io.IOException
Constructs a new ReVerbExtractor using the default relation pattern, relation mappers, and argument mappers.

Throws:
java.io.IOException
Method Detail

extractFromString

public java.lang.Iterable<ChunkedBinaryExtraction> extractFromString(java.lang.String text)
                                                              throws java.io.IOException
Extracts from the given text using the default sentence reader returned by DefaultObjects.getDefaultSentenceReader().

Parameters:
text -
Returns:
an Iterable over the extractions
Throws:
java.io.IOException

extractFromHtml

public java.lang.Iterable<ChunkedBinaryExtraction> extractFromHtml(java.lang.String html)
                                                            throws java.io.IOException
Extracts from the given html using the default sentence reader returned by DefaultObjects.getDefaultSentenceReaderHtml().

Parameters:
html -
Returns:
an Iterable over the extractions
Throws:
java.io.IOException

main

public static void main(java.lang.String[] args)
                 throws java.lang.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:
java.lang.Exception