Commit 6f070074 by Long Duong

Fix bug shown in jenkin server ...

parent c6929a38
...@@ -328,11 +328,13 @@ class TransitionParser(ParserI): ...@@ -328,11 +328,13 @@ class TransitionParser(ParserI):
def _is_projective(self, depgraph): def _is_projective(self, depgraph):
arc_list = [] arc_list = []
for key in depgraph.nodes: for key in depgraph.nodes:
node = depgraph.nodes[key] node = depgraph.nodes[key]
if 'head' in node: if 'head' in node:
childIdx = node['address'] childIdx = node['address']
parentIdx = node['head'] parentIdx = node['head']
arc_list.append((parentIdx, childIdx)) if parentIdx is not None:
arc_list.append((parentIdx, childIdx))
for (parentIdx, childIdx) in arc_list: for (parentIdx, childIdx) in arc_list:
# Ensure that childIdx < parentIdx # 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