edu.stanford.nlp.mt
Class SentenceHandler
java.lang.Object
|
+--edu.stanford.nlp.mt.SentenceHandler
- public class SentenceHandler
- extends Object
Reads in the corpus both training and test and stores them in buffers
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SentenceHandler
public SentenceHandler(String trainFilename,
String testFilename)
SentenceHandler
public SentenceHandler(String trainFilename,
String testFilename,
boolean eTags,
boolean fTags,
boolean useETags,
boolean useFTags)
init
public void init()
eHasTags
public boolean eHasTags()
fHasTags
public boolean fHasTags()
rewind
public void rewind(boolean train)
getNextPair
public SentencePair getNextPair(boolean train)
getNextPairTrain
public SentencePair getNextPairTrain()
getNextPairTest
public SentencePair getNextPairTest()
getNumPairs
public int getNumPairs(boolean train)
print
public void print(boolean train)
getMaxLength
public int getMaxLength()
main
public static void main(String[] args)
Stanford NLP Group