Skip to content

Commit

Permalink
Fix LxMLS#89 by solving unordered retrieval from dict keys
Browse files Browse the repository at this point in the history
Co-authored-by: dcferreira <[email protected]>
  • Loading branch information
pedrobalage and dcferreira committed Mar 22, 2018
1 parent 90cb1ee commit cacfc17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lxmls/parsing/dependency_decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def chu_liu_edmonds(self, scores, curr_nodes, old_I, old_O, final_edges, reps):
wh_cyc = cycle

cycle = wh_cyc
cyc_nodes = list(cycle.keys())
cyc_nodes = sorted(list(cycle.keys()))
rep = cyc_nodes[0]

if self.verbose:
Expand Down

0 comments on commit cacfc17

Please sign in to comment.