public class KaldiTextParser
extends java.lang.Object
Constructor and Description |
---|
KaldiTextParser(java.lang.String path) |
Modifier and Type | Method and Description |
---|---|
void |
assertToken(java.lang.String expected,
java.lang.String actual) |
void |
expectToken(java.lang.String expected) |
float[] |
getFloatArray() |
int |
getInt() |
int[] |
getIntArray() |
java.lang.String |
getToken() |
java.util.List<java.lang.String> |
getTokenList(java.lang.String openToken,
java.lang.String closeToken) |
float |
parseFloat() |
public KaldiTextParser(java.lang.String path) throws java.io.IOException, java.net.MalformedURLException
java.io.IOException
java.net.MalformedURLException
public java.lang.String getToken()
public int getInt()
public float parseFloat()
public int[] getIntArray()
public float[] getFloatArray()
public java.util.List<java.lang.String> getTokenList(java.lang.String openToken, java.lang.String closeToken)
public void expectToken(java.lang.String expected)
public void assertToken(java.lang.String expected, java.lang.String actual)