Update spacy/errors.py

Co-authored-by: Paul O'Leary McCann <polm@dampfkraft.com>
This commit is contained in:
Zhangrp 2022-12-12 16:40:00 +08:00 committed by GitHub
parent ab0637c809
commit 91fe074bb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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