pytorch-crf
Conditional random field in PyTorch.
This package provides an implementation of conditional random field (CRF) in PyTorch. This implementation borrows mostly from AllenNLP CRF module with some modifications.
Documentation
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.
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)
| File | Size | Uploaded | |
|---|---|---|---|
| pytorch-crf-0.7.2.tar.gz | 6.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytorch_crf-0.7.2-py3-none-any.whl | Python 3 | none | any | Details |
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
|