diff options
Diffstat (limited to 'util/cdec2json.py')
-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":{' |