summaryrefslogtreecommitdiffstats
path: root/src/lookup/phrase_lookup.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-10-10 13:55:07 +0800
committerPeng Wu <alexepico@gmail.com>2012-10-10 13:55:07 +0800
commitaced528d37c803442cd1f39e51e36e96c59d94f6 (patch)
tree801b0a828d28b90469fd2d026c37d2a10a0add48 /src/lookup/phrase_lookup.h
parent1f6d0a9f5155f1e95d1717625fe0a5b4a679aac2 (diff)
downloadlibpinyin-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.h4
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);