edu.stanford.nlp.parser.lexparser
Class LatticeReader
java.lang.Object
edu.stanford.nlp.parser.lexparser.LatticeReader
public class LatticeReader
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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
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