summaryrefslogtreecommitdiffstats
path: root/src/include/novel_types.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2010-08-18 14:05:21 +0800
committerPeng Wu <alexepico@gmail.com>2010-08-18 14:05:21 +0800
commitac7b8fa13887e0e663b515f40e4cbc7b2c2b9661 (patch)
tree9c1a73a1baee17f787f46b4af11a5874cfa32be3 /src/include/novel_types.h
parenta0412414b3b5f8647ff41405254dbcb4e334e3ae (diff)
downloadlibpinyin-ac7b8fa13887e0e663b515f40e4cbc7b2c2b9661.tar.gz
libpinyin-ac7b8fa13887e0e663b515f40e4cbc7b2c2b9661.tar.xz
libpinyin-ac7b8fa13887e0e663b515f40e4cbc7b2c2b9661.zip
add retrieve_all defination.
Diffstat (limited to 'src/include/novel_types.h')
-rwxr-xr-xsrc/include/novel_types.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/include/novel_types.h b/src/include/novel_types.h
index 9265cfe..2d31039 100755
--- a/src/include/novel_types.h
+++ b/src/include/novel_types.h
@@ -103,7 +103,14 @@ struct BigramPhraseItem{
gfloat m_freq; /* P(W2|W1) */
};
-typedef GArray * BigramPhraseArray; /* Array of HighLevelPhraseItem */
+struct BigramPhraseItemWithCount{
+ phrase_token_t m_token;
+ guint32 m_cout;
+ gfloat m_freq; /* P(W2|W1) */
+};
+
+typedef GArray * BigramPhraseArray; /* Array of BigramPhraseItem */
+typedef GArray * BigramPhraseWithCountArray; /* Array of BigramPhraseItemWithCount */
/*
* n-gram Definition