Archive for the ‘source code’ Category

HHEd and the ModelCompilationManager

Saturday, May 23rd, 2009

Here is a code snippet from the modelcompilationmanager.cpp:

bool ModelCompilationManager::buildHMM10()
return execute(‘”‘+hHEd+”\” -A -D -T 1 -H \”"+htkIfyPath(tempDir)+”/hmm9/macros\” -H \”"+htkIfyPath(tempDir)+”/hmm9/hmmdefs\” -M \”"+htkIfyPath(tempDir)+”/hmm10/\” \”"+htkIfyPath(tempDir)+”/mktri.hed\” \”"+htkIfyPath(tempDir)+”/monophones1\”");

I have marked some things in the code snippet. Take a look into HHEd/Use if you want to know what
- the -A -D – T 1 means (probably standard options)
- the -H switch means (load macro file)
- the -H switch means (again)
- the -M switch means (store output in this directory)
- mktri.hed (this is probably the edCmdFile containing some commands)
- monophones1 (probably defines a set of HMMs)

modelcompilationmanager.cpp and HERest

Saturday, May 23rd, 2009

Let’s take a look into the file modelcompilationmanager.cpp:


You can see that the tool HERest is beeing invoked. The passing of the arguments -A -D -V -T 1 obviously guarantees that sufficient information is available (registration needed).

Obviously, there are several tools that are accessed by simon: HDMan, HLEd, HCopy, HCompV, HERest, HHEd, and HVite. These tools are not part of simon, you have to install them separately.