|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.washington.cs.knowitall.extractor.mapper.Mapper<T>
edu.washington.cs.knowitall.extractor.mapper.FilterMapper<ChunkedExtraction>
edu.washington.cs.knowitall.extractor.mapper.NormalizedRelationDictionaryFilter
public class NormalizedRelationDictionaryFilter
A class used to filter out any relations whose normalized form does not appear in the given dictionary. Relation strings are normalized using the VerbalRelationNormalizer class.
Constructor Summary | |
---|---|
NormalizedRelationDictionaryFilter(java.util.HashSet<java.lang.String> relations)
Constructs a new filter using the String relations in the given set. |
Method Summary | |
---|---|
boolean |
doFilter(ChunkedExtraction extr)
Returns true if the tokens in the given extraction appear in the set of relations passed to the constructor. |
Methods inherited from class edu.washington.cs.knowitall.extractor.mapper.FilterMapper |
---|
doMap |
Methods inherited from class edu.washington.cs.knowitall.extractor.mapper.Mapper |
---|
disable, enable, isEnabled, map |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NormalizedRelationDictionaryFilter(java.util.HashSet<java.lang.String> relations)
relations
- Method Detail |
---|
public boolean doFilter(ChunkedExtraction extr)
doFilter
in class FilterMapper<ChunkedExtraction>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |