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


Constructor Summary
SentenceHandler(String trainFilename, String testFilename)
           
SentenceHandler(String trainFilename, String testFilename, boolean eTags, boolean fTags, boolean useETags, boolean useFTags)
           
 
Method Summary
 boolean eHasTags()
           
 boolean fHasTags()
           
 int getMaxLength()
           
 SentencePair getNextPair(boolean train)
           
 SentencePair getNextPairTest()
           
 SentencePair getNextPairTrain()
           
 int getNumPairs(boolean train)
           
 void init()
           
static void main(String[] args)
           
 void print(boolean train)
           
 void rewind(boolean train)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SentenceHandler

public SentenceHandler(String trainFilename,
                       String testFilename)

SentenceHandler

public SentenceHandler(String trainFilename,
                       String testFilename,
                       boolean eTags,
                       boolean fTags,
                       boolean useETags,
                       boolean useFTags)
Method Detail

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