mirror of
https://github.com/explosion/spaCy.git
synced 2025-02-04 21:50:35 +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 weight_t score = MIN_SCORE
|
||||||
cdef int i
|
cdef int i
|
||||||
for i in range(self.n_moves):
|
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]
|
best = self.c[i]
|
||||||
score = scores[i]
|
score = scores[i]
|
||||||
assert score > MIN_SCORE
|
assert score > MIN_SCORE
|
||||||
|
|
Loading…
Reference in New Issue
Block a user