From 43a752a2a07cd4202c1bb31de04a8c5f5bfc2bd9 Mon Sep 17 00:00:00 2001 From: Adriane Boyd Date: Sat, 16 Jan 2021 16:07:39 +0100 Subject: [PATCH] Fix assertion in default get oracle sequence usage (#6738) Remove assertion for default debug value in `get_oracle_sequence_from_state`. --- spacy/pipeline/_parser_internals/arc_eager.pyx | 1 - 1 file changed, 1 deletion(-) diff --git a/spacy/pipeline/_parser_internals/arc_eager.pyx b/spacy/pipeline/_parser_internals/arc_eager.pyx index 0f89132ea..069b41170 100644 --- a/spacy/pipeline/_parser_internals/arc_eager.pyx +++ b/spacy/pipeline/_parser_internals/arc_eager.pyx @@ -812,7 +812,6 @@ cdef class ArcEager(TransitionSystem): raise ValueError("Could not find gold transition - see logs above.") def get_oracle_sequence_from_state(self, StateClass state, ArcEagerGold gold, _debug=None): - assert _debug is not None cdef int i cdef Pool mem = Pool() # n_moves should not be zero at this point, but make sure to avoid zero-length mem alloc