edu.stanford.nlp.classify
Class POSFilter
java.lang.Object
|
+--edu.stanford.nlp.classify.POSFilter
- All Implemented Interfaces:
- Filter
- public class POSFilter
- extends Object
- implements Filter
A filter that takes a of tagged text string and a list of parts
of speech to be kept, and returns the string that includes only
those part of speech.
This class assumes that text is tagged with "qtag" style tags
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
POSFilter
public POSFilter(String[] my_pos)
filter
public String filter(String s)
- Specified by:
filter in interface Filter
Stanford NLP Group