summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rwxr-xr-xutil/cdec2json.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/cdec2json.py b/util/cdec2json.py
index ac468ca..606caa4 100755
--- a/util/cdec2json.py
+++ b/util/cdec2json.py
@@ -25,7 +25,7 @@ def hg2json(hg, weights):
a = []
a.append( '{ "id":0, "cat":"root", "span":[-1,-1] }' )
for i in hg.nodes:
- a.append('{ "id":%d, "cat":"%s", "span":[%d,%d] }'%(i.id, i.cat, i.span[0], i.span[1]))
+ a.append('{ "id":%d, "cat":"%s", "span":[%d,%d] }'%(i.id+1, i.cat, i.span[0], i.span[1]))
res += ",\n".join(a)+"\n"
res += "],\n"
res += '"edges":'+"\n"