From 49d99ee04076740bd651a79e2673b928cbad1f98 Mon Sep 17 00:00:00 2001 From: Adriane Boyd Date: Thu, 16 Feb 2023 12:46:37 +0100 Subject: [PATCH] Update Span types --- spacy/tokens/span.pyi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spacy/tokens/span.pyi b/spacy/tokens/span.pyi index 549990c5e..1aa2552a4 100644 --- a/spacy/tokens/span.pyi +++ b/spacy/tokens/span.pyi @@ -74,6 +74,8 @@ class Span: @property def ents(self) -> Tuple[Span]: ... @property + def sents(self) -> Tuple[Span]: ... + @property def has_vector(self) -> bool: ... @property def vector(self) -> Floats1d: ... @@ -86,7 +88,7 @@ class Span: @property def text_with_ws(self) -> str: ... @property - def noun_chunks(self) -> Iterator[Span]: ... + def noun_chunks(self) -> Tuple[Span]: ... @property def root(self) -> Token: ... def char_span(