1
/* ====================================================================
2
* Copyright (c) 1994-2000 Carnegie Mellon University. All rights
5
* Redistribution and use in source and binary forms, with or without
6
* modification, are permitted provided that the following conditions
9
* 1. Redistributions of source code must retain the above copyright
10
* notice, this list of conditions and the following disclaimer.
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
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.
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.
33
* ====================================================================
36
/*********************************************************************
44
*********************************************************************/
49
#include <s3/lexicon.h>
50
#include <s3/model_def_io.h>
51
#include <s3/acmod_set.h>
54
ts_cnt(uint32 *cnt, /* observation counts */
56
model_def_t *mdef, /* model definitions */
58
uint16 *seg, /* Viterbi (CI phone,state) pairs for all frames */
61
acmod_id_t *phone, /* CI phone sequence (already validated) */
69
* Log record. Maintained by RCS.
72
* Revision 1.4 2004/07/21 19:17:26 egouvea
73
* Changed the license terms to make it the same as sphinx2 and sphinx3.
75
* Revision 1.3 2001/04/05 20:02:31 awb
76
* *** empty log message ***
78
* Revision 1.2 2000/09/29 22:35:14 awb
79
* *** empty log message ***
81
* Revision 1.1 2000/09/24 21:38:32 awb
82
* *** empty log message ***
84
* Revision 1.1 97/07/16 11:38:16 eht
87
* Revision 1.1 1996/03/25 15:22:04 eht