← 开源
chakki-works

seqeval

A Python framework for sequence labeling evaluation(named-entity recognition, pos tagging, etc...)

Model DevelopmentTraining toolkitsPython
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
1.19k
Star
132
Fork
+1
本周
10
贡献者
创建于 2018-02-15 · 更新于 2026-10-09 · 今日第 11239 名
主要开发者
Hironsankaushikacharyanipunsadvilkar

chakki-works/seqeval 排名第 11,239,有 1,188 个星标。

同类别比较

chakki-works/seqeval 排名第 11,239,此处有 8 个同类条目;functime-org/functime 排名第 11,240。

同类别比较
名称排名指标
flow-project/flow11,222
语言:
Python
星标数:
1,192
分叉数:
395
简介:
Computational framework for reinforcement learning in traffic control
jankrepl/deepdow11,230
语言:
Python
星标数:
1,190
分叉数:
171
简介:
Portfolio optimization with deep learning.
elliottwu/unsup3d11,231
语言:
Python
星标数:
1,189
分叉数:
190
简介:
(CVPR'20 Oral) Unsupervised Learning of Probably Symmetric Deformable 3D Objects from Images in the Wild
vanhuyz/CycleGAN-TensorFlow11,237
语言:
Python
星标数:
1,189
分叉数:
432
简介:
An implementation of CycleGan using TensorFlow
functime-org/functime11,240
语言:
Python
星标数:
1,188
分叉数:
65
简介:
Time-series machine learning at scale. Built with Polars for embarrassingly parallel feature extraction and forecasts on panel data.
lightaime/deep_gcns_torch11,244
语言:
Python
星标数:
1,188
分叉数:
152
简介:
Pytorch Repo for DeepGCNs (ICCV'2019 Oral, TPAMI'2021), DeeperGCN (arXiv'2020) and GNN1000(ICML'2021): https://www.deepgcns.org
SHI-Labs/Neighborhood-Attention-Transformer11,250
语言:
Python
星标数:
1,186
分叉数:
90
简介:
Neighborhood Attention Transformer, arxiv 2022 / CVPR 2023. Dilated Neighborhood Attention Transformer, arxiv 2022
chengxuxin/extreme-parkour11,251
语言:
Python
星标数:
1,186
分叉数:
179
简介:
[ICRA 2024]: Train your parkour robot in less than 20 hours.
关键参数与规格
关键参数与规格
参数值
语言Python
类别Model Development
子类别Training toolkits
关键词Benchmarks
星标数1,188
分叉数132
贡献者10
创建日期2018-02-15
更新日期2026-10-09
1 天星标数0
7 天星标数1
排名11,239
上次排名11,193
排名变化-46
7 天星标排名10,090
上次 7 天星标排名10,128
7 天星标排名变化38
总星标排名9,795
上次总星标排名9,782
总星标排名变化-13
国家Japan
README 摘录

seqeval seqeval is a Python framework for sequence labeling evaluation. seqeval can evaluate the performance of chunking tasks such as named-entity recognition, part-of-speech tagging, semantic role labeling and so on. This is well-tested by using the Perl script conlleval, which can be used for measuring the performance of a system that has processed the CoNLL-2000 shared task data. | | 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. | Usage seqeval supports the two evaluation modes. You can specify the following mode to each metrics: default strict The default mode is compatible with conlleval. If you want to use the default mode

, you don't need to specify it: In strict mode, the inputs are evaluated according to the specified schema. The behavior of the strict mode is different from the default one which is designed to simulate conlleval. If you want to use the strict mode, please specify and arguments at the same time: A minimum case to explain differences between the default and strict mode: Installation To install seqeval, simply run: License MIT Citation

常见问题

记录了多少星标和分叉?

chakki-works/seqeval 有 1,188 个星标和 132 个分叉。

仓库排名是多少?

chakki-works/seqeval 排名第 11,239。

记录的语言和类别是什么?

chakki-works/seqeval 有 1,188 个星标,语言为 Python,类别为 Model Development。

哪个仓库排名最接近?

chakki-works/seqeval 与 functime-org/functime 比较,后者排名第 11,240,有 1,188 个星标。

README

seqeval

seqeval is a Python framework for sequence labeling evaluation. seqeval can evaluate the performance of chunking tasks such as named-entity recognition, part-of-speech tagging, semantic role labeling and so on.

This is well-tested by using the Perl script conlleval, which can be used for measuring the performance of a system that has processed the CoNLL-2000 shared task data.

Support features

seqeval supports following schemes:

  • IOB1
  • IOB2
  • IOE1
  • IOE2
  • IOBES(only in strict mode)
  • BILOU(only in strict mode)

and following metrics:

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. digits is number of digits for formatting output floating point values. Default value is 2.

Usage

seqeval supports the two evaluation modes. You can specify the following mode to each metrics:

  • default
  • strict

The default mode is compatible with conlleval. If you want to use the default mode, you don't need to specify it:

>>> from seqeval.metrics import accuracy_score
>>> from seqeval.metrics import classification_report
>>> from seqeval.metrics import f1_score
>>> y_true = [['O', 'O', 'O', 'B-MISC', 'I-MISC', 'I-MISC', 'O'], ['B-PER', 'I-PER', 'O']]
>>> y_pred = [['O', 'O', 'B-MISC', 'I-MISC', 'I-MISC', 'I-MISC', 'O'], ['B-PER', 'I-PER', 'O']]
>>> f1_score(y_true, y_pred)
0.50
>>> classification_report(y_true, y_pred)
              precision    recall  f1-score   support

        MISC       0.00      0.00      0.00         1
         PER       1.00      1.00      1.00         1

   micro avg       0.50      0.50      0.50         2
   macro avg       0.50      0.50      0.50         2
weighted avg       0.50      0.50      0.50         2

In strict mode, the inputs are evaluated according to the specified schema. The behavior of the strict mode is different from the default one which is designed to simulate conlleval. If you want to use the strict mode, please specify mode='strict' and scheme arguments at the same time:

>>> from seqeval.scheme import IOB2
>>> classification_report(y_true, y_pred, mode='strict', scheme=IOB2)
              precision    recall  f1-score   support

        MISC       0.00      0.00      0.00         1
         PER       1.00      1.00      1.00         1

   micro avg       0.50      0.50      0.50         2
   macro avg       0.50      0.50      0.50         2
weighted avg       0.50      0.50      0.50         2

A minimum case to explain differences between the default and strict mode:

>>> from seqeval.metrics import classification_report
>>> from seqeval.scheme import IOB2
>>> y_true = [['B-NP', 'I-NP', 'O']]
>>> y_pred = [['I-NP', 'I-NP', 'O']]
>>> classification_report(y_true, y_pred)
              precision    recall  f1-score   support
          NP       1.00      1.00      1.00         1
   micro avg       1.00      1.00      1.00         1
   macro avg       1.00      1.00      1.00         1
weighted avg       1.00      1.00      1.00         1
>>> classification_report(y_true, y_pred, mode='strict', scheme=IOB2)
              precision    recall  f1-score   support
          NP       0.00      0.00      0.00         1
   micro avg       0.00      0.00      0.00         1
   macro avg       0.00      0.00      0.00         1
weighted avg       0.00      0.00      0.00         1

Installation

To install seqeval, simply run:

pip install seqeval

License

MIT

Citation

@misc{seqeval,
  title={{seqeval}: A Python framework for sequence labeling evaluation},
  url={https://github.com/chakki-works/seqeval},
  note={Software available from https://github.com/chakki-works/seqeval},
  author={Hiroki Nakayama},
  year={2018},
}
排名相邻
同类项目