summaryrefslogtreecommitdiffstats
path: root/src/lookup
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2017-01-09 15:40:12 +0800
committerPeng Wu <alexepico@gmail.com>2017-01-09 15:44:45 +0800
commit74471d1503578eeba1c4944b78436bd4e1c5ede8 (patch)
tree6d604b71afcfdbda9ab99f8e2bfe2e4121cf1462 /src/lookup
parent5f2490da3f08f6438c17d9559c70ca5da646db48 (diff)
downloadlibpinyin-74471d1503578eeba1c4944b78436bd4e1c5ede8.tar.gz
libpinyin-74471d1503578eeba1c4944b78436bd4e1c5ede8.tar.xz
libpinyin-74471d1503578eeba1c4944b78436bd4e1c5ede8.zip
add varibles
Diffstat (limited to 'src/lookup')
-rw-r--r--src/lookup/phonetic_lookup.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/lookup/phonetic_lookup.h b/src/lookup/phonetic_lookup.h
index 61b0ee9..c6c04e6 100644
--- a/src/lookup/phonetic_lookup.h
+++ b/src/lookup/phonetic_lookup.h
@@ -182,6 +182,9 @@ private:
/* Array of trellis_constraint_t */
GArray * m_constraints;
+protected:
+ FacadePhraseIndex * m_phrase_index;
+
#if 0
/* pre-mature optimazition? */
GArray * m_cached_keys;
@@ -199,10 +202,23 @@ typedef GPtrArray * NBestMatchResults;
template <gint32 nbest>
class PhoneticLookup {
+private:
+ const gfloat bigram_lambda;
+ const gfloat unigram_lambda;
+
protected:
- ForwardPhoneticTrellis m_trellis;
- BackwardPhoneticMatrix m_matrix;
+ ForwardPhoneticTrellis m_forward_trellis;
+ BackwardPhoneticMatrix m_backward_matrix;
+protected:
+ /* saved varibles */
+ ForwardPhoneticConstraints m_constraints;
+ PhoneticKeyMatrix * m_matrix;
+
+ FacadeChewingTable2 * m_pinyin_table;
+ FacadePhraseIndex * m_phrase_index;
+ Bigram * m_system_bigram;
+ Bigram * m_user_bigram;
protected:
bool search_unigram2(GPtrArray * topresults,