summaryrefslogtreecommitdiffstats
path: root/src/storage/phrase_index.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2010-08-16 14:12:13 +0800
committerPeng Wu <alexepico@gmail.com>2010-08-16 14:12:13 +0800
commitbe41870202762f9dca8fa732ef8ffce2a6a1a280 (patch)
tree2dc560a9ccefd939c432cc273aec9014f9fcdf19 /src/storage/phrase_index.h
parentcf5571547919329d8dd09bd827fc00fe22008124 (diff)
downloadlibpinyin-be41870202762f9dca8fa732ef8ffce2a6a1a280.tar.gz
libpinyin-be41870202762f9dca8fa732ef8ffce2a6a1a280.tar.xz
libpinyin-be41870202762f9dca8fa732ef8ffce2a6a1a280.zip
add description.
Diffstat (limited to 'src/storage/phrase_index.h')
-rwxr-xr-xsrc/storage/phrase_index.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/storage/phrase_index.h b/src/storage/phrase_index.h
index 1f7d99e..acdddb0 100755
--- a/src/storage/phrase_index.h
+++ b/src/storage/phrase_index.h
@@ -29,6 +29,21 @@
#include "pinyin_phrase.h"
#include "memory_chunk.h"
+/*
+ * Phrase Index File Format
+ *
+ * Indirect Index: Index by Token
+ * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ * + Phrase Offset + Phrase Offset + Phrase Offset + ...... +
+ * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ * Phrase Content:
+ * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ * + Phrase Length + number of Pronunciations + Uni-gram Frequency+
+ * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ * + n Pronunciations + Phrase String(UCS2) +
+ * ++++++++++++++++++++++++++++++++++++++++++
+ */
+
class PinyinLookup;
namespace novel{