From ed6325760c6cbd7681330bd9591f66ce5efe60ae Mon Sep 17 00:00:00 2001 From: Michael Denkowski Date: Wed, 4 Sep 2013 12:27:22 -0700 Subject: Infrastructure for HPYPLM, config file management. --- realtime/mkconfig.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'realtime/mkconfig.py') diff --git a/realtime/mkconfig.py b/realtime/mkconfig.py index 954283ce..32388978 100755 --- a/realtime/mkconfig.py +++ b/realtime/mkconfig.py @@ -31,9 +31,9 @@ def main(): # grammar extractor shutil.copytree(sa, os.path.join(output_d, 'sa')) - config = ConfigObj(sa_ini) + config = ConfigObj(sa_ini, unrepr=True) config.filename = os.path.join(output_d, 'sa.ini') - rt.util.sa_ini_basename(config) + rt.util.sa_ini_for_config(config) config.write() # language models @@ -43,7 +43,7 @@ def main(): # decoder config config = [[f.strip() for f in line.split('=')] for line in open(cdec_ini)] - rt.util.cdec_ini_basename(config) + rt.util.cdec_ini_for_config(config) with open(os.path.join(output_d, 'cdec.ini'), 'w') as output: for (k, v) in config: output.write('{}={}\n'.format(k, v)) -- cgit v1.2.3