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;
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;