projects
/
platform
/
upstream
/
libpinyin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffc216e
)
restore gen_unigram.cpp
author
Peng Wu
<alexepico@gmail.com>
Sat, 23 Mar 2013 08:49:43 +0000
(16:49 +0800)
committer
Peng Wu
<alexepico@gmail.com>
Sat, 23 Mar 2013 08:49:43 +0000
(16:49 +0800)
utils/training/gen_unigram.cpp
patch
|
blob
|
history
diff --git
a/utils/training/gen_unigram.cpp
b/utils/training/gen_unigram.cpp
index
9788271
..
62584a9
100644
(file)
--- a/
utils/training/gen_unigram.cpp
+++ b/
utils/training/gen_unigram.cpp
@@
-40,10
+40,12
@@
int main(int argc, char * argv[]){
DICTIONARY != table_info->m_file_type)
continue;
- guint32 freq = 2;
+ guint32 freq = 1;
+#if 0
/* skip GBK_DICTIONARY. */
if (GBK_DICTIONARY == table_info->m_dict_index)
freq = 1;
+#endif
const char * binfile = table_info->m_system_filename;