summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2017-02-13 11:18:07 +0800
committerPeng Wu <alexepico@gmail.com>2017-02-13 11:18:07 +0800
commit2c2b17198520df203a740044b69fdf636b15af10 (patch)
treeaa5250f83668ea0aea5c48707b765c90e9e1ade9
parent53fb4a6ce575a634b2267892a6ffc276c1693c43 (diff)
downloadlibpinyin-2c2b17198520df203a740044b69fdf636b15af10.zip
libpinyin-2c2b17198520df203a740044b69fdf636b15af10.tar.gz
libpinyin-2c2b17198520df203a740044b69fdf636b15af10.tar.xz
fixes LONG_SENTENCE_PENALTY
-rw-r--r--src/lookup/phonetic_lookup.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lookup/phonetic_lookup.h b/src/lookup/phonetic_lookup.h
index 194ad17..af521cc 100644
--- a/src/lookup/phonetic_lookup.h
+++ b/src/lookup/phonetic_lookup.h
@@ -35,7 +35,7 @@ namespace pinyin{
/* internal definition */
static const size_t nbeam = 32;
-#define LONG_SENTENCE_PENALTY 1.2
+#define LONG_SENTENCE_PENALTY log(1.2)
struct trellis_value_t {
phrase_token_t m_handles[2];