diff options
author | Peng Wu <alexepico@gmail.com> | 2011-08-06 15:13:18 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-08-06 15:13:18 +0800 |
commit | eaf1746a982bc5052c26376dde917b34b40b0870 (patch) | |
tree | 022edab38881d9486f8f170961e4cc80c29a6cef /evaluate.py | |
parent | 3897e71c43e5da9829e342d92d038964acc68316 (diff) | |
download | trainer-eaf1746a982bc5052c26376dde917b34b40b0870.tar.gz trainer-eaf1746a982bc5052c26376dde917b34b40b0870.tar.xz trainer-eaf1746a982bc5052c26376dde917b34b40b0870.zip |
update with new libpinyin path
Diffstat (limited to 'evaluate.py')
-rwxr-xr-x | evaluate.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/evaluate.py b/evaluate.py index ad3ea4e..01c246f 100755 --- a/evaluate.py +++ b/evaluate.py @@ -54,13 +54,13 @@ def buildData(): def estimateModel(reportfile): #change to utils/training subdir cwd = os.getcwd() - os.chdir(os.path.join(libpinyindir, 'utils', 'training')) + os.chdir(os.path.join(libpinyindir, 'data')) result_line_prefix = "average lambda:" avg_lambda = 0. #begin processing - cmdline = ['./estimate_interpolation'] + cmdline = ['../utils/training/estimate_interpolation'] subprocess = Popen(cmdline, shell=False, stdout=PIPE, \ close_fds=True) @@ -100,13 +100,13 @@ def modifyCodeforLambda(lambdaparam): def evaluateModel(reportfile): #change to utils/training subdir cwd = os.getcwd() - os.chdir(os.path.join(libpinyindir, 'utils', 'training')) + os.chdir(os.path.join(libpinyindir, 'data')) result_line_prefix = "correction rate:" rate = 0. #begin processing - cmdline = './eval_correction_rate 2>"' + reportfile + '"' + cmdline = '../utils/training/eval_correction_rate 2>"' + reportfile + '"' subprocess = Popen(cmdline, shell=True, stdout=PIPE, \ close_fds=True) |