summaryrefslogtreecommitdiffstats
path: root/utils/training/gen_unigram.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/training/gen_unigram.cpp')
-rw-r--r--utils/training/gen_unigram.cpp5
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.