mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-13 02:36:32 +03:00
Fix training.callbacks <-> language import cycle
This commit is contained in:
parent
122f3b32ad
commit
8b2732e276
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue
Block a user