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')