mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
add counts to verbose list of NER labels (#10957)
This commit is contained in:
parent
4c058eb40a
commit
f00254ae27
|
@ -361,7 +361,7 @@ def debug_data(
|
||||||
if label != "-"
|
if label != "-"
|
||||||
]
|
]
|
||||||
labels_with_counts = _format_labels(labels_with_counts, counts=True)
|
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
|
missing_labels = model_labels - labels
|
||||||
if missing_labels:
|
if missing_labels:
|
||||||
msg.warn(
|
msg.warn(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user