edu.stanford.nlp.classify
Class POSTokenReader

java.lang.Object
  |
  +--edu.stanford.nlp.classify.POSTokenReader
All Implemented Interfaces:
TokenReader

public class POSTokenReader
extends Object
implements TokenReader

This class reads in Epinions data that has been POS tagged using the Qtag system. The first line in the data should be the rating (class category) of the file. This filter also converts all data to lower case.


Constructor Summary
POSTokenReader(String filename)
          Constructor
 
Method Summary
 int getMyClass()
           
 String makeString()
          Returns a string that consists of the relevant data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

POSTokenReader

public POSTokenReader(String filename)
Constructor

Method Detail

makeString

public String makeString()
                  throws FileNotFoundException,
                         IOException
Returns a string that consists of the relevant data. This can be used directly, or first filtered.

Specified by:
makeString in interface TokenReader
FileNotFoundException
IOException

getMyClass

public int getMyClass()


Stanford NLP Group