|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.washington.cs.knowitall.extractor.Extractor<ChunkedSentence,ChunkedBinaryExtraction>
edu.washington.cs.knowitall.extractor.RelationFirstNpChunkExtractor
edu.washington.cs.knowitall.extractor.ReVerbRelationExtractor
public abstract class ReVerbRelationExtractor
| Field Summary | |
|---|---|
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. |
| Fields inherited from class edu.washington.cs.knowitall.extractor.RelationFirstNpChunkExtractor |
|---|
allowUnary, arg1Extr, arg2Extr, relExtr |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| 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 |
| Field Detail |
|---|
public 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
| Constructor Detail |
|---|
public ReVerbRelationExtractor()
throws ExtractorException
ExtractorException - if unable to initialize the extractor
public 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 extractor| Method Detail |
|---|
protected abstract void initializeArgumentExtractors()
protected void initializeRelationExtractor()
throws ExtractorException
ExtractorException
protected 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 extractor
public Iterable<ChunkedBinaryExtraction> extractFromString(String text)
throws ExtractorException
DefaultObjects.getDefaultSentenceReader(java.io.Reader).
text -
ExtractorException - if unable to extract
public Iterable<ChunkedBinaryExtraction> extractFromHtml(String html)
throws ExtractorException
DefaultObjects#.getDefaultSentenceReaderHtml(java.io.Reader).
html -
ExtractorException - if unable to extract
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||