diff options
author | Patrick Simianer <p@simianer.de> | 2014-07-20 15:08:12 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2014-07-20 15:08:12 +0200 |
commit | 08e9a6f71c80fc7327d1758312b40bd5ba763dc9 (patch) | |
tree | 93a027bbb3e34fd60cc8e5d030a443a7f665389f /util | |
parent | f219bab21c07d02e7e54d557e23387bd93c9ce5f (diff) |
a lot
Diffstat (limited to 'util')
-rwxr-xr-x | util/cdec2json.py | 2 |
1 files changed, 1 insertions, 1 deletions
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":{' |