mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-26 09:14:32 +03:00
convert tuple to list, because the type mismatches (#6625)
This commit is contained in:
parent
75d9019343
commit
411c842a71
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user