00001
00033
00034
00035
00036
00037
00038
00039
00040 #ifndef __J_DEFINE_H__
00041 #define __J_DEFINE_H__
00042
00043
00044
00046
00047
00048
00049 #define LM_UNDEF 0
00050 #define LM_PROB 1
00051 #define LM_DFA 2
00052
00053
00054 #define LM_NGRAM 0
00055 #define LM_DFA_GRAMMAR 1
00056 #define LM_DFA_WORD 2
00057 #define LM_NGRAM_USER 3
00058
00059
00060 #define J_RESULT_STATUS_REJECT_POWER -6
00061 #define J_RESULT_STATUS_TERMINATE -5
00062 #define J_RESULT_STATUS_ONLY_SILENCE -4
00063 #define J_RESULT_STATUS_REJECT_GMM -3
00064 #define J_RESULT_STATUS_REJECT_SHORT -2
00065 #define J_RESULT_STATUS_FAIL -1
00066 #define J_RESULT_STATUS_SUCCESS 0
00067
00068
00069
00070
00071
00072
00073
00074
00075 #define VERMES if (verbose_flag) jlog
00076
00081 #undef REPORT_MEMORY_USAGE
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091 #define SHORT_WORD_LEN 2
00092 #ifdef LOWMEM
00093
00094
00095 #define NO_SEPARATE_SHORT_WORD
00096 #else
00097 #ifdef LOWMEM2
00098
00099
00100 #define NO_SEPARATE_SHORT_WORD
00101 #define SEPARATE_BY_UNIGRAM
00102 #else
00103
00104
00105
00106 #endif
00107 #endif
00108
00109
00110
00111
00112
00113
00114 #define DEFAULT_LM_WEIGHT_MONO_PASS1 5.0
00115 #define DEFAULT_LM_PENALTY_MONO_PASS1 -1.0
00116 #define DEFAULT_LM_WEIGHT_MONO_PASS2 6.0
00117 #define DEFAULT_LM_PENALTY_MONO_PASS2 0.0
00118 #ifdef PASS1_IWCD
00119 #define DEFAULT_LM_WEIGHT_TRI_PASS1 8.0
00120 #define DEFAULT_LM_PENALTY_TRI_PASS1 -2.0
00121 #define DEFAULT_LM_WEIGHT_TRI_PASS2 8.0
00122 #define DEFAULT_LM_PENALTY_TRI_PASS2 -2.0
00123 #else
00124 #define DEFAULT_LM_WEIGHT_TRI_PASS1 9.0
00125 #define DEFAULT_LM_PENALTY_TRI_PASS1 8.0
00126 #define DEFAULT_LM_WEIGHT_TRI_PASS2 11.0
00127 #define DEFAULT_LM_PENALTY_TRI_PASS2 -2.0
00128 #endif
00129
00130
00131 #undef FIX_PENALTY
00132
00133
00134 #undef SP_BREAK_EVAL
00135 #undef SP_BREAK_DEBUG
00136 #undef SP_BREAK_RESUME_WORD_BEGIN
00137
00138 #ifdef GMM_VAD
00139 #define DEFAULT_GMM_MARGIN 20
00140 #define GMM_VAD_AUTOSHRINK_LIMIT 500
00141 #undef GMM_VAD_DEBUG
00142 #endif
00143
00144
00145 #ifdef SPSEGMENT_NAIST
00146 #define DEFAULT_SP_MARGIN 40
00147 #define DEFAULT_SP_DELAY 4
00148 #define SPSEGMENT_NAIST_AUTOSHRINK_LIMIT 500
00149 #endif
00150
00151
00152 #define PREFER_CENTER_ON_TRELLIS_LOOKUP
00153
00154
00155 #define STARTNODE_STEP 300
00156
00157
00158 #define IWSPENTRY_DEFAULT "<UNK> [sp] sp sp"
00159
00160
00161 #ifdef CONFIDENCE_MEASURE
00162 # ifndef CM_NBEST
00163 # define CM_SEARCH
00164 # endif
00165 #endif
00166
00167
00168 #undef GRAPHOUT_SEARCH_CONSIDER_RIGHT
00169
00170
00171
00172
00173 #ifdef CM_SEARCH_LIMIT
00174 #undef CM_SEARCH_LIMIT_AFTER
00175 #undef CM_SEARCH_LIMIT_POP
00176 #endif
00177
00178
00179
00180
00181 #define GRAPHOUT_PRECISE_BOUNDARY
00182
00183 #undef GDEBUG
00184
00185
00186 #undef FIX_35_PASS2_STRICT_SCORE
00187
00188
00189
00190 #define FIX_35_INHIBIT_SAME_WORD_EXPANSION
00191
00192
00193
00194
00205 #define GRAPHOUT_OVERWRITE
00206
00207
00213 #undef GRAPHOUT_OVERWRITE_GSCORE
00214
00221 #define GRAPHOUT_LIMIT_BOUNDARY_LOOP
00222
00235 #define GRAPHOUT_SEARCH_DELAY_TERMINATION
00236
00242 #define GRAPHOUT_DEPTHCUT
00243
00249 #define MINIMAL_BEAM_WIDTH 200
00250
00255 #undef USE_OLD_IWCD
00256
00262 #undef DETERMINE
00263
00264 #define FWD_NGRAM
00265
00266 #define MAX_SPEECH_ALLOC_STEP 320000
00267
00268
00269 #define POWER_REJECT_DEFAULT_THRES 9.0
00270
00275 #undef DEBUG_VTLN_ALPHA_TEST
00276 #define VTLN_RANGE 0.2
00277 #define VTLN_STEP 0.02
00278
00283 #define FAST_FACTOR1_SUCCESSOR_LIST
00284
00285
00286 #endif
00287