← Open Source
chakki-works

seqeval

chakki-works/seqeval on GitHub: Python, Model Development, Training toolkits, Benchmarks.

Model DevelopmentTraining toolkitsPython
Open on GitHub
Momentum
+0stars in 24 hours0.0%
1.19k
Stars
132
Forks
+1
This week
10
Contributors
Created 2018-02-15 · Updated 2026-10-09 · #11239 today
Top developers
Hironsankaushikacharyanipunsadvilkar

chakki-works/seqeval is ranked 11,239 with 1,188 stars.

Same-category comparison

chakki-works/seqeval is ranked 11,239 among these 8 peers; functime-org/functime is ranked 11,240.

Same-category comparison
NameRankMetrics
flow-project/flow11,222
Language:
Python
Stars:
1,192
Forks:
395
Description:
Computational framework for reinforcement learning in traffic control.
jankrepl/deepdow11,230
Language:
Python
Stars:
1,190
Forks:
171
Description:
Portfolio optimization with deep learning.
elliottwu/unsup3d11,231
Language:
Python
Stars:
1,189
Forks:
190
Description:
(CVPR'20 Oral) Unsupervised Learning of Probably Symmetric Deformable 3D Objects from Images in the Wild.
vanhuyz/CycleGAN-TensorFlow11,237
Language:
Python
Stars:
1,189
Forks:
432
Description:
An implementation of CycleGan using TensorFlow.
functime-org/functime11,240
Language:
Python
Stars:
1,188
Forks:
65
Description:
Time-series machine learning at scale. Built with Polars for embarrassingly parallel feature extraction and forecasts on panel data.
lightaime/deep_gcns_torch11,244
Language:
Python
Stars:
1,188
Forks:
152
Description:
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
Language:
Python
Stars:
1,186
Forks:
90
Description:
Neighborhood Attention Transformer, arxiv 2022 / CVPR 2023. Dilated Neighborhood Attention Transformer, arxiv 2022.
chengxuxin/extreme-parkour11,251
Language:
Python
Stars:
1,186
Forks:
179
Description:
[ICRA 2024]: Train your parkour robot in less than 20 hours.
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguagePython
CategoryModel Development
SubcategoryTraining toolkits
KeywordsBenchmarks
Stars1,188
Forks132
Contributors10
Created date2018-02-15
Updated date2026-10-09
Stars in 1 day0
Stars in 7 days1
Rank11,239
Previous rank11,193
Rank change-46
7-day stars rank10,090
Previous 7-day stars rank10,128
7-day stars rank change38
Total stars rank9,795
Previous total stars rank9,782
Total stars rank change-13
CountryJapan
README summary

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

Frequently asked questions

How many stars and forks are recorded?

chakki-works/seqeval has 1,188 stars and 132 forks.

What is the repository rank?

chakki-works/seqeval is ranked 11,239.

What language and category are recorded?

chakki-works/seqeval has 1,188 stars, uses Python and belongs to Model Development.

Which repository is closest in rank?

chakki-works/seqeval is compared with functime-org/functime, ranked 11,240 with 1,188 stars.

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},
}
Nearby in the ranking
Similar items