From eaa77e67ea109cb9523bddcdda3346012cc40e0b Mon Sep 17 00:00:00 2001 From: svlandeg Date: Wed, 31 May 2023 13:22:35 +0200 Subject: [PATCH] add assert for robustness and readability --- spacy/language.py | 1 + 1 file changed, 1 insertion(+) diff --git a/spacy/language.py b/spacy/language.py index 9cc35cac0..1af11bad1 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -1811,6 +1811,7 @@ class Language: raw_config=raw_config, ) else: + assert "source" in pipe_cfg # We need the sourced components to reference the same # vocab without modifying the current vocab state **AND** # we still want to load the source model vectors to perform