public class ChunkedArgumentExtractor extends Extractor<ChunkedExtraction,ChunkedArgumentExtraction>
Extractor class for extracting noun phrase arguments, given a relation extraction.
It can be used to extract arguments to the left or right of the given relation extraction. This extractor
returns all candidate arguments for a relation. Mapper classes can be used to filter down the
candidate arguments to a small set or a single argument (e.g. see the ClosestArgumentMapper class).| Modifier and Type | Class and Description |
|---|---|
static class |
ChunkedArgumentExtractor.Mode
Controls the mode of an
NpChunkArgumentExtractor: the LEFT mode makes the
extractor return noun phrase arguments to the left of the relation in the sentence, and the RIGHT
mode makes the extractor return noun phrase arguments to the right of the relation in the sentence. |
| Constructor and Description |
|---|
ChunkedArgumentExtractor(ChunkedArgumentExtractor.Mode mode)
Constructs a new
NpChunkArgumentExtractor with the given mode (either LEFT or
RIGHT). |
| Modifier and Type | Method and Description |
|---|---|
protected Collection<ChunkedArgumentExtraction> |
extractCandidates(ChunkedExtraction rel)
Extracts candidate extractions from the given source object.
|
ChunkedArgumentExtractor.Mode |
getMode() |
addMapper, compose, extract, getMapperspublic ChunkedArgumentExtractor(ChunkedArgumentExtractor.Mode mode)
NpChunkArgumentExtractor with the given mode (either LEFT or
RIGHT).mode - public ChunkedArgumentExtractor.Mode getMode()
protected Collection<ChunkedArgumentExtraction> extractCandidates(ChunkedExtraction rel)
ExtractorExtractor.extract(Object), the this method is
used to generate a set of candidate extractions, which are then passed
through each mapper object attached to the extractor.extractCandidates in class Extractor<ChunkedExtraction,ChunkedArgumentExtraction>rel - the source to extract from.Copyright © 2010-2013 University of Washington CSE. All Rights Reserved.