diff --git a/spacy/tokens/__init__.py b/spacy/tokens/__init__.py index 5722d45bc..28d86bb18 100644 --- a/spacy/tokens/__init__.py +++ b/spacy/tokens/__init__.py @@ -4,5 +4,6 @@ from __future__ import unicode_literals from .doc import Doc from .token import Token from .span import Span +from ._serialize import DocPallet -__all__ = ["Doc", "Token", "Span"] +__all__ = ["Doc", "Token", "Span", "DocPallet"] diff --git a/spacy/tokens/_serialize.py b/spacy/tokens/_serialize.py index 41f524839..222806545 100644 --- a/spacy/tokens/_serialize.py +++ b/spacy/tokens/_serialize.py @@ -11,7 +11,7 @@ from ..tokens import Doc from ..attrs import SPACY, ORTH -class DocBox(object): +class DocPallet(object): """Serialize analyses from a collection of doc objects.""" def __init__(self, attrs=None, store_user_data=False):