Exemplo n.º 1
0
void ReportUsage(void)
{
   printf("\nUSAGE: HNetTest [options] DictFile NetFile HMMList\n\n");
   PrintStdOpts("H");
   printf("\n\n");
   exit(0);
}
Exemplo n.º 2
0
/* ReportUsage: */
static void ReportUsage(void)
{
   printf("\nMinimum Generation Error (MGE) based HMM training\n\n");
   printf("USAGE: HMgeTool [options] ScriptFile\n\n");
   printf(" Option                                                    Default\n\n");
   printf(" -a i j  i: max times to shift the boundary                none\n");
   printf("         j: max length for each boundary shifting          1\n");
   printf(" -b i j  i: end iteration for boundary adjustment          none\n");
   printf("         j: window size for boundary adjustment            5\n");
   printf(" -c      output the process data                           off\n");
   printf(" -d dir  HMM definition directory                          none\n");
   printf(" -e      enable limit the updating rate for each step      off\n");
   printf(" -f r    frame rate                                        50000\n");
   printf(" -g      enable multiply variance ratio for mean updating  off\n");
   printf(" -i i j  start/end iteration index of MGE training         0 0\n");
   printf(" -j flg  0: eval 1: train 2: adapt                         1\n");
   printf(" -l dir  output label directory                            none\n");
   printf(" -o ext  HMM def file extension                            none\n");
   printf(" -p a b  parameter for step size: 1/(a + b*n)              1000.0 1.0\n");
   printf(" -r file load HMM for reference                            none\n");
   printf(" -s file updating scale file                               none\n");
   printf(" -u mvwa update t)rans m)eans v)ars w)ghts                 none\n");
   printf("                a)daptation xform\n");
   printf(" -v f    threshold for switching spaces for MSD            0.5\n");
   printf(" -w f    distance weight for gv component                  1.0\n");
   printf(" -x ext  label file extension                              lab\n");
   PrintStdOpts("ABCDGHIJKLMSTX");
   printf("\n");
   Exit(0);
}
Exemplo n.º 3
0
static Boolean saveBinary = FALSE;  /* save output in binary  */

static Boolean ldBinary = TRUE;        /* load/dump in binary */

static FileFormat dff=UNDEFF;       /* data file format */

static FileFormat lff=UNDEFF;       /* label file format */

static int updateMode = UPMODE_UPDATE; /* dump summed accs, update models or do both? */





static ConfParam *cParm[MAXGLOBS];   /* configuration parameters */

static int nParm = 0;               /* total num params */



static Boolean al_hmmUsed = FALSE;   /* Set for 2-model ReEstimation */

static char al_hmmDir[MAXFNAMELEN];  /* dir to look for alignment hmm defs */

static char al_hmmExt[MAXSTRLEN];  	 /* alignment hmm def file extension */
Exemplo n.º 4
0
void ReportUsage(void)
{
   printf("\nUSAGE: HMGenS [options] hmmList dmList labFiles...\n\n");
   printf(" Option                                                    Default\n\n");
   printf(" -a      Use an input linear transform for HMMs            off\n");
   printf(" -b      Use an input linear transform for dur models      off\n");
   printf(" -c n    type of parameter generation algorithm            0\n");
   printf("          0: both mix and state sequences are given        \n");
   printf("          1: state sequence is given,                      \n");
   printf("             but mix sequence is hidden                    \n");
   printf("          2: both state and mix sequences are hidden       \n");
   printf(" -d s    dir to find hmm definitions                       current\n");
   printf(" -e      use model alignment from label for pruning        off\n");
   printf(" -f f    frame shift in 100 ns                             50000\n");
   printf(" -g f    Mixture pruning threshold                         10.0\n");
   printf(" -h s [s] set speaker name pattern to s,                   *.%%%%%%\n");
   printf("         optionally set parent patterns                    \n");
   printf(" -m      use model alignment for duration                  off\n");
   printf(" -n s    dir to find duration model definitions            current\n");
   printf(" -p      output pdf sequences                              off\n");
   printf(" -r f    speaking rate factor (f<1: fast  f>1: slow)       1.0\n");
   printf(" -s      use state alignment for duration                  off\n");
   printf(" -t f [i l] set pruning to f [inc limit]                   inf\n");
   printf(" -v f    threshold for switching spaces for MSD            0.5\n");
   printf(" -x s    extension for hmm files                           none\n");
   printf(" -y s    extension for duration model files                none\n");
   PrintStdOpts("BEGHIJLMNSTWXY");
   printf("\n");
   Exit(0);
}
Exemplo n.º 5
0
void ReportUsage(void)
{
   printf("\nUSAGE: HVite [options] VocabFile HMMList DataFiles...\n\n");
   printf(" Option                                       Default\n\n");
   printf(" -a      align from label files               off\n");
   printf(" -b s    def s as utterance boundary word     none\n");
   printf(" -c f    tied mixture pruning threshold       10.0\n");
   printf(" -d s    dir to find hmm definitions          current\n");
   printf(" -e      save direct audio rec output         off\n");
   printf(" -f      output full state alignment          off\n");
   printf(" -g      enable audio replay                  off\n");
   printf(" -h s    set speaker name pattern             *.mfc\n");
   printf(" -i s    Output transcriptions to MLF s       off\n"); 
   printf(" -j i    Online MLLR adaptation               off\n");
   printf("         Perform update every i utterances      \n");
   printf(" -k      use an input transform               off\n");
   printf(" -l s    dir to store label/lattice files     current\n");
   printf(" -m      output model alignment               off\n");
   printf(" -n i [N] N-best recognition (using i tokens) off\n");
   printf(" -o s    output label formating NCSTWMX       none\n");
   printf(" -p f    inter model trans penalty (log)      0.0\n");
   printf(" -q s    output lattice formating ABtvaldmn   tvaldmn\n");
   printf(" -r f    pronunciation prob scale factor      1.0\n");
   printf(" -s f    grammar scale factor                 1.0\n");
   printf(" -t f [f f] set pruning threshold             0.0\n");
   printf(" -u i    set pruning max active               0\n");
   printf(" -v f    set word end pruning threshold       0.0\n"); 
   printf(" -w [s]  recognise from network               off\n");
   printf(" -x s    extension for hmm files              none\n");
   printf(" -y s    output label file extension          rec\n");
   printf(" -z s    generate lattices with extension s   off\n");
   PrintStdOpts("BEFGHIJKLPSX");
   printf("\n\n");
}
Exemplo n.º 6
0
void ReportUsage(void)
{
   printf("\nUSAGE: LFoF [options] wordMap fofFile <[mult] file ....>\n\n");
   printf(" Option                                       Default\n\n");
   printf(" -f n    set FoF table size to n              128\n");
   printf(" -n n    set N-gram                           3\n");
   PrintStdOpts("");
   printf("\n\n");
}
Exemplo n.º 7
0
#include "HMem.h"

#include "HMath.h"

#include "HWave.h"

#include "HLabel.h"

#include "LUtil.h"
Exemplo n.º 8
0

#define T_TOP       0001



/* -------------------- Global variables ----------------------- */


Exemplo n.º 9
0
void ReportUsage(void)
{
   printf("\nUSAGE: LNorm [options] inModel outModel\n\n");
   printf(" Option                                       Default\n\n");
   printf(" -c n c  set cutoff for n-gram to c           0\n");
   printf(" -d n c  set weighted discount pruning to c   off\n");
   printf(" -f s    set output LM format to s            %s\n", ReturnLMName(DEF_SAVEFMT));
   printf(" -n n    save model as n-gram                 max\n");
   printf(" -w fn   prune model using word list in fn    off\n");
   PrintStdOpts("GIST");
   printf("\n\n");
}
Exemplo n.º 10
0
void ReportUsage(void)
{
   printf("\nModified for HTS\n");
   printf("\nUSAGE: HSGen [options] latticeFile dictFile\n\n");
   printf(" Option                                       Default\n\n");
   printf(" -l      Include line numbers                 off\n");
   printf(" -n N    Number of sentences to generate      100\n");
   printf(" -q      Suppress sentence output             off\n");
   printf(" -s      Compute grammar stats                off\n");
   PrintStdOpts("");
   printf("\n\n");
}
Exemplo n.º 11
0
void ReportUsageHCopy(void)
{
   printf("\nUSAGE: HCopy [options] src [ + src ...] tgt ...\n\n");
   printf(" Option                                       Default\n\n");
   printf(" -a i     Use level i labels                  1\n");
   printf(" -e t     End copy at time t                  EOF\n");
   printf(" -i mlf   Save labels to mlf s                null\n");
   printf(" -l dir   Output target label files to dir    current\n");
   printf(" -m t     Set margin of t around x/n segs     0\n");
   printf(" -n i [j] Extract i'th [to j'th] label        off\n");
   printf(" -s t     Start copy at time t                0\n");
   printf(" -t n     Set trace line width to n           70\n");
   printf(" -x s [n] Extract [n'th occ of] label  s      off\n");
   PrintStdOpts("FGILPOX");
}
Exemplo n.º 12
0
void ReportUsage(void)
{
   printf("\nUSAGE: HQuant [options] vqFile trainFiles...\n\n" );
   printf(" Option                                       Default\n\n");
   printf(" -d      Use diagonal cov Mahalanobis         Euclidean\n");
   printf(" -f      Use full covariance Mahalanobis      Euclidean\n");
   printf(" -g      Output global covar to codebook      off\n");
   printf(" -l s    Set segment label to s               none\n");
   printf(" -n S N  Set codebook size for stream S to N  N=%d\n",DEF_NCLUST);
   printf(" -s N    Set number of streams to N           1\n");
   printf(" -t      Create tree-stuctured codebooks      linear\n");
   printf(" -w S N  Set width of stream S to N           default\n");
   PrintStdOpts("FGILX");
   printf("\n\n");
}
Exemplo n.º 13
0
void ReportUsage(void)
{
   printf("\nUSAGE: HInit [options] hmmFile trainFiles...\n\n");
   printf(" Option                                       Default\n\n");
   printf(" -e f    Set convergence factor epsilon       1.0E-4\n");
   printf(" -i N    Set max iterations to N              20\n");
   printf(" -l s    Set segment label to s               none\n");
   printf(" -m N    Set min segments needed              3\n");
   printf(" -n      Update hmm (suppress uniform seg)    off\n");
   printf(" -o fn   Store new hmm def in fn (name only)  outDir/srcfn\n");
   printf(" -u mvwt Update m)eans v)ars w)ghts t)rans    mvwt\n");
   printf(" -v f    Set minimum variance to f            1.0E-2\n");
   printf(" -w f    set mix wt/disc prob floor to f      0.0\n");
   PrintStdOpts("BFGHILMX");
   printf("\n\n");
}
Exemplo n.º 14
0
static char *segLab = NULL;         /* segment label if any */

static LabId  segId  = NULL;        /* and its id */

static LabId  hmmId  = NULL;        /* id of model */

static char *labDir = NULL;         /* label file directory */

static char *labExt = "lab";        /* label file extension */

static float minVar  = 0.0;         /* minimum variance */

static FileFormat dff=UNDEFF;       /* data file format */

static FileFormat lff=UNDEFF;       /* label file format */
Exemplo n.º 15
0
#include "HWave.h"

#include "HVQ.h"

#include "HParm.h" 

#include "HLabel.h"

#include "HModel.h"

#include "HUtil.h" 

#include "HDict.h"

#include "HNet.h"
Exemplo n.º 16
0
void ReportUsage(void)
{
   printf("\nUSAGE: HLMCopy [options] inModel outModel\n\n");
   printf(" Option                                       Default\n\n");
   printf(" -c n c  set pruning for n-gram to c          0\n");
   printf(" -d s    read source dict from s              none\n");
   printf(" -f s    set output LM format to s            %s\n", ReturnLMName(DEF_SAVEFMT));
   printf(" -m      allow multiple identical prons       all\n");
   printf(" -n n    save model as n-gram                 max\n");
   printf(" -o      copy first dictionary pron to output all\n");
   printf(" -u s    read new unigrams from s             none\n");
   printf(" -v s    write pruned dictionary to s         none\n");
   printf(" -w fn   prune model using word list in fn    off\n");
   PrintStdOpts("ST");
   printf("\n\n");
}
Exemplo n.º 17
0
void ReportUsage(void)
{
   printf("\nUSAGE: HSmooth [options] hmmList AccFiles...\n\n");
   printf(" Option                                       Default\n\n");
   printf(" -b f    set convergence epsilon              0.0001\n");
   printf(" -c N    max num steps in binary chop         16\n");
   printf(" -d s    dir to find hmm definitions          current\n");
   printf(" -m N    set min examples needed per model    3\n");
   printf(" -o s    extension for new hmm files          as src\n");
   printf(" -s s    print statistics to file s           off\n"); 
   printf(" -u tmvw Update t)rans m)eans v)ars w)ghts    tmvw\n");
   printf(" -v f    Set minimum variance to f            0.0\n");
   printf(" -w f    Set mix weight floor to f*MINMIX     0.0\n");
   printf(" -x s    extension for hmm files              none\n");
   PrintStdOpts("BHMST");
   printf("\n\n");
}
Exemplo n.º 18
0
void ReportUsage(void)
{
   printf("\nUSAGE: HLStats [options] hmmList labFile...\n\n");
   printf(" Option                                       Default\n\n");
   printf(" -b fn    output bigram to file fn            off\n");
   printf(" -c N     count num logical occs upto N       none\n");
   printf(" -d       compute duration statistics         off\n");
   printf(" -f f     set matrix bigram floor prob f      0.0\n");
   printf(" -h N     set hashsize: medium(1), large(2)   small(0)\n");
   printf(" -l s     output covering list of models to s off\n");
   printf(" -o       generate wsj style back-off files   matrix\n");
   printf(" -p N     count num physical occs upto N      none\n");
   printf(" -s s1 s2 select start s1 and end s2 labels   !ENTER !EXIT\n");
   printf(" -t n     set threshold for including bigram  0\n");
   printf(" -u f     set back off unigram floor prob f   1.0\n");
   PrintStdOpts("GIX");
   printf("\n\n");
}
Exemplo n.º 19
0


/* -------------------------- Trace Flags ------------------------ */



static int trace = 0;

#define T_TOP  0001     /* Top Level tracing */



/* ---------------------- Global Variables ----------------------- */



static Boolean srcHdr  = FALSE;  /* print source header info */
Exemplo n.º 20
0
void ReportUsage(void)
{
   printf("\nUSAGE: LPlex [options] langmodel labelFiles...\n\n");
   printf(" Option                                       Default\n\n");
   printf(" -c n c  set pruning for n-gram to c          off\n");
   printf(" -d n c  set weighted discount pruning to c   off\n");
   printf(" -e s t  Label t is equivalent to s           off\n");
   printf(" -i f s  interpolate with model s, weight f   off\n");
   printf(" -n N    calculate N-gram perplexity          max in LM\n");
   printf(" -o      print OOV word statistics            off\n");
   printf(" -s fn   print prob stream to file fn         off\n");
   printf(" -t      text stream mode                     off\n");
   printf(" -u      use OOV words in context             off\n");
   printf(" -w fn   use word list from fn                off\n");
   printf(" -z s    Redefine null class name to s        ???\n");
   PrintStdOpts("GIST");
   printf("\n\n");
}
Exemplo n.º 21
0
void ReportUsage(void)
{
   printf("\nUSAGE: LAdapt [options] langModel txtfile ....\n\n");
   printf(" Option                                       Default\n\n");
   printf(" -a n    allow n new words in input text      %d\n", newWords);
   printf(" -b n    set ngram buffer size                %d\n", ngbSize);
   printf(" -c n c  set pruning for n-gram to c          %d\n", DEF_CUTOFF);
   printf(" -d s    set root n-gram data file name       %s\n", rootFN);
   printf(" -f s    set output LM format to s            %s\n", ReturnLMName(DEF_SAVEFMT));
   printf(" -g      use existing n-gram files            off\n");
   printf(" -i f s  interpolate with model s, weight f   off\n");
   printf(" -j n c  set weighted discount pruning to c   off\n");
   printf(" -n n    set n-gram size                      %d\n", nSize);
#ifndef HTK_TRANSCRIBER
   printf(" -s s    store s in gram header source flds   none\n");
   printf(" -t      use Turing-Good discounting          off\n");
#endif
   printf(" -w fn   load word list from fn               none\n");
#ifndef HTK_TRANSCRIBER
   printf(" -x      save model with counts               off\n");
#endif
   PrintStdOpts("");
   printf("\n\n");
}