diff options
Diffstat (limited to 'src/lookup/phonetic_lookup.h')
-rw-r--r-- | src/lookup/phonetic_lookup.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lookup/phonetic_lookup.h b/src/lookup/phonetic_lookup.h index 43a2936..6ca7d4f 100644 --- a/src/lookup/phonetic_lookup.h +++ b/src/lookup/phonetic_lookup.h @@ -24,6 +24,8 @@ #include "novel_types.h" #include <limits.h> +#include "phonetic_key_matrix.h" +#include "ngram.h" namespace pinyin{ @@ -79,6 +81,8 @@ struct matrix_value_t { #include "phonetic_lookup_heap.h" #endif +enum constraint_type{NO_CONSTRAINT, CONSTRAINT_ONESTEP, CONSTRAINT_NOSEARCH }; + struct trellis_constraint_t { /* the constraint type */ constraint_type m_type; @@ -201,10 +205,10 @@ protected: PhraseIndexRanges ranges); bool unigram_gen_next_step(int start, int end, - lookup_value_t * cur_step, + trellis_value_t * cur_step, phrase_token_t token); bool bigram_gen_next_step(int start, int end, - lookup_value_t * cur_step, + trellis_value_t * cur_step, phrase_token_t token, gfloat bigram_poss); |