Merge from remote

This commit is contained in:
Matthew Honnibal 2020-06-22 00:58:18 +02:00
commit 79288e7110

View File

@ -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