Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
srush committed Sep 11, 2019
1 parent 6ca3dfc commit dfcfec0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torch_struct/cky.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,8 @@ def to_networkx(cls, spans):
G.add_node(cur, label=n[2].item())
cur += 1
for k, v in splits[0].items():
G.add_edge(indices[k], indices[(k[0], k[1], v)])
G.add_edge(indices[k], indices[(k[0], v+1, k[2])])
G.add_edge(indices[(k[0], k[1], v)], indices[k])
G.add_edge(indices[(k[0], v+1, k[2])], indices[k])
return G, indices

###### Test
Expand Down

0 comments on commit dfcfec0

Please sign in to comment.