diff options
author | Michael Denkowski <mdenkows@cs.cmu.edu> | 2013-09-04 12:27:22 -0700 |
---|---|---|
committer | Michael Denkowski <mdenkows@cs.cmu.edu> | 2013-09-04 12:27:22 -0700 |
commit | 40eac315f63b018eec10da4124b801869cd788f5 (patch) | |
tree | 54ba29aa4b5ed47ee305d8238f8a52a91ecdc521 /realtime/mkconfig.py | |
parent | 7c583986ab4774480d45ada79a812c9c8853296b (diff) |
Infrastructure for HPYPLM, config file management.
Diffstat (limited to 'realtime/mkconfig.py')
-rwxr-xr-x | realtime/mkconfig.py | 6 |
1 files changed, 3 insertions, 3 deletions
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)) |