mirror of
https://github.com/explosion/spaCy.git
synced 2025-02-11 09:00:36 +03:00
Update arc_eager oracle
This commit is contained in:
parent
c58deb3546
commit
e90341810c
|
@ -238,7 +238,7 @@ cdef weight_t push_cost(StateClass stcls, const void* _gold, int target) nogil:
|
||||||
cdef weight_t cost = 0
|
cdef weight_t cost = 0
|
||||||
if is_head_in_stack(gold, target):
|
if is_head_in_stack(gold, target):
|
||||||
cost += 1
|
cost += 1
|
||||||
cost += gold.n_kids_in_buffer[target]
|
cost += gold.n_kids_in_stack[target]
|
||||||
if Break.is_valid(stcls.c, 0) and Break.move_cost(stcls, gold) == 0:
|
if Break.is_valid(stcls.c, 0) and Break.move_cost(stcls, gold) == 0:
|
||||||
cost += 1
|
cost += 1
|
||||||
return cost
|
return cost
|
||||||
|
|
Loading…
Reference in New Issue
Block a user