|
||||||||||
| 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(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 Collection<T> |
extractCandidates(S source)
Returns the results from each extractor. |
| 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 |
|---|
public ExtractorUnion()
public ExtractorUnion(List<Extractor<S,T>> extractors)
extractors - | Method Detail |
|---|
public void addExtractor(Extractor<S,T> extractor)
extractor -
protected Collection<T> extractCandidates(S source)
throws ExtractorException
extractCandidates in class Extractor<S,T>source - the source to extract from.
ExtractorException - if unable to extract
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||