Update Span types

This commit is contained in:
Adriane Boyd 2023-02-16 12:46:37 +01:00
parent 30a0f70171
commit 49d99ee040

View File

@ -74,6 +74,8 @@ class Span:
@property @property
def ents(self) -> Tuple[Span]: ... def ents(self) -> Tuple[Span]: ...
@property @property
def sents(self) -> Tuple[Span]: ...
@property
def has_vector(self) -> bool: ... def has_vector(self) -> bool: ...
@property @property
def vector(self) -> Floats1d: ... def vector(self) -> Floats1d: ...
@ -86,7 +88,7 @@ class Span:
@property @property
def text_with_ws(self) -> str: ... def text_with_ws(self) -> str: ...
@property @property
def noun_chunks(self) -> Iterator[Span]: ... def noun_chunks(self) -> Tuple[Span]: ...
@property @property
def root(self) -> Token: ... def root(self) -> Token: ...
def char_span( def char_span(