edu.washington.cs.knowitall.extractor
Class ExtractorComposition<R,S,T>
java.lang.Object
edu.washington.cs.knowitall.extractor.Extractor<R,T>
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 -
extractCandidates
protected Collection<T> extractCandidates(R r)
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<R,T>
- Parameters:
r - 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.