summaryrefslogtreecommitdiffstats
path: root/utils/training/k_mixture_model.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/training/k_mixture_model.h')
-rw-r--r--utils/training/k_mixture_model.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/training/k_mixture_model.h b/utils/training/k_mixture_model.h
index 0b19af6..eb5ea2a 100644
--- a/utils/training/k_mixture_model.h
+++ b/utils/training/k_mixture_model.h
@@ -105,7 +105,10 @@ static inline parameter_t compute_Pr_G_2_with_count(corpus_count_t k,
return compute_Pr_G_2(k, alpha, B);
}
+#define K_MIXTURE_MODEL_MAGIC_NUMBER "KMMP";
+
typedef struct{
+ char m_magic_number[4];
/* the total number of instances of all words. */
guint32 m_WC;
/* the total number of documents. */