Skip to main content

sklearn-crfsuite

PyPI Version Build Status Code Coverage Documentation

sklearn-crfsuite is a thin CRFsuite (python-crfsuite) wrapper which provides interface simlar to scikit-learn. sklearn_crfsuite.CRF is a scikit-learn compatible estimator: you can use e.g. scikit-learn model selection utilities (cross-validation, hyperparameter optimization) with it, or save/load CRF models using joblib.

License is MIT.

Documentation can be found here.


define hyperiongray

Changes

0.5.0 (2024-06-18)

  • The CRF.predict() and CRF.predict_marginals() methods now return a numpy array, as expected by newer versions of scikit-learn.

  • Fixed the parameters of a call to the sklearn.metrics.classification_report() function from the flat_classification_report() function.

  • sequence_accuracy_score now works with numpy arrays.

0.4.0 (2024-06-18)

  • Dropped official support for Python 3.7 and lower, and added official support for Python 3.8 and higher.

  • Added support for scikit-learn 0.24.0 and higher.

  • Increased minimum versions of dependencies as follows:

    • python-crfsuite: 0.8.3 → 0.9.7

    • scikit-learn: 0.24.0

    • tabulate: 0.4.2

  • Internal changes: enabled GitHub Actions for CI, added a tox environment for minimum supported versions of dependencies, applied automatic code cleanups.

0.3.6 (2017-06-22)

  • added sklearn_crfsuite.metrics.flat_recall_score.

0.3.5 (2017-03-21)

  • Properly close file descriptor in FileResource.cleanup;

  • declare Python 3.6 support, stop testing on Python 3.3.

0.3.4 (2016-11-17)

  • Small formatting fixes.

0.3.3 (2016-03-15)

  • scikit-learn dependency is now optional for sklearn_crfsuite; it is required only when you use metrics and scorers;

  • added metrics.flat_precision_score.

0.3.2 (2015-12-18)

  • Ignore more errors in FileResource.__del__.

0.3.1 (2015-12-17)

  • Ignore errors in FileResource.__del__.

0.3 (2015-12-17)

  • Added sklearn_crfsuite.metrics.sequence_accuracy_score() function and related sklearn_crfsuite.scorers.sequence_accuracy;

  • FileResource.__del__ method made more robust.

0.2 (2015-12-11)

  • backwards-incompatible: crf.tagger attribute is renamed to crf.tagger_; when model is not trained accessing this attribute no longer raises an exception, its value is set to None instead.

  • new CRF attributes available after training:

    • classes_

    • size_

    • num_attributes_

    • attributes_

    • state_features_

    • transition_features_

  • Tutorial is added.

0.1 (2015-11-27)

Initial release.

Metadata

Release files for sklearn-crfsuite 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sklearn-crfsuite 0.5.0
File Size Uploaded Provenance Actions
sklearn_crfsuite-0.5.0.tar.gz 26.2 kB Without provenance Details for sklearn_crfsuite-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sklearn-crfsuite 0.5.0
File Interpreter ABI Platform Actions
sklearn_crfsuite-0.5.0-py2.py3-none-any.whl Python 3, Python 2 none any Details for sklearn_crfsuite-0.5.0-py2.py3-none-any.whl

Total release size: 37.0 kB

Release files / sklearn_crfsuite-0.5.0.tar.gz

Download URL sklearn_crfsuite-0.5.0.tar.gz
Size 26.2 kB
Tags Source
SHA-256 checksum
How to use checksums
136cb941ff5f7ce62a2c378988d1123ac1037241e73999ae404509a2135078e9
BLAKE2b-256 checksum
How to use checksums
d7d426211eb22127f8476589e92448273c698f4ac39fce2e300cd0a1f748de98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.4

Release files / sklearn_crfsuite-0.5.0-py2.py3-none-any.whl

Download URL sklearn_crfsuite-0.5.0-py2.py3-none-any.whl
Size 10.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
9cb7a881969b6426d28ada69ada7eff4c789a3c508eafc32d39c0d078ce3bebc
BLAKE2b-256 checksum
How to use checksums
b211a8370dd6fce65f8f4e74a0adffae72be9db5799d8ed8ddbf84415356a764
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.4

Security for sklearn-crfsuite 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page