Constructing DocBin with attrs=None or a list doesn't work #5577
Labels
feat / doc
Feature: Doc, Span and Token objects
feat / serialize
Feature: Serialization, saving and loading
How to reproduce the behaviour
This should work according to the docs, as argument
attrs
to the constructor allows forNone
default value or a list of strings. This, however, throws an exception:
The error apparently stems from the fact that even though attrs is a list (the empty list in this case),
intify_attrs seems to expect a dictionary.
Your Environment
Info about spaCy
spaCy version: 2.2.0
Platform: Linux-5.0.0-32-generic-x86_64-with-debian-buster-sid
Python version: 3.7.6
Environment Information:
The text was updated successfully, but these errors were encountered: