correct char_span output type - can be None

This commit is contained in:
svlandeg 2023-11-16 10:48:34 +01:00
parent bd2c17e206
commit 7f2a96f777

View File

@ -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: ...