summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-12-26 18:34:49 +0800
committerPeng Wu <alexepico@gmail.com>2011-12-26 18:34:49 +0800
commit2fd2eea102bfa32d662dca823bf1cfeed3a94c1c (patch)
treebc5cbde175df99bab11684faef7c8aa004d2d06b
parent49869f6917edf488f0daca22e32a8166cf6e0325 (diff)
downloadlibpinyin-2fd2eea102bfa32d662dca823bf1cfeed3a94c1c.zip
libpinyin-2fd2eea102bfa32d662dca823bf1cfeed3a94c1c.tar.gz
libpinyin-2fd2eea102bfa32d662dca823bf1cfeed3a94c1c.tar.xz
fixes parallel make
-rw-r--r--data/Makefile.am10
1 files changed, 8 insertions, 2 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index 25e4683..6f74f4e 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -34,16 +34,22 @@ libpinyin_dbdir = $(pkgdatadir)/data
CLEANFILES = $(binary_model_data)
-$(textual_model_data):
+model.text.tar.gz:
wget https://github.com/downloads/libpinyin/libpinyin/model.text.tar.gz
+
+interpolation.text: model.text.tar.gz
tar xvf model.text.tar.gz
-$(binary_model_data): $(textual_model_data)
+gb_char.table gbk_char.table: interpolation.text
+
+bigram.db: $(textual_model_data)
$(RM) $(binary_model_data)
../utils/storage/gen_binary_files --table-dir $(top_srcdir)/data
../utils/storage/import_interpolation < $(top_srcdir)/data/interpolation.text
../utils/training/gen_unigram
+gb_char.bin gbk_char.bin phrase_index.bin pinyin_index.bin: bigram.db
+
rebuild:
git reset --hard
sed -i -e "s/#define LAMBDA_PARAMETER 0.588792/#define LAMBDA_PARAMETER $(LAMBDA_PARAMETER)/" ../src/include/novel_types.h