Commit ca9ae085 by Steven Bird

Merge pull request #954 from longdt219/fix_trans_parser

Fix bug shown in jenkin server ...
parents c6929a38 6f070074
......@@ -328,11 +328,13 @@ class TransitionParser(ParserI):
def _is_projective(self, depgraph):
arc_list = []
for key in depgraph.nodes:
node = depgraph.nodes[key]
node = depgraph.nodes[key]
if 'head' in node:
childIdx = node['address']
parentIdx = node['head']
arc_list.append((parentIdx, childIdx))
if parentIdx is not None:
arc_list.append((parentIdx, childIdx))
for (parentIdx, childIdx) in arc_list:
# Ensure that childIdx < parentIdx
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment