public class RegexGroupExtractor extends Extractor<ChunkedSentence,SpanExtraction>
| Constructor and Description |
|---|
RegexGroupExtractor(LayeredTokenPattern pattern) |
RegexGroupExtractor(String patternStr) |
| Modifier and Type | Method and Description |
|---|---|
protected Collection<SpanExtraction> |
extractCandidates(ChunkedSentence sent)
Extracts candidate extractions from the given source object.
|
addMapper, compose, extract, getMapperspublic RegexGroupExtractor(LayeredTokenPattern pattern)
public RegexGroupExtractor(String patternStr)
protected Collection<SpanExtraction> extractCandidates(ChunkedSentence sent) throws ExtractorException
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<ChunkedSentence,SpanExtraction>sent - the source to extract from.ExtractorException - if unable to extractCopyright © 2010-2013 University of Washington CSE. All Rights Reserved.