From 13f9a9af2059d9e1f9c4be1480483d2b1fcfb533 Mon Sep 17 00:00:00 2001 From: thomashacker Date: Mon, 6 Mar 2023 12:16:29 +0100 Subject: [PATCH] Add warning section --- website/docs/usage/training.mdx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/website/docs/usage/training.mdx b/website/docs/usage/training.mdx index c5ff323c7..7a57602d3 100644 --- a/website/docs/usage/training.mdx +++ b/website/docs/usage/training.mdx @@ -758,6 +758,14 @@ any custom architectures, functions or your pipeline and registered when it's loaded. See the documentation on [saving and loading pipelines](/usage/saving-loading#models-custom) for details. + + +Please note that unpackaged models produced by `spacy train` do **not include +any custom code**, you need to import the code to your script before loading in +unpackaged models. + + + #### Example: Modifying the nlp object {id="custom-code-nlp-callbacks"} For many use cases, you don't necessarily want to implement the whole `Language`