summaryrefslogtreecommitdiff
path: root/realtime/rt/aligner.py
diff options
context:
space:
mode:
Diffstat (limited to 'realtime/rt/aligner.py')
-rw-r--r--realtime/rt/aligner.py5
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