public abstract class ReVerbRelationExtractor extends RelationFirstNpChunkExtractor
| Modifier and Type | Field and Description |
|---|---|
static String |
LONG_RELATION_PATTERN
The pattern (V(W*P)?)+
|
static String |
PREP
Definition of the "preposition" part of the relation pattern.
|
static String |
SHORT_RELATION_PATTERN
The pattern (VP?)+
|
static String |
VERB
Definition of the "verb" of the relation pattern.
|
static String |
WORD
Definition of the "non-verb/prep" part of the relation pattern.
|
allowUnary, arg1Extr, arg2Extr, relExtr| Constructor and Description |
|---|
ReVerbRelationExtractor()
Constructs a new extractor using the default relation pattern,
relation mappers, and argument mappers.
|
ReVerbRelationExtractor(int minFreq,
boolean useLexSynConstraints,
boolean mergeOverlapRels,
boolean allowUnary)
Constructs a new extractor using the default relation pattern,
relation mappers, and argument mappers.
|
| Modifier and Type | Method and Description |
|---|---|
Iterable<ChunkedBinaryExtraction> |
extractFromHtml(String html)
Extracts from the given html using the default sentence reader returned
by
DefaultObjects#.getDefaultSentenceReaderHtml(java.io.Reader). |
Iterable<ChunkedBinaryExtraction> |
extractFromString(String text)
Extracts from the given text using the default sentence reader returned
by
DefaultObjects.getDefaultSentenceReader(java.io.Reader). |
protected abstract void |
initializeArgumentExtractors() |
protected void |
initializeRelationExtractor()
Wrapper for default initialization of the reverb relation extractor.
|
protected void |
initializeRelationExtractor(int minFreq,
boolean useLexSynConstraints,
boolean mergeOverlapRels,
boolean allowUnary)
Initialize relation extractor.
|
extractCandidates, getArgument1Extractor, getArgument2Extractor, getRelationExtractor, setAllowUnary, setArgument1Extractor, setArgument2Extractor, setRelationExtractoraddMapper, compose, extract, getMapperspublic static final String VERB
public static final String WORD
public static final String PREP
public static final String LONG_RELATION_PATTERN
public static final String SHORT_RELATION_PATTERN
public ReVerbRelationExtractor()
throws ExtractorException
ExtractorException - if unable to initialize the extractorpublic ReVerbRelationExtractor(int minFreq,
boolean useLexSynConstraints,
boolean mergeOverlapRels,
boolean allowUnary)
throws ExtractorException
minFreq - - The minimum distinct arguments to be observed in a large collection for the relation to be deemed valid.useLexSynConstraints - - Use syntactic and lexical constraints that are part of Reverb?mergeOverlapRels - - Merge overlapping relations?allowUnary - - Allow relations with one argument to be output.ExtractorException - if unable to initialize the extractorprotected abstract void initializeArgumentExtractors()
protected void initializeRelationExtractor()
throws ExtractorException
ExtractorExceptionprotected void initializeRelationExtractor(int minFreq,
boolean useLexSynConstraints,
boolean mergeOverlapRels,
boolean allowUnary)
throws ExtractorException
minFreq - - The minimum distinct arguments to be observed in a large collection for the relation to be deemed valid.useLexSynConstraints - - Use syntactic and lexical constraints that are part of Reverb?mergeOverlapRels - - Merge overlapping relations?allowUnary - - Allow relations with one argument to be output.ExtractorException - if unable to initialize the extractorpublic Iterable<ChunkedBinaryExtraction> extractFromString(String text) throws ExtractorException
DefaultObjects.getDefaultSentenceReader(java.io.Reader).text - ExtractorException - if unable to extractpublic Iterable<ChunkedBinaryExtraction> extractFromHtml(String html) throws ExtractorException
DefaultObjects#.getDefaultSentenceReaderHtml(java.io.Reader).html - ExtractorException - if unable to extractCopyright © 2010-2013 University of Washington CSE. All Rights Reserved.