From 4bb7f472a4fba814d02bdca5b011b5a6f68d4949 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Wed, 25 May 2011 10:50:31 +0800 Subject: remove in \1-gram in conversion tool --- utils/training/k_mixture_model_to_interpolation.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'utils/training') 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 "" in the uni-gram of interpolation model */ + if ( strcmp("", string) == 0 ) + break; gpointer value = NULL; assert(g_hash_table_lookup_extended(required, "count", NULL, &value)); -- cgit