使用 HuggingFace 变换器执行 NER 后如何使用 seqeval classification_report?

How to use seqeval classification_report after having performed NER with HuggingFace transformers?

我在我的自定义数据集上关注了 this tutorial,现在我有了一个经过训练的模型。

我想使用 seqevalclassification_report 函数,以便更好地展示我的模型的性能。

我应该在哪些数据上调用 classification_report

您可以先在您的训练数据上调用 classification_report 来检查模型是否训练正确,然后在测试数据上调用它来检查您的模型如何处理它没有看到的数据之前。