Skip to main content

pytorch-crf

Conditional random field in PyTorch.

https://badge.fury.io/py/pytorch-crf.svg https://travis-ci.org/kmkurn/pytorch-crf.svg?branch=master https://coveralls.io/repos/github/kmkurn/pytorch-crf/badge.svg?branch=master https://cdn.rawgit.com/syl20bnr/spacemacs/442d025779da2f62fc86c2082703697714db6514/assets/spacemacs-badge.svg

This package provides an implementation of conditional random field (CRF) in PyTorch. This implementation borrows mostly from AllenNLP CRF module with some modifications.

Documentation

https://pytorch-crf.readthedocs.io/

License

MIT

Contributing

Contributions are welcome! Please follow these instructions to install dependencies and running the tests and linter.

Installing dependencies

Make sure you setup a virtual environment with Python and PyTorch installed. Then, install all the dependencies in requirements.txt file and install this package in development mode.

pip install -r requirements.txt
pip install -e .

Setup pre-commit hook

Simply run:

ln -s ../../pre-commit.sh .git/hooks/pre-commit

Running tests

Run pytest in the project root directory.

Running linter

Run flake8 in the project root directory. This will also run mypy, thanks to flake8-mypy package.

Metadata

Release files for pytorch-crf 0.7.2

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

Source distribution (sdist)

Source distribution for pytorch-crf 0.7.2
File Size Uploaded Provenance Actions
pytorch-crf-0.7.2.tar.gz 6.0 kB Without provenance Details for pytorch-crf-0.7.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pytorch-crf 0.7.2
File Interpreter ABI Platform Actions
pytorch_crf-0.7.2-py3-none-any.whl Python 3 none any Details for pytorch_crf-0.7.2-py3-none-any.whl

Total release size: 15.5 kB

Release files / pytorch-crf-0.7.2.tar.gz

Download URL pytorch-crf-0.7.2.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e6456e22ccfc99a3d4fe1e03e996103b1b39e9830bf3c7e12e7a9077d3be866d
BLAKE2b-256 checksum
How to use checksums
e28caa58618f8c9cc8b2ddd22d4e700028101ec331d4c65c8cca663844a9dc24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/28.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.4

Release files / pytorch_crf-0.7.2-py3-none-any.whl

Download URL pytorch_crf-0.7.2-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1b2d7d5eea3255f6e0cac09ab8b645472e76ff70d9333bc88762cf7317a4992d
BLAKE2b-256 checksum
How to use checksums
967d4c4688e26ea015fc118a0327e5726e6596836abce9182d3738be8ec2e32a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/28.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.4

Security for pytorch-crf 0.7.2

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