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

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

public class SentenceEndFilter
extends FilterMapper<java.lang.String>

Filters out sentences that do not end with a period, question mark, or exclamation point, ignoring double quotes, single quotes, and whitespace at the end.

Author:
afader

Constructor Summary
SentenceEndFilter()
           
 
Method Summary
 boolean doFilter(java.lang.String sent)
           
 
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

SentenceEndFilter

public SentenceEndFilter()
Method Detail

doFilter

public boolean doFilter(java.lang.String sent)
Specified by:
doFilter in class FilterMapper<java.lang.String>