* Break apart a condition, for ease of debug printing

This commit is contained in:
Matthew Honnibal 2015-03-27 15:21:38 +01:00
parent b32f581acb
commit 3feb52374c

View File

@ -47,7 +47,8 @@ cdef class TransitionSystem:
cdef weight_t score = MIN_SCORE
cdef int i
for i in range(self.n_moves):
if scores[i] > score and self.c[i].get_cost(&self.c[i], s, gold) == 0:
cost = self.c[i].get_cost(&self.c[i], s, gold)
if scores[i] > score and cost == 0:
best = self.c[i]
score = scores[i]
assert score > MIN_SCORE