@GLIB2_CPPFLAGS@
noinst_HEADERS = lookup.h \
- pinyin_lookup.h \
pinyin_lookup2.h \
- phrase_lookup.h \
- winner_tree.h
+ phrase_lookup.h
noinst_LTLIBRARIES = liblookup.la
liblookup_la_LDFLAGS = -static
-liblookup_la_SOURCES = pinyin_lookup.cpp \
- pinyin_lookup2.cpp \
- winner_tree.cpp \
+liblookup_la_SOURCES = pinyin_lookup2.cpp \
phrase_lookup.cpp \
lookup.cpp
Bigram * m_system_bigram;
Bigram * m_user_bigram;
- PinyinLookup * m_pinyin_lookup;
+ PinyinLookup2 * m_pinyin_lookup;
PhraseLookup * m_phrase_lookup;
char * m_system_dir;
context->m_user_bigram->load_db(filename);
g_free(filename);
- context->m_pinyin_lookup = new PinyinLookup
+ context->m_pinyin_lookup = new PinyinLookup2
( context->m_options, context->m_pinyin_table,
context->m_phrase_index, context->m_system_bigram,
context->m_user_bigram);
#include "phrase_index_logger.h"
#include "ngram.h"
#include "lookup.h"
-#include "pinyin_lookup.h"
+#include "pinyin_lookup2.h"
#include "phrase_lookup.h"
#include "tag_utility.h"
Bigram user_bigram;
user_bigram.attach(NULL, ATTACH_CREATE|ATTACH_READWRITE);
- PinyinLookup pinyin_lookup(options, &largetable, &phrase_index,
+ PinyinLookup2 pinyin_lookup(options, &largetable, &phrase_index,
&system_bigram, &user_bigram);
char* linebuf = NULL;
return true;
}
-bool get_best_match(PinyinLookup * pinyin_lookup,
+bool get_best_match(PinyinLookup2 * pinyin_lookup,
ChewingKeyVector keys, TokenVector tokens){
/* prepare the prefixes for get_best_match. */
TokenVector prefixes = g_array_new
return retval;
}
-bool do_one_test(PinyinLookup * pinyin_lookup,
+bool do_one_test(PinyinLookup2 * pinyin_lookup,
FacadePhraseIndex * phrase_index,
TokenVector tokens){
bool retval = false;
Bigram user_bigram;
user_bigram.attach(NULL, ATTACH_CREATE|ATTACH_READWRITE);
- PinyinLookup pinyin_lookup(options, &largetable, &phrase_index,
+ PinyinLookup2 pinyin_lookup(options, &largetable, &phrase_index,
&system_bigram, &user_bigram);
/* open evals.text. */