edu.washington.cs.knowitall.extractor
Class RegexGroupExtractor

java.lang.Object
  extended by edu.washington.cs.knowitall.extractor.Extractor<ChunkedSentence,SpanExtraction>
      extended by edu.washington.cs.knowitall.extractor.RegexGroupExtractor

public class RegexGroupExtractor
extends Extractor<ChunkedSentence,SpanExtraction>


Constructor Summary
RegexGroupExtractor(LayeredTokenPattern pattern)
           
RegexGroupExtractor(String patternStr)
           
 
Method Summary
protected  Collection<SpanExtraction> extractCandidates(ChunkedSentence sent)
          Extracts candidate extractions from the given source object.
 
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
 

Constructor Detail

RegexGroupExtractor

public RegexGroupExtractor(LayeredTokenPattern pattern)

RegexGroupExtractor

public RegexGroupExtractor(String patternStr)
Method Detail

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.