summaryrefslogtreecommitdiffstats
path: root/utils/training/eval_correction_rate.cpp
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-10-19 12:24:06 +0800
committerPeng Wu <alexepico@gmail.com>2012-10-19 12:24:06 +0800
commit3d9959ed830c4ae5bc7b4f7a525f25f34fc67313 (patch)
tree33bbdf0408a5ff01e26450cecb04c6ef34dfd74a /utils/training/eval_correction_rate.cpp
parent484cf316c1257bf138815614c1576d4fcbbeac6c (diff)
downloadlibpinyin-3d9959ed830c4ae5bc7b4f7a525f25f34fc67313.tar.gz
libpinyin-3d9959ed830c4ae5bc7b4f7a525f25f34fc67313.tar.xz
libpinyin-3d9959ed830c4ae5bc7b4f7a525f25f34fc67313.zip
clean up code
Diffstat (limited to 'utils/training/eval_correction_rate.cpp')
-rw-r--r--utils/training/eval_correction_rate.cpp6
1 files changed, 0 insertions, 6 deletions
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;
}