From 48eb3ef14bc27326e6740eb418ef577dd601e627 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Kripner?= Date: Mon, 13 Nov 2023 09:11:17 +0100 Subject: [PATCH] Replace 'stderr' with 'sys.stderr'. --- evaluation/summ_eval/calc_scores.py | 2 +- evaluation/summ_eval/sentence_movers_utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/evaluation/summ_eval/calc_scores.py b/evaluation/summ_eval/calc_scores.py index 5261d11..fee827f 100644 --- a/evaluation/summ_eval/calc_scores.py +++ b/evaluation/summ_eval/calc_scores.py @@ -217,7 +217,7 @@ def cli_main(): nlp = spacy.load('en_core_web_md') except OSError: print('Downloading the spacy en_core_web_md model\n' - "(don't worry, this will only happen once)", file=stderr) + "(don't worry, this will only happen once)", file=sys.stderr) from spacy.cli import download download('en_core_web_md') nlp = spacy.load('en_core_web_md') diff --git a/evaluation/summ_eval/sentence_movers_utils.py b/evaluation/summ_eval/sentence_movers_utils.py index 0d44cfb..781d3ce 100644 --- a/evaluation/summ_eval/sentence_movers_utils.py +++ b/evaluation/summ_eval/sentence_movers_utils.py @@ -19,7 +19,7 @@ nlp = spacy.load('en_core_web_sm') except OSError: print('Downloading the spacy en_core_web_sm model\n' - "(don't worry, this will only happen once)", file=stderr) + "(don't worry, this will only happen once)", file=sys.stderr) from spacy.cli import download download('en_core_web_sm') nlp = spacy.load('en_core_web_sm')