From 411c842a712f2546869ba38eaa3391786a4d6499 Mon Sep 17 00:00:00 2001 From: Yohei Tamura Date: Thu, 7 Jan 2021 14:42:12 +0900 Subject: [PATCH] convert tuple to list, because the type mismatches (#6625) --- spacy/tokens/doc.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/tokens/doc.pyx b/spacy/tokens/doc.pyx index 29a8f0742..9eedf214b 100644 --- a/spacy/tokens/doc.pyx +++ b/spacy/tokens/doc.pyx @@ -1098,7 +1098,7 @@ cdef class Doc: (vocab,) = vocab if attrs is None: - attrs = Doc._get_array_attrs() + attrs = list(Doc._get_array_attrs()) else: if any(isinstance(attr, str) for attr in attrs): # resolve attribute names attrs = [intify_attr(attr) for attr in attrs] # intify_attr returns None for invalid attrs