edu.stanford.nlp.parser.lexparser
Class LatticeReader

java.lang.Object
  extended by edu.stanford.nlp.parser.lexparser.LatticeReader

public class LatticeReader
extends Object


Nested Class Summary
static class LatticeReader.LatticeWord
           
 
Field Summary
static boolean DEBUG
           
static boolean PRETTYPRINT
           
static String SILENCE
           
static boolean USEMAX
           
static boolean USESUM
           
 
Constructor Summary
LatticeReader(String filename)
           
LatticeReader(String filename, boolean mergeType)
           
LatticeReader(String filename, boolean mergeType, boolean debug, boolean prettyPrint)
           
 
Method Summary
 List getLatticeWords()
           
 int getNumStates()
           
 List<LatticeReader.LatticeWord> getWordsOverSpan(int a, int b)
           
static void main(String[] args)
           
 void printWords()
           
 void processLattice()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

public static boolean DEBUG

PRETTYPRINT

public static boolean PRETTYPRINT

USESUM

public static final boolean USESUM
See Also:
Constant Field Values

USEMAX

public static final boolean USEMAX
See Also:
Constant Field Values

SILENCE

public static final String SILENCE
See Also:
Constant Field Values
Constructor Detail

LatticeReader

public LatticeReader(String filename)
              throws Exception
Throws:
Exception

LatticeReader

public LatticeReader(String filename,
                     boolean mergeType)
              throws Exception
Throws:
Exception

LatticeReader

public LatticeReader(String filename,
                     boolean mergeType,
                     boolean debug,
                     boolean prettyPrint)
              throws Exception
Throws:
Exception
Method Detail

printWords

public void printWords()

processLattice

public void processLattice()

getLatticeWords

public List getLatticeWords()

getNumStates

public int getNumStates()

getWordsOverSpan

public List<LatticeReader.LatticeWord> getWordsOverSpan(int a,
                                                        int b)

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Stanford NLP Group