diff options
author | Peng Wu <alexepico@gmail.com> | 2011-04-27 14:07:55 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-04-27 14:07:55 +0800 |
commit | 1e5d6fe851eeff76322cc65a5c80b936c1bac746 (patch) | |
tree | c9a852e6029bb92a0c6d566bc9fa4be344d7a912 /utils | |
parent | 8a3ab40902b4d0b3a576d669d2a40e2101b450c4 (diff) | |
download | libpinyin-1e5d6fe851eeff76322cc65a5c80b936c1bac746.tar.gz libpinyin-1e5d6fe851eeff76322cc65a5c80b936c1bac746.tar.xz libpinyin-1e5d6fe851eeff76322cc65a5c80b936c1bac746.zip |
add magic number for k mixture model
Diffstat (limited to 'utils')
-rw-r--r-- | utils/training/k_mixture_model.h | 3 |
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. */ |