From 85ede32680686c62bae2522cd5690ca7e826a2a5 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sat, 3 Oct 2020 19:26:23 +0200 Subject: [PATCH] Format --- spacy/training/loggers.py | 4 +--- spacy/training/loop.py | 3 ++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/spacy/training/loggers.py b/spacy/training/loggers.py index 585764214..f0ca7064a 100644 --- a/spacy/training/loggers.py +++ b/spacy/training/loggers.py @@ -75,9 +75,7 @@ def console_logger(progress_bar: bool = False): ) if progress is not None: progress.close() - stdout.write( - msg.row(data, widths=table_widths, aligns=table_aligns) + "\n" - ) + stdout.write(msg.row(data, widths=table_widths, aligns=table_aligns) + "\n") if progress_bar: # Set disable=None, so that it disables on non-TTY progress = tqdm.tqdm( diff --git a/spacy/training/loop.py b/spacy/training/loop.py index 2e347829a..b63adb6c9 100644 --- a/spacy/training/loop.py +++ b/spacy/training/loop.py @@ -93,7 +93,8 @@ def train( msg.warn( f"Aborting and saving the final best model. " f"Encountered exception: {str(e)}" - ) + "\n" + ) + + "\n" ) raise e finally: