mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
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,
|
lang: Optional[str] = None,
|
||||||
concatenate: bool = False,
|
concatenate: bool = False,
|
||||||
silent: bool = True,
|
silent: bool = True,
|
||||||
msg: Optional[Printer],
|
msg: Optional[Printer] = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
|
input_path = Path(input_path)
|
||||||
if not msg:
|
if not msg:
|
||||||
msg = Printer(no_print=silent)
|
msg = Printer(no_print=silent)
|
||||||
ner_map = srsly.read_json(ner_map) if ner_map is not None else None
|
ner_map = srsly.read_json(ner_map) if ner_map is not None else None
|
||||||
|
|
Loading…
Reference in New Issue
Block a user