summaryrefslogtreecommitdiff
path: root/python/cdec/sa/compile.py
diff options
context:
space:
mode:
authorMichael Denkowski <mdenkows@cs.cmu.edu>2014-03-07 01:52:09 -0800
committerMichael Denkowski <mdenkows@cs.cmu.edu>2014-03-07 01:52:09 -0800
commitfcf92357806816bb65dade6f761fa08448f88f71 (patch)
tree681aa2f4319ebfe1bf9e1d6a748e504cfae72790 /python/cdec/sa/compile.py
parent256070339f557e295c1e90e9a451c82731d5c223 (diff)
More online bilex updates
Diffstat (limited to 'python/cdec/sa/compile.py')
-rw-r--r--python/cdec/sa/compile.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/python/cdec/sa/compile.py b/python/cdec/sa/compile.py
index 3cdf212f..a5bd0699 100644
--- a/python/cdec/sa/compile.py
+++ b/python/cdec/sa/compile.py
@@ -132,9 +132,11 @@ def main():
start_time = monitor_cpu()
logger.info('Compiling online bilexical dictionary')
if args.bitext:
- bilex = cdec.sa.online.Bilex(alignment_f=args.alignment, text_f=args.bitext)
+ bilex = cdec.sa.online.Bilex()
+ bilex.add_bitext(args.alignment, args.bitext)
else:
- bilex = cdec.sa.online.Bilex(alignment_f=args.alignment, text_f=args.source, text_target_f=args.target)
+ bilex = cdec.sa.online.Bilex()
+ bilex.add_bitext(args.alignment, args.source, args.target)
bilex.write(bilex_file)
stop_time = monitor_cpu()
logger.info('Compiling online bilexical dictionary took %f seconds', stop_time - start_time)