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
Method Summary |
protected java.lang.Iterable<T> |
extractCandidates(R r)
Extracts candidate extractions from the given source object. |
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 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.