From 45e68555505b6171c09de1a4cdfbb4d0e9b84e42 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Fri, 24 May 2019 14:06:26 +0200 Subject: [PATCH] Update Language.update docs --- spacy/language.py | 4 +++- website/docs/api/language.md | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/spacy/language.py b/spacy/language.py index 924c0b423..dab60a421 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -417,7 +417,9 @@ class Language(object): golds (iterable): A batch of `GoldParse` objects. drop (float): The droput rate. sgd (callable): An optimizer. - RETURNS (dict): Results from the update. + losses (dict): Dictionary to update with the loss, keyed by component. + component_cfg (dict): Config parameters for specific pipeline + components, keyed by component name. DOCS: https://spacy.io/api/language#update """ diff --git a/website/docs/api/language.md b/website/docs/api/language.md index 232a9020c..47d747775 100644 --- a/website/docs/api/language.md +++ b/website/docs/api/language.md @@ -119,6 +119,7 @@ Update the models in the pipeline. | `golds` | iterable | A batch of `GoldParse` objects or dictionaries. Dictionaries will be used to create [`GoldParse`](/api/goldparse) objects. For the available keys and their usage, see [`GoldParse.__init__`](/api/goldparse#init). | | `drop` | float | The dropout rate. | | `sgd` | callable | An optimizer. | +| `losses` | dict | Dictionary to update with the loss, keyed by pipeline component. | | `component_cfg` 2.1 | dict | Config parameters for specific pipeline components, keyed by component name. | ## Language.begin_training {#begin_training tag="method"}