Main Page
Classes
Files
File List
File Members
include
srch_output.h
Go to the documentation of this file.
1
/* -*- c-basic-offset: 4; indent-tabs-mode: nil -*- */
2
/* ====================================================================
3
* Copyright (c) 1999-2004 Carnegie Mellon University. All rights
4
* reserved.
5
*
6
* Redistribution and use in source and binary forms, with or without
7
* modification, are permitted provided that the following conditions
8
* are met:
9
*
10
* 1. Redistributions of source code must retain the above copyright
11
* notice, this list of conditions and the following disclaimer.
12
*
13
* 2. Redistributions in binary form must reproduce the above copyright
14
* notice, this list of conditions and the following disclaimer in
15
* the documentation and/or other materials provided with the
16
* distribution.
17
*
18
* This work was supported in part by funding from the Defense Advanced
19
* Research Projects Agency and the National Science Foundation of the
20
* United States of America, and the CMU Sphinx Speech Consortium.
21
*
22
* THIS SOFTWARE IS PROVIDED BY CARNEGIE MELLON UNIVERSITY ``AS IS'' AND
23
* ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
24
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
25
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY
26
* NOR ITS EMPLOYEES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33
*
34
* ====================================================================
35
*
36
*/
37
38
/* srch_output.h
39
* HISTORY
40
* $Log$
41
* Revision 1.1 2006/04/05 20:27:30 dhdfu
42
* A Great Reorganzation of header files and executables
43
*
44
* Revision 1.2 2006/02/23 05:13:26 arthchan2003
45
* Merged from branch SPHINX3_5_2_RCI_IRII_BRANCH: A wrapper for the outptu functions of the search routine
46
*
47
* Revision 1.1.2.1 2006/01/17 01:24:21 arthchan2003
48
* The home of log output functions.
49
*
50
*/
51
52
#include <stdio.h>
53
54
#include <
s3types.h
>
55
#include <glist.h>
56
#include <
dict.h
>
57
#include <
lm.h
>
58
#include <
search.h
>
59
60
61
#ifndef _SRCH_OUTPUT_H_
62
#define _SRCH_OUTPUT_H_
63
64
65
#ifdef __cplusplus
66
extern
"C"
{
67
#endif
68
#if 0
69
/* Fool Emacs. */
70
}
71
#endif
72
73
#define HYPSEG_SUCCESS 1
74
#define HYPSEG_FAILURE 0
75
#define WORST_CONFIDENCE_SCORE ((int)0xE0000000)
76
77
int32
compute_scale
(int32 sf, int32 ef, int32* scalearray);
78
90
S3DECODER_EXPORT
91
void
match_write
(FILE *fp,
92
glist_t hyp,
93
char
* uttid,
94
dict_t
* dict,
95
char
*hdr
96
);
97
99
S3DECODER_EXPORT
100
void
matchseg_write
(FILE *fp,
101
glist_t hyp,
102
char
*uttid,
103
char
*hdr,
104
lm_t
* lm,
105
dict_t
* dict,
106
int32 num_frm,
107
int32 *scl,
109
int32 unnorm
110
);
111
112
113
118
void
match_detailed
(FILE* fp,
119
glist_t hyp,
120
char
* uttid,
121
char
* LBL,
122
char
* lbl,
123
int32* senscale,
127
dict_t
*dict
128
);
129
130
134
S3DECODER_EXPORT
135
int
read_s3hypseg_line
(
char
*line,
136
seg_hyp_line_t
*
seg_hyp_line
,
137
lm_t
* lm,
138
dict_t
*dict
139
);
140
141
S3DECODER_EXPORT
142
int
free_seg_hyp_line
(
seg_hyp_line_t
*
seg_hyp_line
);
143
149
S3DECODER_EXPORT
150
void
log_hypstr
(FILE *fp,
151
srch_hyp_t
*hypptr,
152
char
*uttid,
153
int32 exact,
154
int32 scr,
155
dict_t
*dict
156
);
157
158
159
S3DECODER_EXPORT
160
void
log_hyp_detailed
(FILE *fp,
161
srch_hyp_t
*hypptr,
162
char
*uttid,
163
char
*LBL,
164
char
*lbl,
165
int32* senscale
169
);
170
176
void
log_hypseg
(
char
*uttid,
177
FILE *fp,
178
srch_hyp_t
*hypptr,
179
int32 nfrm,
180
int32 scl,
181
float64 lwf,
182
dict_t
* dict,
183
lm_t
*lm,
184
int32 unnorm
185
);
186
187
#ifdef __cplusplus
188
}
189
#endif
190
191
192
#endif
Generated by
1.8.3.1