From 08e9a6f71c80fc7327d1758312b40bd5ba763dc9 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Sun, 20 Jul 2014 15:08:12 +0200 Subject: a lot --- util/cdec2json.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util') diff --git a/util/cdec2json.py b/util/cdec2json.py index 606caa4..a721644 100755 --- a/util/cdec2json.py +++ b/util/cdec2json.py @@ -33,7 +33,7 @@ def hg2json(hg, weights): a = [] for i in hg.edges: s = "{" - s += '"head":%d'%(i.head_node.id) + s += '"head":%d'%(i.head_node.id+1) s += ', "rule":%s'%(json.dumps(str(i.trule))) # f xs = ' "f":{' -- cgit v1.2.3