diff options
-rw-r--r-- | utils/training/Makefile.am | 9 | ||||
-rw-r--r-- | utils/training/estimate_k_mixture_model.cpp | 6 | ||||
-rw-r--r-- | utils/training/k_mixture_model.h | 1 |
3 files changed, 15 insertions, 1 deletions
diff --git a/utils/training/Makefile.am b/utils/training/Makefile.am index f955c56..002787b 100644 --- a/utils/training/Makefile.am +++ b/utils/training/Makefile.am @@ -25,7 +25,10 @@ INCLUDES = -I$(top_srcdir)/src \ noinst_HEADERS = k_mixture_model.h -noinst_PROGRAMS = gen_ngram gen_unigram estimate_interpolation +noinst_PROGRAMS = gen_ngram \ + gen_unigram \ + estimate_interpolation \ + estimate_k_mixture_model gen_ngram_SOURCES = gen_ngram.cpp @@ -38,3 +41,7 @@ gen_unigram_LDADD = ../../src/libpinyin.la @GLIB2_LDFLAGS@ estimate_interpolation_SOURCES = estimate_interpolation.cpp estimate_interpolation_LDADD = ../../src/libpinyin.la @GLIB2_LDFLAGS@ + +estimate_k_mixture_model_SOURCES = estimate_k_mixture_model.cpp + +estimate_k_mixture_model_LDADD = ../../src/libpinyin.la @GLIB2_LDFLAGS@ diff --git a/utils/training/estimate_k_mixture_model.cpp b/utils/training/estimate_k_mixture_model.cpp new file mode 100644 index 0000000..dc3d23d --- /dev/null +++ b/utils/training/estimate_k_mixture_model.cpp @@ -0,0 +1,6 @@ +#include "pinyin.h" +#include "k_mixture_model.h" + +int main(int argc, char * argv[]){ + return 0; +} diff --git a/utils/training/k_mixture_model.h b/utils/training/k_mixture_model.h index eb5ea2a..dffece6 100644 --- a/utils/training/k_mixture_model.h +++ b/utils/training/k_mixture_model.h @@ -23,6 +23,7 @@ #ifndef K_MIXTURE_MODEL #define K_MIXTURE_MODEL +#include <math.h> #include "novel_types.h" #include "flexible_ngram.h" |