Artificial Intelligence, Machine Learning, Bert, Healthcare, AI.
zip(predictions, labels) ] true_labels = [ [label_list[l] for (p, l) in zip(prediction, label) if l != -100] for prediction, label in zip(predictions, labels) ] f1_score = classification_report( list(itertools.chain.from_iterable(true_labels)), list(itertools.chain.from_iterable(true_predictions)),