Skip to content

Commit

Permalink
Fix imports (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianeboyd authored Dec 7, 2022
1 parent 074cdb4 commit 9350148
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions spacy_loggers/clearml.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from typing import Dict, Any, Tuple, Callable, List, Optional, IO
import sys

from spacy import util
from spacy import Language, util
from spacy.training.loggers import console_logger


Expand All @@ -29,7 +29,7 @@ def clearml_logger_v1(
console = console_logger(progress_bar=False)

def setup_logger(
nlp: "Language", stdout: IO = sys.stdout, stderr: IO = sys.stderr
nlp: Language, stdout: IO = sys.stdout, stderr: IO = sys.stderr
) -> Tuple[Callable[[Dict[str, Any]], None], Callable[[], None]]:
config = nlp.config.interpolate()
config_dot = util.dict_to_dot(config)
Expand Down
2 changes: 1 addition & 1 deletion spacy_loggers/mlflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def mlflow_logger_v1(
console = console_logger(progress_bar=False)

def setup_logger(
nlp: "Language", stdout: IO = sys.stdout, stderr: IO = sys.stderr
nlp: Language, stdout: IO = sys.stdout, stderr: IO = sys.stderr
) -> Tuple[Callable[[Dict[str, Any]], None], Callable[[], None]]:
config = nlp.config.interpolate()
config_dot = util.dict_to_dot(config)
Expand Down

0 comments on commit 9350148

Please sign in to comment.