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

« back to all changes in this revision

Viewing changes to src/programs/mk_mdef_gen/mk_untied.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) 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
#ifndef MK_UNTIED_H
 
37
#define MK_UNTIED_H
 
38
 
 
39
 
 
40
#include <s3/s3.h>
 
41
#include "heap.h"
 
42
#include "hash.h"
 
43
 
 
44
int32 make_ci_list_frm_mdef(const char  *mdeffile,
 
45
                            char  ***CIlist,
 
46
                            int32 *cilistsize);
 
47
 
 
48
int32 make_ci_list_cd_hash_frm_phnlist(const char  *phnlist,
 
49
                                    char  ***CIlist,
 
50
                                    int32 *cilistsize,
 
51
                                    hashelement_t ***CDhash,
 
52
                                    int32 *NCDphones);
 
53
 
 
54
int32 make_ci_list_cd_hash_frm_mdef(const char  *mdeffile,
 
55
                                    char  ***CIlist,
 
56
                                    int32 *cilistsize,
 
57
                                    hashelement_t ***CDhash,
 
58
                                    int32 *NCDphones);
 
59
 
 
60
int32  read_dict(const char *dictfile, const char *fillerdictfile,
 
61
                 dicthashelement_t ***dicthash);
 
62
 
 
63
int32 make_mdef_from_list(const char *mdeffile,
 
64
                        char **CIlist, 
 
65
                        int32 cilistsize,
 
66
                        heapelement_t **CDheap,
 
67
                        int32 cdheapsize,
 
68
                        char  *pgm);
 
69
 
 
70
int32 make_dict_triphone_list (dicthashelement_t **dicthash,
 
71
                          hashelement_t ***triphonehash,
 
72
                          int ignore_wpos);
 
73
 
 
74
int32 make_CD_heap(hashelement_t  **triphonehash,
 
75
                   int32  threshold,
 
76
                   heapelement_t ***CDheap,
 
77
                   int32  *cdheapsize);
 
78
 
 
79
int32 find_threshold(hashelement_t  **triphonehash);
 
80
 
 
81
int32  count_triphones (const char *transfile,
 
82
                        dicthashelement_t **dicthash,
 
83
                        hashelement_t **tphnhash,
 
84
                        phnhashelement_t ***CIhash,
 
85
                        int ignore_wpos);
 
86
 
 
87
int32   print_counts(const char *countfn, phnhashelement_t  **CIhash,
 
88
                     hashelement_t **CDhash);
 
89
#endif