From 77e08c398f7242f62d8c25cb6814e057b2786bb3 Mon Sep 17 00:00:00 2001 From: Adriane Boyd Date: Fri, 2 Oct 2020 08:25:15 +0200 Subject: [PATCH] Switch reset value for set_morph to None --- spacy/tokens/token.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):