From 91fe074bb554b556e70d57913164f056da870107 Mon Sep 17 00:00:00 2001 From: Zhangrp Date: Mon, 12 Dec 2022 16:40:00 +0800 Subject: [PATCH] Update spacy/errors.py Co-authored-by: Paul O'Leary McCann --- spacy/errors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/errors.py b/spacy/errors.py index 0a91a8473..32f325880 100644 --- a/spacy/errors.py +++ b/spacy/errors.py @@ -960,8 +960,8 @@ class Errors(metaclass=ErrorsWithCodes): E1047 = ("`find_threshold()` only supports components with a `scorer` attribute.") E1048 = ("No port available found for displacy on host {host}. Please specify an available port " "by `displacy.serve(doc, port)`") - E1049 = ("Port {port} is already in use. Please specify an available port by `displacy.serve(doc, port) " - "or let displacy automatically find a port by `displacy.serve(doc, auto_switch_port=True)`.") + E1049 = ("Port {port} is already in use. Please specify an available port with `displacy.serve(doc, port)` " + "or use `auto_switch_port=True` to pick an available port automatically.") # Deprecated model shortcuts, only used in errors and warnings