1/*---------------------------------------------------------------------------* 2 * hmm_type.h * 3 * * 4 * Copyright 2007, 2008 Nuance Communciations, Inc. * 5 * * 6 * Licensed under the Apache License, Version 2.0 (the 'License'); * 7 * you may not use this file except in compliance with the License. * 8 * * 9 * You may obtain a copy of the License at * 10 * http://www.apache.org/licenses/LICENSE-2.0 * 11 * * 12 * Unless required by applicable law or agreed to in writing, software * 13 * distributed under the License is distributed on an 'AS IS' BASIS, * 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * 15 * See the License for the specific language governing permissions and * 16 * limitations under the License. * 17 * * 18 *---------------------------------------------------------------------------*/ 19 20 21 22#ifndef _h_hmm_types 23#define _h_hmm_types 24 25#ifdef SET_RCSID 26static const char hmm_type_h[] = "$Id: hmm_type.h,v 1.1.10.5 2007/08/31 17:44:53 dahan Exp $"; 27#endif 28 29 30#include <math.h> 31#include "all_defs.h" 32 33typedef ESR_BOOL booldata; /* general boolean data */ 34typedef int scodata; /* for path scores */ 35typedef int prdata; /* for observation probabilities */ 36typedef signed char wtdata; 37typedef unsigned char unidata; /* for unimodal model storage */ 38typedef unidata moddata; /* for segmental model storage */ 39typedef double covdata; /* covariance data */ 40typedef unsigned char featdata; /* for preprocessor data */ 41typedef int imeldata; /* for preprocessor data */ 42#define IMELDATA_TO_FEATDATA(X) ((featdata)(X)) 43typedef long accdata; /* for accumulate storage */ 44typedef unsigned char phonedata; /* for model contexts */ 45typedef phonedata conxdata; 46typedef int latdata; /* for lattice identifiers */ 47 48#endif 49