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

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

public class ChunkedBinaryExtractionWordCountFilter
extends FilterMapper<ChunkedBinaryExtraction>

A mapper used to filter binary extractions by number of words.

Author:
schmmd

Constructor Summary
ChunkedBinaryExtractionWordCountFilter(int minArgWords, int maxArgWords, int minPredicateWords, int maxPredicateWords)
          Constructs a new ChunkedBinaryExtractionLengthFilter object.
 
Method Summary
 boolean doFilter(ChunkedBinaryExtraction extraction)
           
 
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

ChunkedBinaryExtractionWordCountFilter

public ChunkedBinaryExtractionWordCountFilter(int minArgWords,
                                              int maxArgWords,
                                              int minPredicateWords,
                                              int maxPredicateWords)
Constructs a new ChunkedBinaryExtractionLengthFilter object.

Parameters:
minWords - the minimum number of words in the predicate.
maxWords - the maximum number of words in the predicate.
Method Detail

doFilter

public boolean doFilter(ChunkedBinaryExtraction extraction)
Specified by:
doFilter in class FilterMapper<ChunkedBinaryExtraction>