edu.washington.cs.knowitall.extractor.mapper
Class AdjacentToRelationFilter

java.lang.Object
  extended by edu.washington.cs.knowitall.extractor.mapper.Mapper<T>
      extended by edu.washington.cs.knowitall.extractor.mapper.FilterMapper<ChunkedArgumentExtraction>
          extended by edu.washington.cs.knowitall.extractor.mapper.AdjacentToRelationFilter

public class AdjacentToRelationFilter
extends FilterMapper<ChunkedArgumentExtraction>

A filter that returns only arguments that are adjacent to the relation.

Author:
afader

Constructor Summary
AdjacentToRelationFilter()
           
 
Method Summary
 boolean doFilter(ChunkedArgumentExtraction arg)
          Returns true if the given argument is adjacent to its relation.
 
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

AdjacentToRelationFilter

public AdjacentToRelationFilter()
Method Detail

doFilter

public boolean doFilter(ChunkedArgumentExtraction arg)
Returns true if the given argument is adjacent to its relation.

Specified by:
doFilter in class FilterMapper<ChunkedArgumentExtraction>