public class StopListFilter extends FilterMapper<ChunkedExtraction>
| Constructor and Description |
|---|
StopListFilter()
Constructs a new
StopListFilter with empty sets for POS tags and tokens. |
StopListFilter(Set<String> stopTokens,
Set<String> stopPosTags)
Constructs a new
StopListFilter object from the given sets of tokens and POS
tags. |
| Modifier and Type | Method and Description |
|---|---|
void |
addStopPosTag(String posTag)
Adds
posTag to the set of stop POS tags. |
void |
addStopToken(String token)
Adds
token to the set of stop tokens. |
boolean |
doFilter(ChunkedExtraction extr) |
doMappublic StopListFilter()
StopListFilter with empty sets for POS tags and tokens.public void addStopToken(String token)
token to the set of stop tokens.token - public void addStopPosTag(String posTag)
posTag to the set of stop POS tags.posTag - public boolean doFilter(ChunkedExtraction extr)
doFilter in class FilterMapper<ChunkedExtraction>Copyright © 2010-2013 University of Washington CSE. All Rights Reserved.