← 开源

(Linear-chain) Conditional random field in PyTorch.

Model DevelopmentDomain-specific trainingPython
增长势头
+024 小时新增 Star0.0%
978
Star
153
Fork
+0
本周
7
贡献者
创建于 2017-11-25 · 更新于 2026-11-10 · 今日第 15370 名
主要开发者
kmkurnleejuyuuaravindMahadevan
README

pytorch-crf

Conditional random field in PyTorch.

This package provides an implementation of linear-chain 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. 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.

排名相邻
同类项目

AI Rank iPhone 版

随时追踪 AI 模型榜单

在 App Store 下载