mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-13 02:36:32 +03:00
Format
This commit is contained in:
parent
b305f2ff5a
commit
85ede32680
|
@ -75,9 +75,7 @@ def console_logger(progress_bar: bool = False):
|
||||||
)
|
)
|
||||||
if progress is not None:
|
if progress is not None:
|
||||||
progress.close()
|
progress.close()
|
||||||
stdout.write(
|
stdout.write(msg.row(data, widths=table_widths, aligns=table_aligns) + "\n")
|
||||||
msg.row(data, widths=table_widths, aligns=table_aligns) + "\n"
|
|
||||||
)
|
|
||||||
if progress_bar:
|
if progress_bar:
|
||||||
# Set disable=None, so that it disables on non-TTY
|
# Set disable=None, so that it disables on non-TTY
|
||||||
progress = tqdm.tqdm(
|
progress = tqdm.tqdm(
|
||||||
|
|
|
@ -93,7 +93,8 @@ def train(
|
||||||
msg.warn(
|
msg.warn(
|
||||||
f"Aborting and saving the final best model. "
|
f"Aborting and saving the final best model. "
|
||||||
f"Encountered exception: {str(e)}"
|
f"Encountered exception: {str(e)}"
|
||||||
) + "\n"
|
)
|
||||||
|
+ "\n"
|
||||||
)
|
)
|
||||||
raise e
|
raise e
|
||||||
finally:
|
finally:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user