edu.washington.cs.knowitall.extractor
Class RegexGroupExtractor
java.lang.Object
edu.washington.cs.knowitall.extractor.Extractor<ChunkedSentence,SpanExtraction>
edu.washington.cs.knowitall.extractor.RegexGroupExtractor
public class RegexGroupExtractor
- extends Extractor<ChunkedSentence,SpanExtraction>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RegexGroupExtractor
public RegexGroupExtractor(LayeredTokenPattern pattern)
RegexGroupExtractor
public RegexGroupExtractor(String patternStr)
extractCandidates
protected Collection<SpanExtraction> extractCandidates(ChunkedSentence sent)
throws ExtractorException
- Description copied from class:
Extractor
- Extracts candidate extractions from the given source object. When the
user calls
Extractor.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.
- Specified by:
extractCandidates in class Extractor<ChunkedSentence,SpanExtraction>
- Parameters:
sent - the source to extract from.
- Returns:
- an iterable object over the candidate extractions.
- Throws:
ExtractorException - if unable to extract
Copyright © 2010-2012 University of Washington CSE. All Rights Reserved.