From a58ab6ea2275437b6321b7b7111084885ea5cd02 Mon Sep 17 00:00:00 2001 From: explosion-bot Date: Fri, 23 Jul 2021 08:04:09 +0000 Subject: [PATCH] Auto-format code with black --- spacy/training/initialize.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spacy/training/initialize.py b/spacy/training/initialize.py index 6051eef29..04d030964 100644 --- a/spacy/training/initialize.py +++ b/spacy/training/initialize.py @@ -77,7 +77,9 @@ def init_nlp(config: Config, *, use_gpu: int = -1) -> "Language": f"examples for initialization. If necessary, provide all labels " f"in [initialize]. More info: https://spacy.io/api/cli#init_labels" ) - nlp.initialize(lambda: islice(train_corpus(nlp), sample_size), sgd=optimizer) + nlp.initialize( + lambda: islice(train_corpus(nlp), sample_size), sgd=optimizer + ) else: nlp.initialize(lambda: train_corpus(nlp), sgd=optimizer) logger.info(f"Initialized pipeline components: {nlp.pipe_names}")