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:
4797c04
)
fixes compile
author
Peng Wu
<alexepico@gmail.com>
Thu, 17 May 2012 07:06:46 +0000
(15:06 +0800)
committer
Peng Wu
<alexepico@gmail.com>
Thu, 17 May 2012 07:06:46 +0000
(15:06 +0800)
utils/training/gen_unigram.cpp
patch
|
blob
|
history
diff --git
a/utils/training/gen_unigram.cpp
b/utils/training/gen_unigram.cpp
index
2656647
..
3f31a46
100644
(file)
--- a/
utils/training/gen_unigram.cpp
+++ b/
utils/training/gen_unigram.cpp
@@
-26,6
+26,8
@@
/* increase all unigram frequency by a constant. */
int main(int argc, char * argv[]){
+ MemoryChunk * chunk = NULL;
+
FacadePhraseIndex phrase_index;
for (size_t i = 0; i < PHRASE_INDEX_LIBRARY_COUNT; ++i) {
const char * bin_file = pinyin_phrase_files[i];