edu.washington.cs.knowitall.extractor
Class ExtractorComposition<R,S,T>

java.lang.Object
  extended by edu.washington.cs.knowitall.extractor.Extractor<R,T>
      extended by edu.washington.cs.knowitall.extractor.ExtractorComposition<R,S,T>
Type Parameters:
R -
S -
T -

public class ExtractorComposition<R,S,T>
extends Extractor<R,T>

A class used to represent the composition of two Extractor objects.

Author:
afader

Constructor Summary
ExtractorComposition(Extractor<R,S> rsExtractor, Extractor<S,T> stExtractor)
          Constructs a new extractor that is the composition of the given extractors.
 
Method Summary
protected  java.lang.Iterable<T> extractCandidates(R r)
          Extracts candidate extractions from the given source object.
 
Methods inherited from class edu.washington.cs.knowitall.extractor.Extractor
addMapper, compose, extract, extract, getMappers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtractorComposition

public ExtractorComposition(Extractor<R,S> rsExtractor,
                            Extractor<S,T> stExtractor)
Constructs a new extractor that is the composition of the given extractors.

Parameters:
rsExtractor -
stExtractor -
Method Detail

extractCandidates

protected java.lang.Iterable<T> extractCandidates(R r)
Description copied from class: Extractor
Extracts candidate extractions from the given source object. When the user calls the extract(S source) method, the extractCandidate(S source) method is used to generate a set of candidate extractions, which are then passed through each Mapper object assigned to the extractor.

Specified by:
extractCandidates in class Extractor<R,T>
Parameters:
r - The source to extract from.
Returns:
An Iterable object over the candidate extractions.