From 5642507823999d034262a06eeb39146e0642bd27 Mon Sep 17 00:00:00 2001 From: Matthw Honnibal Date: Sat, 4 Jul 2020 23:52:02 +0200 Subject: [PATCH] Fix has_unknown_spaces in Doc.copy --- spacy/tokens/doc.pyx | 1 + 1 file changed, 1 insertion(+) diff --git a/spacy/tokens/doc.pyx b/spacy/tokens/doc.pyx index 723873e1f..22bcd02fc 100644 --- a/spacy/tokens/doc.pyx +++ b/spacy/tokens/doc.pyx @@ -983,6 +983,7 @@ cdef class Doc: other.is_parsed = self.is_parsed other.is_morphed = self.is_morphed other.sentiment = self.sentiment + other.has_unknown_spaces = self.has_unknown_spaces other.user_hooks = dict(self.user_hooks) other.user_token_hooks = dict(self.user_token_hooks) other.user_span_hooks = dict(self.user_span_hooks)