add assert for robustness and readability

This commit is contained in:
svlandeg 2023-05-31 13:22:35 +02:00
parent 219410facb
commit eaa77e67ea

View File

@ -1811,6 +1811,7 @@ class Language:
raw_config=raw_config, raw_config=raw_config,
) )
else: else:
assert "source" in pipe_cfg
# We need the sourced components to reference the same # We need the sourced components to reference the same
# vocab without modifying the current vocab state **AND** # vocab without modifying the current vocab state **AND**
# we still want to load the source model vectors to perform # we still want to load the source model vectors to perform