public class HTKLatticeReader extends Object
Modifier and Type | Class and Description |
---|---|
static class |
HTKLatticeReader.LatticeWord |
Modifier and Type | Field and Description |
---|---|
boolean |
DEBUG |
boolean |
PRETTYPRINT |
static String |
SILENCE |
static boolean |
USEMAX |
static boolean |
USESUM |
Constructor and Description |
---|
HTKLatticeReader(String filename) |
HTKLatticeReader(String filename,
boolean mergeType) |
HTKLatticeReader(String filename,
boolean mergeType,
boolean debug,
boolean prettyPrint) |
Modifier and Type | Method and Description |
---|---|
List<HTKLatticeReader.LatticeWord> |
getLatticeWords() |
int |
getNumStates() |
List<HTKLatticeReader.LatticeWord> |
getWordsOverSpan(int a,
int b) |
static void |
main(String[] args) |
void |
printWords() |
void |
processLattice() |
public final boolean DEBUG
public final boolean PRETTYPRINT
public static final boolean USESUM
public static final boolean USEMAX
public static final String SILENCE
public HTKLatticeReader(String filename, boolean mergeType) throws Exception
Exception
public void printWords()
public void processLattice()
public List<HTKLatticeReader.LatticeWord> getLatticeWords()
public int getNumStates()
public List<HTKLatticeReader.LatticeWord> getWordsOverSpan(int a, int b)