Use 'exclude' instead of 'disable' (#12783)

as suggested by @svlandeg
This commit is contained in:
Tom Aarsen 2023-07-04 11:45:13 +02:00 committed by GitHub
parent bd239511a4
commit eab929361d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 \\",