diff options
author | Peng Wu <alexepico@gmail.com> | 2010-10-19 14:48:33 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2010-10-19 14:48:33 +0800 |
commit | 77f51924d4660e0a7c295dc9af6b305118214ede (patch) | |
tree | 3b14f4cb9a8afca983ac22afeade7034867fcc17 /src/lookup/lookup.h | |
parent | 56c5c4a737c56de8e8e4ac0a09f8c2af4f6d0a39 (diff) | |
download | libpinyin-77f51924d4660e0a7c295dc9af6b305118214ede.tar.gz libpinyin-77f51924d4660e0a7c295dc9af6b305118214ede.tar.xz libpinyin-77f51924d4660e0a7c295dc9af6b305118214ede.zip |
begin to write phrase lookup header
Diffstat (limited to 'src/lookup/lookup.h')
-rw-r--r-- | src/lookup/lookup.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/lookup/lookup.h b/src/lookup/lookup.h index b85101c..8832fbc 100644 --- a/src/lookup/lookup.h +++ b/src/lookup/lookup.h @@ -43,4 +43,29 @@ struct lookup_value_t{ } }; +typedef GArray * MatchResults; /* Array of phrase_token_t */ + +namespace novel{ + class PinyinLargeTable; + class PhraseLargeTable; + class FacadePhraseIndex; + class Bigram; +}; + +/* Note: + * LookupStepIndex: + * the main purpose of lookup step index is served for an index + * for lookup step content, which can quickly merge the same node + * with different possibilities, + * then only keep the highest value of the node. + * LookupStepContent: + * the place to store the lookup values of current step, + * and indexed by lookup step index. + * See also comments on lookup_value_t. + */ + +typedef GHashTable * LookupStepIndex; +/* Key: lookup_key_t, Value: int m, index to m_steps_content[i][m] */ +typedef GArray * LookupStepContent; /* array of lookup_value_t */ + #endif |