@@ -174,7 +174,7 @@ static void JPCommonLabelWord_initialize(JPCommonLabelWord * w, const char *pron
174
174
}
175
175
if (find == 0 ) {
176
176
fprintf (stderr ,
177
- "WARNING: JPCommonLabelWord_initializel () in jpcommon_label.c: %s is unknown POS.\n" ,
177
+ "WARNING: JPCommonLabelWord_initialize () in jpcommon_label.c: %s is unknown POS.\n" ,
178
178
pos );
179
179
i = 0 ;
180
180
}
@@ -187,7 +187,7 @@ static void JPCommonLabelWord_initialize(JPCommonLabelWord * w, const char *pron
187
187
}
188
188
if (find == 0 ) {
189
189
fprintf (stderr ,
190
- "WARNING: JPCommonLabelWord_initializel () in jpcommon_label.c: %s is unknown conjugation type.\n" ,
190
+ "WARNING: JPCommonLabelWord_initialize () in jpcommon_label.c: %s is unknown conjugation type.\n" ,
191
191
ctype );
192
192
i = 0 ;
193
193
}
@@ -200,7 +200,7 @@ static void JPCommonLabelWord_initialize(JPCommonLabelWord * w, const char *pron
200
200
}
201
201
if (find == 0 ) {
202
202
fprintf (stderr ,
203
- "WARNING: JPCommonLabelWord_initializel () in jpcommon_label.c: %s is unknown conjugation form .\n" ,
203
+ "WARNING: JPCommonLabelWord_initialize () in jpcommon_label.c: %s is unknown conjugation form .\n" ,
204
204
cform );
205
205
i = 0 ;
206
206
}
@@ -411,6 +411,9 @@ void JPCommonLabel_initialize(JPCommonLabel * label)
411
411
label -> mora_tail = NULL ;
412
412
label -> phoneme_head = NULL ;
413
413
label -> phoneme_tail = NULL ;
414
+
415
+ label -> size = 0 ;
416
+ label -> feature = NULL ;
414
417
}
415
418
416
419
static void JPCommonLabel_insert_pause (JPCommonLabel * label )
@@ -420,7 +423,7 @@ static void JPCommonLabel_insert_pause(JPCommonLabel * label)
420
423
if (label -> phoneme_tail != NULL ) {
421
424
if (strcmp (label -> phoneme_tail -> phoneme , JPCOMMON_PHONEME_SHORT_PAUSE ) == 0 ) {
422
425
fprintf (stderr ,
423
- "WARNING: JPCommonLabel_insert_word () in jpcommon_label.c: Short pause should not be chained.\n" );
426
+ "WARNING: JPCommonLabel_insert_pause () in jpcommon_label.c: Short pause should not be chained.\n" );
424
427
return ;
425
428
}
426
429
label -> phoneme_tail -> next =
@@ -430,7 +433,7 @@ static void JPCommonLabel_insert_pause(JPCommonLabel * label)
430
433
label -> phoneme_tail = label -> phoneme_tail -> next ;
431
434
} else {
432
435
fprintf (stderr ,
433
- "WARNING: JPCommonLabel_insert_word () in jpcommon_label.c: First mora should not be short pause.\n" );
436
+ "WARNING: JPCommonLabel_insert_pause () in jpcommon_label.c: First mora should not be short pause.\n" );
434
437
}
435
438
label -> short_pause_flag = 0 ;
436
439
}
0 commit comments