summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/training/k_mixture_model_to_interpolation.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/training/k_mixture_model_to_interpolation.cpp b/utils/training/k_mixture_model_to_interpolation.cpp
index 3652f27..fe79422 100644
--- a/utils/training/k_mixture_model_to_interpolation.cpp
+++ b/utils/training/k_mixture_model_to_interpolation.cpp
@@ -95,6 +95,9 @@ bool parse_unigram(FILE * input, FILE * output){
case GRAM_1_ITEM_LINE: {
/* handle \item in \1-gram */
const char * string = (const char *) g_ptr_array_index(values, 0);
+ /* remove the "<start>" in the uni-gram of interpolation model */
+ if ( strcmp("<start>", string) == 0 )
+ break;
gpointer value = NULL;
assert(g_hash_table_lookup_extended(required, "count",
NULL, &value));