Minor fixes to convert CLI (#9465)

* Provide default value for `msg`
* Compare paths correctly for file conversion
This commit is contained in:
Adriane Boyd 2021-10-14 18:37:34 +02:00 committed by GitHub
parent 657af5f91f
commit b5143b1b84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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