Skip to main content

CRFsuite (python-crfsuite) wrapper which provides interface simlar to scikit-learn

Project description

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.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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sklearn_crfsuite-0.4.0.tar.gz (25.8 kB view details)

Uploaded Source

Built Distribution

sklearn_crfsuite-0.4.0-py2.py3-none-any.whl (10.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file sklearn_crfsuite-0.4.0.tar.gz.

File metadata

  • Download URL: sklearn_crfsuite-0.4.0.tar.gz
  • Upload date:
  • Size: 25.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.4

File hashes

Hashes for sklearn_crfsuite-0.4.0.tar.gz
Algorithm Hash digest
SHA256 0449323977a49303903b9c50de47ce88f68cb6cc01c50b8b728d33fc3dc2883a
MD5 136c27e1a4a3df974944a249ada3f02d
BLAKE2b-256 dde54d0e6fb780f79e02b5b50ebfb6bce9bb3f7f35f40521f185a40a4d821dcc

See more details on using hashes here.

File details

Details for the file sklearn_crfsuite-0.4.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for sklearn_crfsuite-0.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 29952c49c53213c7468743bd1ae8e908f858965c7bfc68a6512b580abde75d18
MD5 f04b29f3daf56ae597202e87ed8bcc2f
BLAKE2b-256 d118aadd618ea86cc75d50bd79bf4ba933b0937f457ff035e4220ae5175021d4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page