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/estimate_interpolation.cpp | |
parent | d6b9035b82cd00e1763c715386cfa52621945716 (diff) | |
download | libpinyin-0b7fc32237ebdadb5f049835c026b8c19fdee6a8.tar.gz libpinyin-0b7fc32237ebdadb5f049835c026b8c19fdee6a8.tar.xz libpinyin-0b7fc32237ebdadb5f049835c026b8c19fdee6a8.zip |
updates utils
Diffstat (limited to 'utils/training/estimate_interpolation.cpp')
-rw-r--r-- | utils/training/estimate_interpolation.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/utils/training/estimate_interpolation.cpp b/utils/training/estimate_interpolation.cpp index 5f5abae..cd2ef96 100644 --- a/utils/training/estimate_interpolation.cpp +++ b/utils/training/estimate_interpolation.cpp @@ -96,17 +96,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); } Bigram bigram; |