mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-12 17:22:25 +03:00
correct char_span output type - can be None
This commit is contained in:
parent
bd2c17e206
commit
7f2a96f777
|
@ -125,7 +125,7 @@ class Doc:
|
||||||
vector: Optional[Floats1d] = ...,
|
vector: Optional[Floats1d] = ...,
|
||||||
alignment_mode: str = ...,
|
alignment_mode: str = ...,
|
||||||
span_id: Union[int, str] = ...,
|
span_id: Union[int, str] = ...,
|
||||||
) -> Span: ...
|
) -> Optional[Span]: ...
|
||||||
def similarity(self, other: Union[Doc, Span, Token, Lexeme]) -> float: ...
|
def similarity(self, other: Union[Doc, Span, Token, Lexeme]) -> float: ...
|
||||||
@property
|
@property
|
||||||
def has_vector(self) -> bool: ...
|
def has_vector(self) -> bool: ...
|
||||||
|
|
Loading…
Reference in New Issue
Block a user