This commit is contained in:
Matthew Honnibal 2021-01-25 14:51:46 +11:00
parent 772248f84a
commit 19747d98d1

View File

@ -83,8 +83,6 @@ cdef class TransitionSystem:
def get_oracle_sequence_from_state(self, StateClass state, gold, _debug=None):
if state.is_final():
return []
if not self.has_gold(eg):
return []
cdef Pool mem = Pool()
# n_moves should not be zero at this point, but make sure to avoid zero-length mem alloc
assert self.n_moves > 0