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


Constructor Summary
POSFilter(String[] my_pos)
           
 
Method Summary
 String filter(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

POSFilter

public POSFilter(String[] my_pos)
Method Detail

filter

public String filter(String s)
Specified by:
filter in interface Filter


Stanford NLP Group