mirror of https://github.com/explosion/spaCy.git
* 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,
|
cdef Transition best_gold(self, Transition* guess, const weight_t* scores,
|
||||||
const State* s, Move* golds) except *:
|
const State* s, Move* golds) except *:
|
||||||
|
|
||||||
cdef Move* g = &golds[s.i]
|
cdef Move* g = &golds[s.i]
|
||||||
cdef ActionType next_act = <ActionType>golds[s.i+1].action if s.i < s.length else OUT
|
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)
|
cdef bint is_sunk = entity_is_sunk(s, golds)
|
||||||
|
@ -203,8 +202,8 @@ cdef class TransitionSystem:
|
||||||
scores[i] > score:
|
scores[i] > score:
|
||||||
best = i
|
best = i
|
||||||
score = scores[i]
|
score = scores[i]
|
||||||
assert best >= 0
|
assert best >= 0
|
||||||
return self._moves[best]
|
return self._moves[best]
|
||||||
|
|
||||||
|
|
||||||
class OracleError(Exception):
|
class OracleError(Exception):
|
||||||
|
|
Loading…
Reference in New Issue