mirror of
https://github.com/explosion/spaCy.git
synced 2025-02-06 06:30:35 +03:00
Merge from remote
This commit is contained in:
commit
79288e7110
|
@ -742,11 +742,8 @@ cdef class ArcEager(TransitionSystem):
|
||||||
else:
|
else:
|
||||||
is_valid[i] = False
|
is_valid[i] = False
|
||||||
costs[i] = 9000
|
costs[i] = 9000
|
||||||
#if n_gold < 1:
|
if n_gold < 1:
|
||||||
# raise ValueError
|
raise ValueError
|
||||||
# #failure_state = stcls.print_state([t.text for t in example])
|
|
||||||
# #raise ValueError(
|
|
||||||
# # Errors.E021.format(n_actions=self.n_moves, state=failure_state))
|
|
||||||
|
|
||||||
def get_oracle_sequence(self, Example example):
|
def get_oracle_sequence(self, Example example):
|
||||||
cdef Pool mem = Pool()
|
cdef Pool mem = Pool()
|
||||||
|
@ -812,5 +809,3 @@ cdef class ArcEager(TransitionSystem):
|
||||||
print("Buffer", [example.x[i] for i in state.queue])
|
print("Buffer", [example.x[i] for i in state.queue])
|
||||||
raise ValueError(Errors.E024)
|
raise ValueError(Errors.E024)
|
||||||
return history
|
return history
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user