diff options
author | Peng Wu <alexepico@gmail.com> | 2012-10-10 13:55:07 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2012-10-10 13:55:07 +0800 |
commit | aced528d37c803442cd1f39e51e36e96c59d94f6 (patch) | |
tree | 801b0a828d28b90469fd2d026c37d2a10a0add48 /src/lookup/phrase_lookup.h | |
parent | 1f6d0a9f5155f1e95d1717625fe0a5b4a679aac2 (diff) | |
download | libpinyin-aced528d37c803442cd1f39e51e36e96c59d94f6.tar.gz libpinyin-aced528d37c803442cd1f39e51e36e96c59d94f6.tar.xz libpinyin-aced528d37c803442cd1f39e51e36e96c59d94f6.zip |
re-factor phrase lookup
Diffstat (limited to 'src/lookup/phrase_lookup.h')
-rw-r--r-- | src/lookup/phrase_lookup.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lookup/phrase_lookup.h b/src/lookup/phrase_lookup.h index c2537ef..65bd2cd 100644 --- a/src/lookup/phrase_lookup.h +++ b/src/lookup/phrase_lookup.h @@ -69,8 +69,8 @@ protected: /* Explicitly search the next phrase, * to avoid double phrase lookup as the next token has only one. */ - bool search_unigram(int nstep, phrase_token_t token); - bool search_bigram(int nstep, phrase_token_t token); + bool search_unigram2(int nstep, PhraseTokens tokens); + bool search_bigram2(int nstep, PhraseTokens tokens); bool unigram_gen_next_step(int nstep, lookup_value_t * cur_value, phrase_token_t token); bool bigram_gen_next_step(int nstep, lookup_value_t * cur_value, phrase_token_t token, gfloat bigram_poss); |