mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-07 13:44:55 +03:00
Update Span types
This commit is contained in:
parent
30a0f70171
commit
49d99ee040
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user