mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-04 03:43:09 +03:00
add assert for robustness and readability
This commit is contained in:
parent
219410facb
commit
eaa77e67ea
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user