~ubuntu-branches/ubuntu/saucy/sphinxtrain/saucy

« back to all changes in this revision

Viewing changes to src/programs/mixw_interp/cmd_ln_defn.h

  • Committer: Package Import Robot
  • Author(s): Samuel Thibault
  • Date: 2013-01-02 04:10:21 UTC
  • Revision ID: package-import@ubuntu.com-20130102041021-ynsizmz33fx02hea
Tags: upstream-1.0.8
ImportĀ upstreamĀ versionĀ 1.0.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ====================================================================
 
2
 * Copyright (c) 1998-2000 Carnegie Mellon University.  All rights 
 
3
 * reserved.
 
4
 *
 
5
 * Redistribution and use in source and binary forms, with or without
 
6
 * modification, are permitted provided that the following conditions
 
7
 * are met:
 
8
 *
 
9
 * 1. Redistributions of source code must retain the above copyright
 
10
 *    notice, this list of conditions and the following disclaimer. 
 
11
 *
 
12
 * 2. Redistributions in binary form must reproduce the above copyright
 
13
 *    notice, this list of conditions and the following disclaimer in
 
14
 *    the documentation and/or other materials provided with the
 
15
 *    distribution.
 
16
 *
 
17
 * This work was supported in part by funding from the Defense Advanced 
 
18
 * Research Projects Agency and the National Science Foundation of the 
 
19
 * United States of America, and the CMU Sphinx Speech Consortium.
 
20
 *
 
21
 * THIS SOFTWARE IS PROVIDED BY CARNEGIE MELLON UNIVERSITY ``AS IS'' AND 
 
22
 * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 
 
23
 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 
24
 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY
 
25
 * NOR ITS EMPLOYEES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 
26
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 
 
27
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
 
28
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 
 
29
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 
 
30
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 
 
31
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
32
 *
 
33
 * ====================================================================
 
34
 *
 
35
 */
 
36
/*********************************************************************
 
37
 *
 
38
 * File: cmd_ln_defn.h
 
39
 * 
 
40
 * Description: 
 
41
 *      Command line definitions for bw
 
42
 *
 
43
 * Author: 
 
44
 *      Eric Thayer (eht@cs.cmu.edu)
 
45
 *********************************************************************/
 
46
 
 
47
#ifndef ARG_DEFN_H
 
48
#define ARG_DEFN_H
 
49
 
 
50
 
 
51
    const char helpstr[] =  
 
52
"Description: \n\
 
53
\n\
 
54
    A routine that provides and ad-hoc way of speaker adaptation by mixture \n\
 
55
    weight interpolation.  SD and SI model's mixture weight are first \n\
 
56
    determined and they act as an inputs of this program. The output \n\
 
57
    is the interpolated mixture weight. \n\
 
58
\n\
 
59
    The interpolation is controlled by the value lambda (-sillambda) ";
 
60
 
 
61
    const char examplestr[]=
 
62
"Example: \n\
 
63
\n\
 
64
    mixw_interp -SImixwfn si_mixw -SDmixwfn  sd_mxiw -outmixwfn final_mixw -SIlambad 0.7";
 
65
    static arg_t defn[] = {
 
66
        { "-help",
 
67
          ARG_BOOLEAN,
 
68
          "no",
 
69
          "Shows the usage of the tool"},
 
70
 
 
71
        { "-example",
 
72
          ARG_BOOLEAN,
 
73
          "no",
 
74
          "Shows example of how to use the tool"},
 
75
 
 
76
        { "-SImixwfn",
 
77
          ARG_STRING,
 
78
          NULL,
 
79
          "The SI mixture weight parameter file name"},
 
80
 
 
81
        { "-SDmixwfn",
 
82
          ARG_STRING,
 
83
          NULL,
 
84
          "The SD mixture weight parameter file name"},
 
85
 
 
86
        { "-outmixwfn",
 
87
          ARG_STRING,
 
88
          NULL,
 
89
          "The output interpolated mixture weight parameter file name"},
 
90
 
 
91
        { "-SIlambda",
 
92
          ARG_FLOAT32,
 
93
          "0.5",
 
94
          "Weight given to SI mixing weights" },
 
95
 
 
96
    };
 
97
 
 
98
 
 
99
#endif /* ARG_DEFN_H */