public class HTSCARTReader extends Object
| Constructor and Description |
|---|
HTSCARTReader() |
| Modifier and Type | Method and Description |
|---|---|
int |
getVectorSize() |
CART[] |
load(int numStates,
InputStream treeStream,
InputStream pdfStream,
HMMData.PdfFileFormat fileFormat,
FeatureDefinition featDefinition,
PhoneTranslator phTranslator)
Load the cart from the given file
|
static void |
main(String[] args) |
public int getVectorSize()
public CART[] load(int numStates, InputStream treeStream, InputStream pdfStream, HMMData.PdfFileFormat fileFormat, FeatureDefinition featDefinition, PhoneTranslator phTranslator) throws IOException, MaryConfigurationException
numStates - number of states in the HTS model, it will create one cart tree per state.treeStream - the HTS tree text file, example tree-mgc.inf.pdfStream - the corresponding HTS pdf binary file, example mgc.pdf.fileFormat - fileFormatfeatDefinition - the feature definitionphTranslator - a phone translatorIOException - if a problem occurs while loadingMaryConfigurationException - MaryConfigurationExceptionpublic static void main(String[] args) throws IOException, InterruptedException
IOExceptionInterruptedExceptionCopyright © 2000–2016 DFKI GmbH. All rights reserved.