summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-05-16 19:19:02 +0800
committerPeng Wu <alexepico@gmail.com>2011-05-16 19:19:02 +0800
commit55831261b3c63c4a6e2e0163e1f5a5c7ff3e2673 (patch)
tree53b34e51c48f6afd5e28cf253d31aea33dc581d8 /utils
parente53a3eb2c3e3cf3f0929a8671c6d79ac193f5858 (diff)
downloadlibpinyin-55831261b3c63c4a6e2e0163e1f5a5c7ff3e2673.tar.gz
libpinyin-55831261b3c63c4a6e2e0163e1f5a5c7ff3e2673.tar.xz
libpinyin-55831261b3c63c4a6e2e0163e1f5a5c7ff3e2673.zip
add missing n_1 in export k mixture model
Diffstat (limited to 'utils')
-rw-r--r--utils/training/export_k_mixture_model.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/training/export_k_mixture_model.cpp b/utils/training/export_k_mixture_model.cpp
index 8645586..358f087 100644
--- a/utils/training/export_k_mixture_model.cpp
+++ b/utils/training/export_k_mixture_model.cpp
@@ -80,9 +80,10 @@ bool print_k_mixture_model_array_items(FILE * output,
char * word2 = taglib_token_to_string(phrase_index, item->m_token);
if (word1 && word2)
- fprintf(output, "\\item %s %s count %d T %d N_n_0 %d Mr %d\n",
+ fprintf(output, "\\item %s %s count %d T %d N_n_0 %d n_1 %d Mr %d\n",
word1, word2, item->m_item.m_WC, item->m_item.m_WC,
- item->m_item.m_N_n_0, item->m_item.m_Mr);
+ item->m_item.m_N_n_0, item->m_item.m_n_1,
+ item->m_item.m_Mr);
g_free(word1); g_free(word2);
}