mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-26 09:14:32 +03:00
* Break apart a condition, for ease of debug printing
This commit is contained in:
parent
b32f581acb
commit
3feb52374c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user