This commit is contained in:
svlandeg 2023-12-07 13:49:15 +01:00
parent a2c9eeca0b
commit b68053c6c8

View File

@ -182,13 +182,9 @@ class Doc:
self, path: Union[str, Path], *, exclude: Iterable[str] = ... self, path: Union[str, Path], *, exclude: Iterable[str] = ...
) -> Doc: ... ) -> Doc: ...
def to_bytes(self, *, exclude: Iterable[str] = ...) -> bytes: ... def to_bytes(self, *, exclude: Iterable[str] = ...) -> bytes: ...
def from_bytes( def from_bytes(self, bytes_data: bytes, *, exclude: Iterable[str] = ...) -> Doc: ...
self, bytes_data: bytes, *, exclude: Iterable[str] = ...
) -> Doc: ...
def to_dict(self, *, exclude: Iterable[str] = ...) -> bytes: ... def to_dict(self, *, exclude: Iterable[str] = ...) -> bytes: ...
def from_dict( def from_dict(self, msg: bytes, *, exclude: Iterable[str] = ...) -> Doc: ...
self, msg: bytes, *, exclude: Iterable[str] = ...
) -> Doc: ...
def extend_tensor(self, tensor: Floats2d) -> None: ... def extend_tensor(self, tensor: Floats2d) -> None: ...
def retokenize(self) -> Retokenizer: ... def retokenize(self) -> Retokenizer: ...
def to_json(self, underscore: Optional[List[str]] = ...) -> Dict[str, Any]: ... def to_json(self, underscore: Optional[List[str]] = ...) -> Dict[str, Any]: ...