From eab929361d0ecff914f6d7c9973ea552c77f678a Mon Sep 17 00:00:00 2001 From: Tom Aarsen <37621491+tomaarsen@users.noreply.github.com> Date: Tue, 4 Jul 2023 11:45:13 +0200 Subject: [PATCH] Use 'exclude' instead of 'disable' (#12783) as suggested by @svlandeg --- website/meta/universe.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/meta/universe.json b/website/meta/universe.json index cd3bedbff..75ec5fb5c 100644 --- a/website/meta/universe.json +++ b/website/meta/universe.json @@ -4372,7 +4372,7 @@ "code_example": [ "import spacy", "", - "nlp = spacy.load(\"en_core_web_sm\", disable=[\"ner\"])", + "nlp = spacy.load(\"en_core_web_sm\", exclude=[\"ner\"])", "nlp.add_pipe(\"span_marker\", config={\"model\": \"tomaarsen/span-marker-roberta-large-ontonotes5\"})", "", "text = \"\"\"Cleopatra VII, also known as Cleopatra the Great, was the last active ruler of the \\",