From 0563cd73d6b9dc9a5cc639f9a33e45691229d82a Mon Sep 17 00:00:00 2001 From: Sofie Van Landeghem Date: Wed, 24 Feb 2021 11:06:16 +0100 Subject: [PATCH] Fix SpanGroup import (#7182) * import SpanGroup from tokens module * revert edits from different PR * add to __all__ --- spacy/tokens/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spacy/tokens/__init__.py b/spacy/tokens/__init__.py index 1aefa2b7c..64090925d 100644 --- a/spacy/tokens/__init__.py +++ b/spacy/tokens/__init__.py @@ -1,7 +1,8 @@ from .doc import Doc from .token import Token from .span import Span +from .span_group import SpanGroup from ._serialize import DocBin from .morphanalysis import MorphAnalysis -__all__ = ["Doc", "Token", "Span", "DocBin", "MorphAnalysis"] +__all__ = ["Doc", "Token", "Span", "SpanGroup", "DocBin", "MorphAnalysis"]