Clarify warning W030 for misaligned BILUO tags (#5761)

This commit is contained in:
Adriane Boyd 2020-07-14 14:09:48 +02:00 committed by GitHub
parent 7ea2cc7650
commit 5228920e2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,8 +113,8 @@ class Warnings(object):
W030 = ("Some entities could not be aligned in the text \"{text}\" with " W030 = ("Some entities could not be aligned in the text \"{text}\" with "
"entities \"{entities}\". Use " "entities \"{entities}\". Use "
"`spacy.gold.biluo_tags_from_offsets(nlp.make_doc(text), entities)`" "`spacy.gold.biluo_tags_from_offsets(nlp.make_doc(text), entities)`"
" to check the alignment. Misaligned entities ('-') will be " " to check the alignment. Misaligned entities (with BILUO tag '-') "
"ignored during training.") "will be ignored during training.")
W031 = ("Model '{model}' ({model_version}) requires spaCy {version} and " W031 = ("Model '{model}' ({model_version}) requires spaCy {version} and "
"is incompatible with the current spaCy version ({current}). This " "is incompatible with the current spaCy version ({current}). This "
"may lead to unexpected results or runtime errors. To resolve " "may lead to unexpected results or runtime errors. To resolve "