diff --git a/spacy/schemas.py b/spacy/schemas.py index cdd8c11ed..594fc92ad 100644 --- a/spacy/schemas.py +++ b/spacy/schemas.py @@ -107,7 +107,7 @@ def validate_init_settings( *, section: Optional[str] = None, name: str = "", - exclude: Iterable[str] = ("get_examples", "pipeline", "sgd"), + exclude: Iterable[str] = ("get_examples", "nlp", "pipeline", "sgd"), ) -> Dict[str, Any]: """Validate initialization settings against the expected arguments in the method signature. Will parse values if possible (e.g. int to string)