langtest.utils.util_metrics#

Functions

calculate_f1_score(y_true, y_pred[, ...])

Calculate the F1 score for the provided true and predicted labels.

calculate_f1_score_multi_label(y_true, y_pred)

Calculate the F1 score for multi-label classification using binarized labels.

classification_report(y_true, y_pred[, ...])

Generate a classification report including precision, recall, f1-score, and support.

classification_report_multi_label(y_true, y_pred)

Generate a classification report for multi-label classification.

combine_labels(labels)

Combine labels by removing the BIO tags and keeping only the entity type.

simple_multilabel_binarizer(y_true, y_pred)

A simple implementation of a multilabel binarizer for y_true and y_pred.