You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@joshua.apache.org by mj...@apache.org on 2017/02/01 01:27:59 UTC

[3/9] incubator-joshua git commit: bugfix in label strip

bugfix in label strip


Project: http://git-wip-us.apache.org/repos/asf/incubator-joshua/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-joshua/commit/b324714a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-joshua/tree/b324714a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-joshua/diff/b324714a

Branch: refs/heads/master
Commit: b324714ac0380462ecd9d8af3dd9a4f16f4c73db
Parents: 69ca9fd
Author: Matt Post <po...@cs.jhu.edu>
Authored: Mon Jan 30 21:02:37 2017 -0500
Committer: Matt Post <po...@cs.jhu.edu>
Committed: Mon Jan 30 21:02:37 2017 -0500

----------------------------------------------------------------------
 scripts/thrax/strip_label.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/b324714a/scripts/thrax/strip_label.py
----------------------------------------------------------------------
diff --git a/scripts/thrax/strip_label.py b/scripts/thrax/strip_label.py
index e1b20a8..f6f6a92 100755
--- a/scripts/thrax/strip_label.py
+++ b/scripts/thrax/strip_label.py
@@ -24,6 +24,6 @@ sys.stdout.encoding = 'utf-8'
 
 for line in sys.stdin:
     tokens = line.split(' ||| ')
-    tokens[3] = re.sub(r' \S*=', ' ', tokens[3])
+    tokens[3] = re.sub(r'\S*=', '', tokens[3])
 
     print ' ||| '.join(tokens),