From 74471d1503578eeba1c4944b78436bd4e1c5ede8 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Mon, 9 Jan 2017 15:40:12 +0800 Subject: add varibles --- src/lookup/phonetic_lookup.h | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'src/lookup/phonetic_lookup.h') 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 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, -- cgit