|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.washington.cs.knowitall.extractor.mapper.Mapper<T>
edu.washington.cs.knowitall.extractor.mapper.FilterMapper<ChunkedExtraction>
edu.washington.cs.knowitall.extractor.mapper.StopListFilter
public class StopListFilter
A mapper that filters out any extractions containing a token or POS tag from a given set.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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)
|
| 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 |
|---|
public StopListFilter()
StopListFilter with empty sets for POS tags and tokens.
public StopListFilter(Set<String> stopTokens,
Set<String> stopPosTags)
StopListFilter object from the given sets of tokens and POS
tags.
stopTokens - stopPosTags - | Method Detail |
|---|
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>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||