From e5c7e19e82d3a9dec5ad34582b2cd3adc5396b1e Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Fri, 16 Aug 2019 10:53:38 +0200 Subject: [PATCH] Fix typo and auto-format [ci skip] --- spacy/cli/debug_data.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spacy/cli/debug_data.py b/spacy/cli/debug_data.py index 290131c76..656cd640a 100644 --- a/spacy/cli/debug_data.py +++ b/spacy/cli/debug_data.py @@ -245,7 +245,7 @@ def debug_data( if not has_low_data_warning: msg.good("Good amount of examples for all labels") if not has_no_neg_warning: - msg.good("Examples without occurences available for all labels") + msg.good("Examples without occurrences available for all labels") if not has_ws_ents_error: msg.good("No entities consisting of or starting/ending with whitespace") @@ -321,8 +321,8 @@ def debug_data( # profile sentence length msg.info( "Found {} sentence{} with an average length of {:.1f} words.".format( - gold_train_data["n_sents"], - "s" if len(train_docs) > 1 else "", + gold_train_data["n_sents"], + "s" if len(train_docs) > 1 else "", gold_train_data["n_words"] / gold_train_data["n_sents"] ) )