Lines 87-97
Link Here
|
87 |
for (s=u->relation("Syllable")->first(); s != 0; s=next(s)) |
87 |
for (s=u->relation("Syllable")->first(); s != 0; s=next(s)) |
88 |
{ |
88 |
{ |
89 |
if ((paccent = accent_specified(s)) == "0") // check if pre-specified |
89 |
if ((paccent = accent_specified(s)) == "0") // check if pre-specified |
90 |
paccent = wagon_predict(s,accent_tree); |
90 |
paccent = (EST_String)wagon_predict(s,accent_tree); |
91 |
if (paccent != "NONE") |
91 |
if (paccent != "NONE") |
92 |
add_IntEvent(u,s,paccent); |
92 |
add_IntEvent(u,s,paccent); |
93 |
if ((ptone = tone_specified(s)) == "0") |
93 |
if ((ptone = tone_specified(s)) == "0") |
94 |
ptone = wagon_predict(s,endtone_tree); |
94 |
ptone = (EST_String)wagon_predict(s,endtone_tree); |
95 |
if (ptone != "NONE") |
95 |
if (ptone != "NONE") |
96 |
add_IntEvent(u,s,ptone); |
96 |
add_IntEvent(u,s,ptone); |
97 |
} |
97 |
} |
Lines 107-117
Link Here
|
107 |
EST_Item *token = parent(word,"Token"); |
107 |
EST_Item *token = parent(word,"Token"); |
108 |
EST_String paccent("0"); |
108 |
EST_String paccent("0"); |
109 |
if (token) |
109 |
if (token) |
110 |
paccent = ffeature(token,"accent"); |
110 |
paccent = (EST_String)ffeature(token,"accent"); |
111 |
|
111 |
|
112 |
if (paccent == "0") |
112 |
if (paccent == "0") |
113 |
{ |
113 |
{ |
114 |
paccent = ffeature(word,"accent"); |
114 |
paccent = (EST_String)ffeature(word,"accent"); |
115 |
if (paccent == "0") |
115 |
if (paccent == "0") |
116 |
return paccent; |
116 |
return paccent; |
117 |
} |
117 |
} |
Lines 139-149
Link Here
|
139 |
EST_Item *token = parent(word,"Token"); |
139 |
EST_Item *token = parent(word,"Token"); |
140 |
EST_String ptone("0"); |
140 |
EST_String ptone("0"); |
141 |
if (token) |
141 |
if (token) |
142 |
ptone = ffeature(token,"tone"); |
142 |
ptone = (EST_String)ffeature(token,"tone"); |
143 |
|
143 |
|
144 |
if (ptone == "0") |
144 |
if (ptone == "0") |
145 |
{ |
145 |
{ |
146 |
ptone = ffeature(word,"tone"); |
146 |
ptone = (EST_String)ffeature(word,"tone"); |
147 |
if (ptone == "0") |
147 |
if (ptone == "0") |
148 |
return ptone; |
148 |
return ptone; |
149 |
} |
149 |
} |