summaryrefslogtreecommitdiffstats
path: root/src/include/novel_types.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-05-05 11:13:34 +0800
committerPeng Wu <alexepico@gmail.com>2011-05-05 11:13:34 +0800
commit5f987095add7f63c7389fc5255c74fc408351c71 (patch)
treed9ceaf3db292e659756422883352074dd79af727 /src/include/novel_types.h
parentd91e11a3e0e3215db7b87eb902dc7e7f9974823f (diff)
downloadlibpinyin-5f987095add7f63c7389fc5255c74fc408351c71.tar.gz
libpinyin-5f987095add7f63c7389fc5255c74fc408351c71.tar.xz
libpinyin-5f987095add7f63c7389fc5255c74fc408351c71.zip
refine attach method in flexible n-gram
Diffstat (limited to 'src/include/novel_types.h')
-rw-r--r--src/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 82a9947..9f1a9fa 100644
--- a/src/include/novel_types.h
+++ b/src/include/novel_types.h
@@ -82,7 +82,7 @@ enum RemoveIndexResult{
};
/* For Phrase Index */
-enum PhraseIndexError{
+enum PhraseIndexResult{
ERROR_OK = 0, /* operate ok */
ERROR_NO_SUB_PHRASE_INDEX, /* sub phrase index is not loaded */
ERROR_NO_ITEM, /* item has a null slot */
@@ -91,6 +91,13 @@ enum PhraseIndexError{
ERROR_INTEGER_OVERFLOW /* integer is overflowed */
};
+/* For N-gram */
+enum ATTACH_FLAG{
+ ATTACH_READONLY = 1,
+ ATTACH_READWRITE = 0x1 << 1,
+ ATTACH_CREATE = 0x1 << 2,
+};
+
/*
* n-gram Definition
* no B parameter(there are duplicated items in uni-gram and bi-gram)