mirror of https://github.com/explosion/spaCy.git
Minor fixes to convert CLI (#9465)
* Provide default value for `msg` * Compare paths correctly for file conversion
This commit is contained in:
parent
657af5f91f
commit
b5143b1b84
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue