From 3d9959ed830c4ae5bc7b4f7a525f25f34fc67313 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Fri, 19 Oct 2012 12:24:06 +0800 Subject: clean up code --- utils/training/eval_correction_rate.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'utils/training/eval_correction_rate.cpp') diff --git a/utils/training/eval_correction_rate.cpp b/utils/training/eval_correction_rate.cpp index ed37266..29667ba 100644 --- a/utils/training/eval_correction_rate.cpp +++ b/utils/training/eval_correction_rate.cpp @@ -147,10 +147,6 @@ int main(int argc, char * argv[]){ exit(ENOENT); } - PhraseTokens phrase_tokens; - memset(phrase_tokens, 0, sizeof(PhraseTokens)); - phrase_index.prepare_tokens(phrase_tokens); - /* Evaluates the correction rate of test text documents. */ size_t tested_count = 0; size_t passed_count = 0; char* linebuf = NULL; size_t size = 0; @@ -196,7 +192,5 @@ int main(int argc, char * argv[]){ fclose(evals_file); free(linebuf); - phrase_index.destroy_tokens(phrase_tokens); - return 0; } -- cgit