From 1e5d6fe851eeff76322cc65a5c80b936c1bac746 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Wed, 27 Apr 2011 14:07:55 +0800 Subject: add magic number for k mixture model --- utils/training/k_mixture_model.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'utils/training/k_mixture_model.h') 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. */ -- cgit