Skip to content

Commit

Permalink
re-applied changes from heatherleaf@c65dffd, cf nltk#670
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenbird committed May 20, 2014
1 parent 2266fa4 commit 045e481
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nltk/parse/chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -1329,7 +1329,8 @@ def chart_parse(self, tokens, trace=None):
edge = agenda.pop()
for rule in inference_rules:
new_edges = list(rule.apply(chart, grammar, edge))
trace_new_edges(chart, rule, new_edges, trace, trace_edge_width)
if trace:
trace_new_edges(chart, rule, new_edges, trace, trace_edge_width)
agenda += new_edges

else:
Expand Down

0 comments on commit 045e481

Please sign in to comment.