edu.stanford.nlp.parser.lexparser
Class HTKLatticeReader
java.lang.Object
edu.stanford.nlp.parser.lexparser.HTKLatticeReader
public class HTKLatticeReader
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEBUG
public final boolean DEBUG
PRETTYPRINT
public final 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
HTKLatticeReader
public HTKLatticeReader(String filename)
throws Exception
- Throws:
Exception
HTKLatticeReader
public HTKLatticeReader(String filename,
boolean mergeType)
throws Exception
- Throws:
Exception
HTKLatticeReader
public HTKLatticeReader(String filename,
boolean mergeType,
boolean debug,
boolean prettyPrint)
throws Exception
- Throws:
Exception
printWords
public void printWords()
processLattice
public void processLattice()
getLatticeWords
public List<HTKLatticeReader.LatticeWord> getLatticeWords()
getNumStates
public int getNumStates()
getWordsOverSpan
public List<HTKLatticeReader.LatticeWord> getWordsOverSpan(int a,
int b)
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Stanford NLP Group