From 6108dabdc8412f09499c586802a12bceba2fd516 Mon Sep 17 00:00:00 2001 From: Adriane Boyd Date: Mon, 8 Feb 2021 09:21:36 +0100 Subject: [PATCH] Rephrase error related to sample data initialization Now that the initialize step is fully implemented, the source of E923 is typically missing or improperly converted/formatted data rather than a bug in spaCy, so rephrase the error and message and remove the prompt to open an issue. --- spacy/errors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/errors.py b/spacy/errors.py index 54fd2d8b0..79a15fbaa 100644 --- a/spacy/errors.py +++ b/spacy/errors.py @@ -579,8 +579,8 @@ class Errors: E922 = ("Component '{name}' has been initialized with an output dimension of " "{nO} - cannot add any more labels.") E923 = ("It looks like there is no proper sample data to initialize the " - "Model of component '{name}'. This is likely a bug in spaCy, so " - "feel free to open an issue: https://github.com/explosion/spaCy/issues") + "Model of component '{name}'. To check your input data paths and " + "annotation, run: python -m spacy debug data config.cfg") E924 = ("The '{name}' component does not seem to be initialized properly. " "This is likely a bug in spaCy, so feel free to open an issue: " "https://github.com/explosion/spaCy/issues")