Class MatchFilter

java.lang.Object
org.opensextant.extraction.MatchFilter

public class MatchFilter extends Object
The Class MatchFilter.
  • Field Details

    • tagFilter

      public Set<String> tagFilter
      The tag filter.
  • Constructor Details

    • MatchFilter

      public MatchFilter()
      free-form filter
    • MatchFilter

      public MatchFilter(String stopfile) throws IOException
      Instantiates a new match filter.
      Parameters:
      stopfile - path to stopfile resource as it appears in CLASSPATH
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • MatchFilter

      public MatchFilter(URL stopfile) throws IOException
      Throws:
      IOException
  • Method Details

    • filterOut

      public boolean filterOut(String value)
      If value is in stop list, then filter it out.
      Parameters:
      value - the value
      Returns:
      true, if successful. True if the value is null