diff options
author | Peng Wu <alexepico@gmail.com> | 2012-05-17 15:35:40 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2012-05-17 15:35:40 +0800 |
commit | 0b7fc32237ebdadb5f049835c026b8c19fdee6a8 (patch) | |
tree | 1692f1914823c24cef9931d907eca5ed11726f79 /utils/training/gen_unigram.cpp | |
parent | d6b9035b82cd00e1763c715386cfa52621945716 (diff) | |
download | libpinyin-0b7fc32237ebdadb5f049835c026b8c19fdee6a8.tar.gz libpinyin-0b7fc32237ebdadb5f049835c026b8c19fdee6a8.tar.xz libpinyin-0b7fc32237ebdadb5f049835c026b8c19fdee6a8.zip |
updates utils
Diffstat (limited to 'utils/training/gen_unigram.cpp')
-rw-r--r-- | utils/training/gen_unigram.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/utils/training/gen_unigram.cpp b/utils/training/gen_unigram.cpp index 3f31a46..29a1bc6 100644 --- a/utils/training/gen_unigram.cpp +++ b/utils/training/gen_unigram.cpp @@ -34,17 +34,14 @@ int main(int argc, char * argv[]){ if (NULL == bin_file) continue; - gchar * filename = g_build_filename("..", "..", "data", - bin_file, NULL); chunk = new MemoryChunk; - bool retval = chunk->load(filename); + bool retval = chunk->load(bin_file); if (!retval) { fprintf(stderr, "open %s failed!\n", bin_file); exit(ENOENT); } phrase_index.load(i, chunk); - g_free(filename); } /* Note: please increase the value when corpus size becomes larger. |