|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.washington.cs.knowitall.extractor.Extractor<S,T>
edu.washington.cs.knowitall.extractor.ExtractorUnion<S,T>
S
- T
- public class ExtractorUnion<S,T>
Takes the union of the output of multiple extractors. The output of this extractor is the output of the others concatenated together.
Constructor Summary | |
---|---|
ExtractorUnion()
Constructs an empty extractor that will return an empty set of results from any given input. |
|
ExtractorUnion(java.util.List<Extractor<S,T>> extractors)
Constructs a new extractor that returns the union of the output from each of the given extractors. |
Method Summary | |
---|---|
void |
addExtractor(Extractor<S,T> extractor)
Adds the given extractor to the union. |
protected java.lang.Iterable<T> |
extractCandidates(S source)
Returns the results from each extractor. |
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 |
---|
public ExtractorUnion()
public ExtractorUnion(java.util.List<Extractor<S,T>> extractors)
extractors
- Method Detail |
---|
public void addExtractor(Extractor<S,T> extractor)
extractor
- protected java.lang.Iterable<T> extractCandidates(S source)
extractCandidates
in class Extractor<S,T>
source
- The source to extract from.
Iterable
object over the candidate extractions.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |