From b5143b1b84c186db7b01b9a702681cc1af665e19 Mon Sep 17 00:00:00 2001 From: Adriane Boyd Date: Thu, 14 Oct 2021 18:37:34 +0200 Subject: [PATCH] Minor fixes to convert CLI (#9465) * Provide default value for `msg` * Compare paths correctly for file conversion --- spacy/cli/convert.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spacy/cli/convert.py b/spacy/cli/convert.py index 95df6bea4..04eb7078f 100644 --- a/spacy/cli/convert.py +++ b/spacy/cli/convert.py @@ -105,8 +105,9 @@ def convert( lang: Optional[str] = None, concatenate: bool = False, silent: bool = True, - msg: Optional[Printer], + msg: Optional[Printer] = None, ) -> None: + input_path = Path(input_path) if not msg: msg = Printer(no_print=silent) ner_map = srsly.read_json(ner_map) if ner_map is not None else None