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:16 +08:00 committed by GitHub
parent be56c9c474
commit 183b8d9ce9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -958,8 +958,8 @@ class Errors(metaclass=ErrorsWithCodes):
E1046 = ("{cls_name} is an abstract class and cannot be instantiated. If you are looking for spaCy's default " E1046 = ("{cls_name} is an abstract class and cannot be instantiated. If you are looking for spaCy's default "
"knowledge base, use `InMemoryLookupKB`.") "knowledge base, use `InMemoryLookupKB`.")
E1047 = ("`find_threshold()` only supports components with a `scorer` attribute.") 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 " E1048 = ("No available port found for displaCy on host {host}. Please specify an available port "
"by `displacy.serve(doc, port)`") "with `displacy.serve(doc, port)`")
E1049 = ("Port {port} is already in use. Please specify an available port with `displacy.serve(doc, port)` " 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.") "or use `auto_switch_port=True` to pick an available port automatically.")