summaryrefslogtreecommitdiffstats
path: root/utils/segment
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-05-17 15:35:40 +0800
committerPeng Wu <alexepico@gmail.com>2012-05-17 15:35:40 +0800
commit0b7fc32237ebdadb5f049835c026b8c19fdee6a8 (patch)
tree1692f1914823c24cef9931d907eca5ed11726f79 /utils/segment
parentd6b9035b82cd00e1763c715386cfa52621945716 (diff)
downloadlibpinyin-0b7fc32237ebdadb5f049835c026b8c19fdee6a8.tar.gz
libpinyin-0b7fc32237ebdadb5f049835c026b8c19fdee6a8.tar.xz
libpinyin-0b7fc32237ebdadb5f049835c026b8c19fdee6a8.zip
updates utils
Diffstat (limited to 'utils/segment')
-rw-r--r--utils/segment/ngseg.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/utils/segment/ngseg.cpp b/utils/segment/ngseg.cpp
index 96e6588..25b9361 100644
--- a/utils/segment/ngseg.cpp
+++ b/utils/segment/ngseg.cpp
@@ -114,17 +114,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);
}
/* init bi-gram */