mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +03:00
* Commit some work on ner.yx done on the plane
This commit is contained in:
parent
d81b7be6a2
commit
0ff078876a
|
@ -190,7 +190,6 @@ cdef class TransitionSystem:
|
|||
|
||||
cdef Transition best_gold(self, Transition* guess, const weight_t* scores,
|
||||
const State* s, Move* golds) except *:
|
||||
|
||||
cdef Move* g = &golds[s.i]
|
||||
cdef ActionType next_act = <ActionType>golds[s.i+1].action if s.i < s.length else OUT
|
||||
cdef bint is_sunk = entity_is_sunk(s, golds)
|
||||
|
@ -203,8 +202,8 @@ cdef class TransitionSystem:
|
|||
scores[i] > score:
|
||||
best = i
|
||||
score = scores[i]
|
||||
assert best >= 0
|
||||
return self._moves[best]
|
||||
assert best >= 0
|
||||
return self._moves[best]
|
||||
|
||||
|
||||
class OracleError(Exception):
|
||||
|
|
Loading…
Reference in New Issue
Block a user