summaryrefslogtreecommitdiff
path: root/python/cdec/sa/compile.py
diff options
context:
space:
mode:
authorVictor Chahuneau <vchahune@cs.cmu.edu>2012-07-27 22:25:15 -0400
committerVictor Chahuneau <vchahune@cs.cmu.edu>2012-07-27 22:25:15 -0400
commit1d481414a2fa8505a2591c88e2b7b8f86a682ca2 (patch)
treeed5e9dff569d89da453578ce3d109991623d9303 /python/cdec/sa/compile.py
parentb317e0efd2398d75d70e027bb1e2cf442e683981 (diff)
[python] conversion from cdec.sa.Rule to cdec.TRule
+ remove configobj dependency + re-structure packages (no more top-level library) + "const" stuff + use __new__ instead of constructor for some objects
Diffstat (limited to 'python/cdec/sa/compile.py')
-rw-r--r--python/cdec/sa/compile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/cdec/sa/compile.py b/python/cdec/sa/compile.py
index 061cdab2..30e605a6 100644
--- a/python/cdec/sa/compile.py
+++ b/python/cdec/sa/compile.py
@@ -2,7 +2,7 @@
import argparse
import os
import logging
-import configobj
+import cdec.configobj
import cdec.sa
MAX_PHRASE_LENGTH = 4
@@ -80,7 +80,7 @@ def main():
lex.write_binary(lex_bin)
# Write configuration
- config = configobj.ConfigObj(args.config, unrepr=True)
+ config = cdec.configobj.ConfigObj(args.config, unrepr=True)
config['f_sa_file'] = f_sa_bin
config['e_file'] = e_bin
config['a_file'] = a_bin