Remove docstring

This commit is contained in:
shademe 2023-01-16 17:11:31 +01:00
parent 0c1ca495c9
commit 80d0946464
No known key found for this signature in database
GPG Key ID: 6FCA9FC635B2A402

View File

@ -235,18 +235,6 @@ class Tok2Vec(TrainablePipe):
sgd: Optional[Optimizer] = None,
losses: Optional[Dict[str, float]] = None,
):
"""Learn from a batch of documents and gold-standard information,
updating the pipe's model.
examples (Iterable[Example]): A batch of Example objects.
drop (float): The dropout rate.
sgd (thinc.api.Optimizer): The optimizer.
losses (Dict[str, float]): Optional record of the loss during training.
Updated using the component name as the key.
RETURNS (Dict[str, float]): The updated losses dictionary.
DOCS: https://spacy.io/api/tok2vec#update
"""
if losses is None:
losses = {}
losses.setdefault(self.name, 0.0)