Fix training.callbacks <-> language import cycle

This commit is contained in:
Daniël de Kok 2023-06-26 12:43:45 +02:00
parent 122f3b32ad
commit 8b2732e276

View File

@ -1,9 +1,11 @@
from typing import Callable, Optional
from typing import TYPE_CHECKING, Callable, Optional
from ..errors import Errors
from ..language import Language
from ..util import load_model, logger, registry
if TYPE_CHECKING:
from ..language import Language
@registry.callbacks("spacy.copy_from_base_model.v1")
def create_copy_from_base_model(