Debian Codegraph @

lang/usenglish/us_phoneset.c

raw
1 /*************************************************************************/
2 /* */
3 /* Carnegie Mellon University and */
4 /* Centre for Speech Technology Research */
5 /* University of Edinburgh, UK */
6 /* Copyright (c) 1998-2001 */
7 /* All Rights Reserved. */
8 /* */
9 /* Permission is hereby granted, free of charge, to use and distribute */
10 /* this software and its documentation without restriction, including */
11 /* without limitation the rights to use, copy, modify, merge, publish, */
12 /* distribute, sublicense, and/or sell copies of this work, and to */
13 /* permit persons to whom this work is furnished to do so, subject to */
14 /* the following conditions: */
15 /* 1. The code must retain the above copyright notice, this list of */
16 /* conditions and the following disclaimer. */
17 /* 2. Any modifications must be clearly marked as such. */
18 /* 3. Original authors' names are not deleted. */
19 /* 4. The authors' names are not used to endorse or promote products */
20 /* derived from this software without specific prior written */
21 /* permission. */
22 /* */
23 /* THE UNIVERSITY OF EDINBURGH, CARNEGIE MELLON UNIVERSITY AND THE */
24 /* CONTRIBUTORS TO THIS WORK DISCLAIM ALL WARRANTIES WITH REGARD TO */
25 /* THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY */
26 /* AND FITNESS, IN NO EVENT SHALL THE UNIVERSITY OF EDINBURGH, CARNEGIE */
27 /* MELLON UNIVERSITY NOR THE CONTRIBUTORS BE LIABLE FOR ANY SPECIAL, */
28 /* INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER */
29 /* RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION */
30 /* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF */
31 /* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */
32 /* */
33 /*******************************************************/
34 /** Autogenerated phoneset trees for us */
35 /*******************************************************/
36
37 #include "cst_string.h"
38 #include "cst_phoneset.h"
39
40 extern const cst_phoneset us_phoneset;
41
42 static const char * const us_featnames[] = {
43 "vc",
44 "vlng",
45 "vheight",
46 "vfront",
47 "vrnd",
48 "ctype",
49 "cplace",
50 "cvox",
51 NULL };
52
53 static const char * const us_phonenames[] = {
54 "aa",
55 "ae",
56 "ah",
57 "ao",
58 "aw",
59 "ax",
60 "axr",
61 "ay",
62 "b",
63 "ch",
64 "d",
65 "dh",
66 "dx",
67 "eh",
68 "el",
69 "em",
70 "en",
71 "er",
72 "ey",
73 "f",
74 "g",
75 "hh",
76 "hv",
77 "ih",
78 "iy",
79 "jh",
80 "k",
81 "l",
82 "m",
83 "n",
84 "nx",
85 "ng",
86 "ow",
87 "oy",
88 "p",
89 "r",
90 "s",
91 "sh",
92 "t",
93 "th",
94 "uh",
95 "uw",
96 "v",
97 "w",
98 "y",
99 "z",
100 "zh",
101 "pau",
102 "h#",
103 "brth",
104 NULL };
105
106 static const int us_fv_000[] = { 0, 1, 2, 2, 3, 4, 4, 4, -1 };
107 static const int us_fv_001[] = { 0, 5, 2, 6, 3, 4, 4, 4, -1 };
108 static const int us_fv_002[] = { 0, 5, 7, 7, 3, 4, 4, 4, -1 };
109 static const int us_fv_003[] = { 0, 1, 2, 2, 0, 4, 4, 4, -1 };
110 static const int us_fv_004[] = { 0, 8, 2, 7, 3, 4, 4, 4, -1 };
111 static const int us_fv_005[] = { 0, 9, 7, 7, 3, 4, 4, 4, -1 };
112 static const int us_fv_006[] = { 0, 9, 7, 7, 3, 10, 9, 0, -1 };
113 static const int us_fv_007[] = { 0, 8, 2, 7, 3, 4, 4, 4, -1 };
114 static const int us_fv_008[] = { 3, 4, 4, 4, 4, 5, 1, 0, -1 };
115 static const int us_fv_009[] = { 3, 4, 4, 4, 4, 9, 11, 3, -1 };
116 static const int us_fv_010[] = { 3, 4, 4, 4, 4, 5, 9, 0, -1 };
117 static const int us_fv_011[] = { 3, 4, 4, 4, 4, 12, 8, 0, -1 };
118 static const int us_fv_012[] = { 3, 9, 4, 4, 4, 5, 9, 0, -1 };
119 static const int us_fv_013[] = { 0, 5, 7, 6, 3, 4, 4, 4, -1 };
120 static const int us_fv_014[] = { 0, 5, 4, 4, 4, 1, 9, 0, -1 };
121 static const int us_fv_015[] = { 0, 5, 4, 4, 4, 13, 1, 0, -1 };
122 static const int us_fv_016[] = { 0, 5, 4, 4, 4, 13, 9, 0, -1 };
123 static const int us_fv_017[] = { 0, 9, 7, 7, 3, 10, 4, 4, -1 };
124 static const int us_fv_018[] = { 0, 8, 7, 6, 3, 4, 4, 4, -1 };
125 static const int us_fv_019[] = { 3, 4, 4, 4, 4, 12, 14, 3, -1 };
126 static const int us_fv_020[] = { 3, 4, 4, 4, 4, 5, 15, 0, -1 };
127 static const int us_fv_021[] = { 3, 4, 4, 4, 4, 12, 16, 3, -1 };
128 static const int us_fv_022[] = { 3, 4, 4, 4, 4, 12, 16, 0, -1 };
129 static const int us_fv_023[] = { 0, 5, 6, 6, 3, 4, 4, 4, -1 };
130 static const int us_fv_024[] = { 0, 1, 6, 6, 3, 4, 4, 4, -1 };
131 static const int us_fv_025[] = { 3, 4, 4, 4, 4, 9, 11, 0, -1 };
132 static const int us_fv_026[] = { 3, 4, 4, 4, 4, 5, 15, 3, -1 };
133 static const int us_fv_027[] = { 3, 4, 4, 4, 4, 1, 9, 0, -1 };
134 static const int us_fv_028[] = { 3, 4, 4, 4, 4, 13, 1, 0, -1 };
135 static const int us_fv_029[] = { 3, 4, 4, 4, 4, 13, 9, 0, -1 };
136 static const int us_fv_030[] = { 3, 4, 4, 4, 4, 13, 8, 0, -1 };
137 static const int us_fv_031[] = { 3, 4, 4, 4, 4, 13, 15, 0, -1 };
138 static const int us_fv_032[] = { 0, 8, 7, 2, 0, 4, 4, 4, -1 };
139 static const int us_fv_033[] = { 0, 8, 7, 2, 0, 4, 4, 4, -1 };
140 static const int us_fv_034[] = { 3, 4, 4, 4, 4, 5, 1, 3, -1 };
141 static const int us_fv_035[] = { 3, 4, 4, 4, 4, 10, 9, 0, -1 };
142 static const int us_fv_036[] = { 3, 4, 4, 4, 4, 12, 9, 3, -1 };
143 static const int us_fv_037[] = { 3, 4, 4, 4, 4, 12, 11, 3, -1 };
144 static const int us_fv_038[] = { 3, 4, 4, 4, 4, 5, 9, 3, -1 };
145 static const int us_fv_039[] = { 3, 4, 4, 4, 4, 12, 8, 3, -1 };
146 static const int us_fv_040[] = { 0, 5, 6, 2, 0, 4, 4, 4, -1 };
147 static const int us_fv_041[] = { 0, 1, 6, 2, 0, 4, 4, 4, -1 };
148 static const int us_fv_042[] = { 3, 4, 4, 4, 4, 12, 14, 0, -1 };
149 static const int us_fv_043[] = { 3, 4, 4, 4, 4, 10, 1, 0, -1 };
150 static const int us_fv_044[] = { 3, 4, 4, 4, 4, 10, 11, 0, -1 };
151 static const int us_fv_045[] = { 3, 4, 4, 4, 4, 12, 9, 0, -1 };
152 static const int us_fv_046[] = { 3, 4, 4, 4, 4, 12, 11, 0, -1 };
153 static const int us_fv_047[] = { 3, 4, 4, 4, 4, 4, 4, 3, -1 };
154 static const int us_fv_048[] = { 3, 4, 4, 4, 4, 4, 4, 3, -1 };
155 static const int us_fv_049[] = { 3, 4, 4, 4, 4, 4, 4, 3, -1 };
156 static const int us_fv_050[] = { 0 };
157
158 static const int * const us_fvtable[] = {
159 us_fv_000,
160 us_fv_001,
161 us_fv_002,
162 us_fv_003,
163 us_fv_004,
164 us_fv_005,
165 us_fv_006,
166 us_fv_007,
167 us_fv_008,
168 us_fv_009,
169 us_fv_010,
170 us_fv_011,
171 us_fv_012,
172 us_fv_013,
173 us_fv_014,
174 us_fv_015,
175 us_fv_016,
176 us_fv_017,
177 us_fv_018,
178 us_fv_019,
179 us_fv_020,
180 us_fv_021,
181 us_fv_022,
182 us_fv_023,
183 us_fv_024,
184 us_fv_025,
185 us_fv_026,
186 us_fv_027,
187 us_fv_028,
188 us_fv_029,
189 us_fv_030,
190 us_fv_031,
191 us_fv_032,
192 us_fv_033,
193 us_fv_034,
194 us_fv_035,
195 us_fv_036,
196 us_fv_037,
197 us_fv_038,
198 us_fv_039,
199 us_fv_040,
200 us_fv_041,
201 us_fv_042,
202 us_fv_043,
203 us_fv_044,
204 us_fv_045,
205 us_fv_046,
206 us_fv_047,
207 us_fv_048,
208 us_fv_049,
209 us_fv_050 };
210
211 DEF_STATIC_CONST_VAL_STRING(featval_0,"+");
212 DEF_STATIC_CONST_VAL_STRING(featval_1,"l");
213 DEF_STATIC_CONST_VAL_STRING(featval_2,"3");
214 DEF_STATIC_CONST_VAL_STRING(featval_3,"-");
215 DEF_STATIC_CONST_VAL_STRING(featval_4,"0");
216 DEF_STATIC_CONST_VAL_STRING(featval_5,"s");
217 DEF_STATIC_CONST_VAL_STRING(featval_6,"1");
218 DEF_STATIC_CONST_VAL_STRING(featval_7,"2");
219 DEF_STATIC_CONST_VAL_STRING(featval_8,"d");
220 DEF_STATIC_CONST_VAL_STRING(featval_9,"a");
221 DEF_STATIC_CONST_VAL_STRING(featval_10,"r");
222 DEF_STATIC_CONST_VAL_STRING(featval_11,"p");
223 DEF_STATIC_CONST_VAL_STRING(featval_12,"f");
224 DEF_STATIC_CONST_VAL_STRING(featval_13,"n");
225 DEF_STATIC_CONST_VAL_STRING(featval_14,"b");
226 DEF_STATIC_CONST_VAL_STRING(featval_15,"v");
227 DEF_STATIC_CONST_VAL_STRING(featval_16,"g");
228
229 static const cst_val * const us_featvals[] = {
230 (cst_val *)&featval_0,
231 (cst_val *)&featval_1,
232 (cst_val *)&featval_2,
233 (cst_val *)&featval_3,
234 (cst_val *)&featval_4,
235 (cst_val *)&featval_5,
236 (cst_val *)&featval_6,
237 (cst_val *)&featval_7,
238 (cst_val *)&featval_8,
239 (cst_val *)&featval_9,
240 (cst_val *)&featval_10,
241 (cst_val *)&featval_11,
242 (cst_val *)&featval_12,
243 (cst_val *)&featval_13,
244 (cst_val *)&featval_14,
245 (cst_val *)&featval_15,
246 (cst_val *)&featval_16,
247 NULL };
248
249 const cst_phoneset us_phoneset = {
250 "us",
251 us_featnames,
252 us_featvals,
253 us_phonenames,
254 "pau",
255 50,
256 us_fvtable,
257 0 /* not freeable */
258 };