summaryrefslogtreecommitdiff
path: root/word-aligner/force_align.py
diff options
context:
space:
mode:
Diffstat (limited to 'word-aligner/force_align.py')
-rwxr-xr-xword-aligner/force_align.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/word-aligner/force_align.py b/word-aligner/force_align.py
index f404fb54..a0c1aad7 100755
--- a/word-aligner/force_align.py
+++ b/word-aligner/force_align.py
@@ -39,8 +39,8 @@ def main():
f_a.stdin.write(line)
r_a.stdin.write(line)
# f words ||| e words ||| links ||| score
- f_line = f_a.stdout.readline().split(' ||| ')[2]
- r_line = r_a.stdout.readline().split(' ||| ')[2]
+ f_line = f_a.stdout.readline().split('|||')[2].strip()
+ r_line = r_a.stdout.readline().split('|||')[2].strip()
tools.stdin.write('{}\n'.format(f_line))
tools.stdin.write('{}\n'.format(r_line))
sys.stdout.write(tools.stdout.readline())