SPRAAK
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
spr_hmmmerge.c File Reference

Concatenate two HMMs. More...

Detailed Description

Concatenate two HMMs.

spr_hmmmerge <-i hmm_file> [-gi mvg_file] [-seli sel_file] [-u unit_fname] [-am_opt acmod_opt]
    [-o hmm_file] [-go hmm_file] [-selo sel_file] [-nu unit_fname] [-i2 FilenameOfHmmToAdd]
    [-gi2 FilenameOfMVGToAdd] [-seli2 FilenameOfSelectToAdd] [-u2 UnitFileForHmmToAdd]
Parameters
-i<em>hmm_file</em><aname="spr_hmmmerge.i" class="el">
HMM-file to read.
-gi<em>mvg_file</em><aname="spr_hmmmerge.gi" class="el">
MVG-file to read. If specified, this MVG file is read instead of the MVG file given in the header of the input HMM.
-seli<em>sel_file</em><aname="spr_hmmmerge.seli" class="el">
SEL-file to read. If specified, this SELECT file is read instead of the SELECT file given in the header of the input HMM.
-u<em>unit_fname</em><aname="spr_hmmmerge.u" class="el">
UNIT-file to read. If specified, this unit file is used to read the input HMM instead of the file corresponding to the filename in the header of the input HMM.
-am_opt<em>acmod_opt</em><aname="spr_hmmmerge.am_opt" class="el">
Extra options for loading the acoustic model.
-o<em>hmm_file</em><aname="spr_hmmmerge.o" class="el">
HMM-file to write to. If not specified, the input HMM will be overwritten.
-go<em>hmm_file</em><aname="spr_hmmmerge.go" class="el">
MVG-file to write to. By default the input mvg file will be overwritten.
-selo<em>sel_file</em><aname="spr_hmmmerge.selo" class="el">
SEL-file to write to. By default is input sel file will be overwritten.
-nu<em>unit_fname</em><aname="spr_hmmmerge.nu" class="el">
Specify a new unit file to write the units to (or as input for rearanging the existing units).
-i2<em>FilenameOfHmmToAdd</em><aname="spr_hmmmerge.i2" class="el">
Second HMM.
-gi2<em>FilenameOfMVGToAdd</em><aname="spr_hmmmerge.gi2" class="el">
If specified, this MVG file is read instead of the MVG file given in the header of the additional HMM.
-seli2<em>FilenameOfSelectToAdd</em><aname="spr_hmmmerge.seli2" class="el">
If specified, this SELECT file is read instead of the SELECT file given in the header of the additional HMM.
-u2<em>UnitFileForHmmToAdd</em><aname="spr_hmmmerge.u2" class="el">
If specified, this unit file is used to read the additional HMM, instead of the file corresponding to the filename in the header of that HMM.

Concatenate two HMMs. Adds a second HMM (given with option -i2, and options -gi2, -seli2 and -u2 or their defaults in the HMM keys) to the input hmm. Along with the output hmm, a new unit file is printed (-nu). To avoid confusion, each spelling in the input unit file is extended with _1 and each spelling in the additional units is extended with _2. Exception is the first noise unit, the spelling of this unit remains unchanged. For DD_HMM and SC_HMM, one should take care that the HMMs are based on the same codebooks or gaussians (NO checking). For SC_HMM, the input gaussians are written as output.

Revision History:
03/94, JD
creation
04/94, JD
adapted for continuous densities: .mvg file is adapted along with the .hmm in CD_HMM cases.
08/94, JD
adapted for selection of gaussians per state (SC_HMM)
01/96, JD
adapted for new structures in hmm60
07/97, JD
rewritten for extended hmm structures (state-variable mixture dimension, linear or logarithmic probabilities in HMM, ...)