diff --git a/spacy/tokens/token.pyx b/spacy/tokens/token.pyx index 8099abd92..322c9a54c 100644 --- a/spacy/tokens/token.pyx +++ b/spacy/tokens/token.pyx @@ -223,7 +223,7 @@ cdef class Token: def set_morph(self, features): cdef hash_t key - if features is 0: + if features is None: self.c.morph = 0 else: if isinstance(features, int):