diff --git a/spacy/pipeline/tok2vec.py b/spacy/pipeline/tok2vec.py index aa6195ab6..72761abf7 100644 --- a/spacy/pipeline/tok2vec.py +++ b/spacy/pipeline/tok2vec.py @@ -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)