From cc2643225897f45b5e01d10b0152c88b87c56fc4 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Tue, 24 May 2011 13:30:58 +0800 Subject: refine gen k mixture model --- utils/training/gen_k_mixture_model.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'utils') diff --git a/utils/training/gen_k_mixture_model.cpp b/utils/training/gen_k_mixture_model.cpp index fd48f51..9768fef 100644 --- a/utils/training/gen_k_mixture_model.cpp +++ b/utils/training/gen_k_mixture_model.cpp @@ -194,8 +194,8 @@ bool train_single_gram(HashofDocument hash_of_document, return true; } -static bool train_second_word(HashofDocument hash_of_document, - KMixtureModelBigram * bigram, +static bool train_second_word(KMixtureModelBigram * bigram, + HashofDocument hash_of_document, phrase_token_t token){ guint32 delta = 0; @@ -290,7 +290,7 @@ int main(int argc, char * argv[]){ g_hash_table_iter_init(&iter, hash_of_document); while (g_hash_table_iter_next(&iter, &key, &value)) { phrase_token_t token = GPOINTER_TO_UINT(key); - train_second_word(hash_of_document, &bigram, token); + train_second_word(&bigram, hash_of_document, token); } KMixtureModelMagicHeader magic_header; -- cgit