summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-07-25 15:34:09 +0800
committerPeng Wu <alexepico@gmail.com>2011-07-25 15:34:09 +0800
commit9323164541fe4f8d0847bd8dfb9c8a7b029fba23 (patch)
treec8ce898bc307d453fb9f3b9345997d8fa8c7a461 /utils
parent546f675be708b4062942110e9fcf07851e4457fa (diff)
downloadlibpinyin-9323164541fe4f8d0847bd8dfb9c8a7b029fba23.tar.gz
libpinyin-9323164541fe4f8d0847bd8dfb9c8a7b029fba23.tar.xz
libpinyin-9323164541fe4f8d0847bd8dfb9c8a7b029fba23.zip
begin to write eval correction rate
Diffstat (limited to 'utils')
-rw-r--r--utils/training/Makefile.am7
-rw-r--r--utils/training/eval_correction_rate.cpp28
2 files changed, 34 insertions, 1 deletions
diff --git a/utils/training/Makefile.am b/utils/training/Makefile.am
index a8b5478..38fdd60 100644
--- a/utils/training/Makefile.am
+++ b/utils/training/Makefile.am
@@ -36,7 +36,8 @@ noinst_PROGRAMS = gen_ngram \
import_k_mixture_model \
export_k_mixture_model \
k_mixture_model_to_interpolation \
- validate_k_mixture_model
+ validate_k_mixture_model \
+ eval_correction_rate
gen_ngram_SOURCES = gen_ngram.cpp
@@ -85,3 +86,7 @@ k_mixture_model_to_interpolation_LDADD = ../../src/libpinyin.la @GLIB2_LDFLAGS@
validate_k_mixture_model_SOURCES = validate_k_mixture_model.cpp
validate_k_mixture_model_LDADD = ../../src/libpinyin.la @GLIB2_LDFLAGS@
+
+eval_correction_rate_SOURCES = eval_correction_rate.cpp
+
+eval_correction_rate_LDADD = ../../src/libpinyin.la @GLIB2_LDFLAGS@ \ No newline at end of file
diff --git a/utils/training/eval_correction_rate.cpp b/utils/training/eval_correction_rate.cpp
new file mode 100644
index 0000000..6009251
--- /dev/null
+++ b/utils/training/eval_correction_rate.cpp
@@ -0,0 +1,28 @@
+/*
+ * libpinyin
+ * Library to deal with pinyin.
+ *
+ * Copyright (C) 2011 Peng Wu <alexepico@gmail.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+
+
+#include "pinyin.h"
+
+int main(int argc, char * argv[]){
+ return 0;
+}