add counts to verbose list of NER labels (#10957)

This commit is contained in:
Sofie Van Landeghem 2022-06-20 08:48:40 +01:00 committed by GitHub
parent 4c058eb40a
commit f00254ae27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -361,7 +361,7 @@ def debug_data(
if label != "-"
]
labels_with_counts = _format_labels(labels_with_counts, counts=True)
msg.text(f"Labels in train data: {_format_labels(labels)}", show=verbose)
msg.text(f"Labels in train data: {labels_with_counts}", show=verbose)
missing_labels = model_labels - labels
if missing_labels:
msg.warn(