Package org.opensextant.extraction
Class MatchFilter
- java.lang.Object
-
- org.opensextant.extraction.MatchFilter
-
public class MatchFilter extends java.lang.Object
The Class MatchFilter.
-
-
Field Summary
Fields Modifier and Type Field Description java.util.Set<java.lang.String>
tagFilter
The tag filter.
-
Constructor Summary
Constructors Constructor Description MatchFilter()
free-form filterMatchFilter(java.lang.String stopfile)
Instantiates a new match filter.MatchFilter(java.net.URL stopfile)
-
Method Summary
Modifier and Type Method Description boolean
filterOut(java.lang.String value)
If value is in stop list, then filter it out.
-
-
-
Constructor Detail
-
MatchFilter
public MatchFilter()
free-form filter
-
MatchFilter
public MatchFilter(java.lang.String stopfile) throws java.io.IOException
Instantiates a new match filter.- Parameters:
stopfile
- path to stopfile resource as it appears in CLASSPATH- Throws:
java.io.IOException
- Signals that an I/O exception has occurred.
-
MatchFilter
public MatchFilter(java.net.URL stopfile) throws java.io.IOException
- Throws:
java.io.IOException
-
-