mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-11 16:52:21 +03:00
Remove docstring
This commit is contained in:
parent
0c1ca495c9
commit
80d0946464
|
@ -235,18 +235,6 @@ class Tok2Vec(TrainablePipe):
|
||||||
sgd: Optional[Optimizer] = None,
|
sgd: Optional[Optimizer] = None,
|
||||||
losses: Optional[Dict[str, float]] = 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:
|
if losses is None:
|
||||||
losses = {}
|
losses = {}
|
||||||
losses.setdefault(self.name, 0.0)
|
losses.setdefault(self.name, 0.0)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user