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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
POSTokenReader
public POSTokenReader(String filename)
- Constructor
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