Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixes evaluate.py

  • Loading branch information...
commit 97a030c8af522aac4ab5927d6d81c0b6223198f2 1 parent 062a033
@epico epico authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 evaluate.py
View
4 evaluate.py
@@ -14,7 +14,7 @@
config = MyConfig()
#change cwd to the libpinyin data directory
-libpinyin_dir = config.getToolsDir()
+libpinyin_dir = config.getEvalsDir()
libpinyin_sub_dir = os.path.join(libpinyin_dir, 'data')
os.chdir(libpinyin_sub_dir)
#chdir done
@@ -144,7 +144,7 @@ def evaluateModel(reportfile):
checkData()
modelfile = os.path.join(trydir, config.getFinalModelFileName())
- destfile = os.path.join(libpinyindir, 'data', \
+ destfile = os.path.join(libpinyin_dir, 'data', \
config.getFinalModelFileName())
print('copying from ' + modelfile + ' to ' + destfile)
Please sign in to comment.
Something went wrong with that request. Please try again.