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] = ...,
|
||||
alignment_mode: str = ...,
|
||||
span_id: Union[int, str] = ...,
|
||||
) -> Span: ...
|
||||
) -> Optional[Span]: ...
|
||||
def similarity(self, other: Union[Doc, Span, Token, Lexeme]) -> float: ...
|
||||
@property
|
||||
def has_vector(self) -> bool: ...
|
||||
|
|
Loading…
Reference in New Issue
Block a user