summaryrefslogtreecommitdiffstats
path: root/estimate.py
diff options
context:
space:
mode:
Diffstat (limited to 'estimate.py')
-rwxr-xr-xestimate.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/estimate.py b/estimate.py
index 7b07089..6f35d70 100755
--- a/estimate.py
+++ b/estimate.py
@@ -13,7 +13,7 @@ config = MyConfig()
#change cwd to the libpinyin utils/training directory
libpinyin_dir = config.getToolsDir()
-libpinyin_sub_dir = os.path.join(libpinyin_dir, 'utils', 'training')
+libpinyin_sub_dir = os.path.join(libpinyin_dir, 'data')
os.chdir(libpinyin_sub_dir)
#chdir done
@@ -36,7 +36,7 @@ def handleOneModel(modelfile, reportfile):
avg_lambda = 0.
#begin processing
- cmdline = ['./estimate_k_mixture_model', \
+ cmdline = ['../utils/training/estimate_k_mixture_model', \
'--deleted-bigram-file', \
config.getEstimatesModel(), \
'--bigram-file', \