From 1c8de6b2e514e4d0f9a23173495b956509aadb3f Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Wed, 18 Sep 2019 13:13:51 +0200 Subject: [PATCH] Rename DocBox->DocPallet --- spacy/tokens/__init__.py | 3 ++- spacy/tokens/_serialize.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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):