diff options
author | Michael Denkowski <mdenkows@cs.cmu.edu> | 2013-09-03 12:13:03 -0700 |
---|---|---|
committer | Michael Denkowski <mdenkows@cs.cmu.edu> | 2013-09-03 12:13:03 -0700 |
commit | eec45e082f4261871bb6547a14511d2c722e3f59 (patch) | |
tree | dd6fe95e46d59e7f1b8cd0fd2a467dd825bee7c1 /realtime/rt/aligner.py | |
parent | 7e8600d924f082c2d4b84e5d80993531e880c390 (diff) |
MIRA updates in realtime.py
Diffstat (limited to 'realtime/rt/aligner.py')
-rw-r--r-- | realtime/rt/aligner.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/realtime/rt/aligner.py b/realtime/rt/aligner.py index d94dbda0..4a0ace48 100644 --- a/realtime/rt/aligner.py +++ b/realtime/rt/aligner.py @@ -23,7 +23,10 @@ class ForceAligner: self.rev_align = util.popen_io(rev_cmd) self.tools = util.popen_io(tools_cmd) - def align(self, line): + def align(self, source, target): + return self.align_formatted('{} ||| {}'.format(source, target)) + + def align_formatted(self, line): self.fwd_align.stdin.write('{}\n'.format(line)) self.rev_align.stdin.write('{}\n'.format(line)) # f words ||| e words ||| links ||| score |