[关闭]
@songying 2020-05-06T10:07:55.000000Z 字数 589 阅读 1164

seqeval 库

python库


  1. pip install seqeval[cpu]
  2. pip install seqeval[gpu]
  1. from seqeval.metrics import accuracy_score
  2. from seqeval.metrics import classification_report
  3. from seqeval.metrics import f1_score
metrics description
accuracy_score(y_true, y_pred) Compute the accuracy.
precision_score(y_true, y_pred) Compute the precision.
recall_score(y_true, y_pred) Compute the recall.
f1_score(y_true, y_pred) Compute the F1 score, also known as balanced F-score or F-measure.
classification_report(y_true, y_pred, digits=2) Build a text report showing the main classification metrics. ^{} is number of digits for formatting output floating point values. Default value is ^{}.
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注