From 0b7fc32237ebdadb5f049835c026b8c19fdee6a8 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Thu, 17 May 2012 15:35:40 +0800 Subject: updates utils --- utils/segment/ngseg.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'utils/segment/ngseg.cpp') 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 */ -- cgit