Clean up unused code in Language

Follow-up to #12701.
This commit is contained in:
Adriane Boyd 2023-07-18 12:59:07 +02:00
parent 6bf7c65329
commit 4ce1709fcb

View File

@ -1825,7 +1825,6 @@ class Language:
# Later we replace the component config with the raw config again.
interpolated = filled.interpolate() if not filled.is_interpolated else filled
pipeline = interpolated.get("components", {})
sourced = util.get_sourced_components(interpolated)
# If components are loaded from a source (existing models), we cache
# them here so they're only loaded once
source_nlps = {}