diff options
-rw-r--r-- | src/pinyin.cpp | 1 | ||||
-rw-r--r-- | src/pinyin.h | 3 | ||||
-rw-r--r-- | tests/storage/Makefile.am | 7 | ||||
-rw-r--r-- | tests/storage/test_flexible_ngram.cpp | 5 |
4 files changed, 14 insertions, 2 deletions
diff --git a/src/pinyin.cpp b/src/pinyin.cpp index cb95b9e..27f8dbf 100644 --- a/src/pinyin.cpp +++ b/src/pinyin.cpp @@ -1,4 +1,3 @@ #include "pinyin.h" -#include "flexible_ngram.h" /* Place holder for combining static libraries in sub-directories. */ diff --git a/src/pinyin.h b/src/pinyin.h index 5e10b4e..3cf6e71 100644 --- a/src/pinyin.h +++ b/src/pinyin.h @@ -10,3 +10,6 @@ #include "lookup.h" #include "pinyin_lookup.h" #include "phrase_lookup.h" + +/* training module */ +#include "flexible_ngram.h" diff --git a/tests/storage/Makefile.am b/tests/storage/Makefile.am index 281dd5e..6eb5021 100644 --- a/tests/storage/Makefile.am +++ b/tests/storage/Makefile.am @@ -25,7 +25,8 @@ noinst_PROGRAMS = test_parser \ test_pinyin_index \ test_phrase_index \ test_phrase_table \ - test_ngram + test_ngram \ + test_flexible_ngram test_parser_SOURCES = test_parser.cpp @@ -46,3 +47,7 @@ test_phrase_table_LDADD = ../../src/libpinyin.la @GLIB2_LDFLAGS@ test_ngram_SOURCES = test_ngram.cpp test_ngram_LDADD = ../../src/libpinyin.la @GLIB2_LDFLAGS@ + +test_flexible_ngram_SOURCES = test_flexible_ngram.cpp + +test_flexible_ngram_LDADD = ../../src/libpinyin.la @GLIB2_LDFLAGS@ diff --git a/tests/storage/test_flexible_ngram.cpp b/tests/storage/test_flexible_ngram.cpp new file mode 100644 index 0000000..744187f --- /dev/null +++ b/tests/storage/test_flexible_ngram.cpp @@ -0,0 +1,5 @@ +#include "pinyin.h" + +int main(int argc, char * argv[]) { + FlexibleBigram<guint64, guint32, guint32> test_bigram; +} |