pytorch-crf:(线性链)PyTorch中的条件随机字段

时间:2021-05-29 09:51:00
【文件属性】:
文件名称:pytorch-crf:(线性链)PyTorch中的条件随机字段
文件大小:17KB
文件格式:ZIP
更新时间:2021-05-29 09:51:00
pytorch neural-networks conditional-random-fields Python pytorch-crf 条件随。 该包提供了 PyTorch 中线性链(CRF) 的实现。 这个实现主要借鉴了并进行了一些修改。 文档 执照 麻省理工学院 贡献 欢迎捐款! 请按照这些说明安装依赖项并运行测试和 linter。 安装依赖 确保使用 Python 设置虚拟环境。 然后,在requirements.txt文件中安装所有依赖项,并在开发模式下安装此包。 pip install -r requirements.txt pip install -e . 设置预提交钩子 只需运行: ln -s ../../pre-commit.sh .git/hooks/pre-commit 运行测试 在项目根目录下运行pytest 。 运行短绒 在项目根目录中运行flake8 。 由于flake8-mypy包,这也将运行mypy 。
【文件预览】:
pytorch-crf-master
----.travis.yml(291B)
----README.rst(2KB)
----.readthedocs.yml(148B)
----.style.yapf(143B)
----torchcrf()
--------__init__.py(14KB)
----docs()
--------conf.py(6KB)
--------requirements.txt(70B)
--------Makefile(580B)
--------index.rst(3KB)
----pytest.ini(78B)
----tests()
--------test_crf.py(16KB)
----pre-commit.sh(277B)
----requirements.txt(72B)
----setup.py(1KB)
----.gitignore(2KB)
----Makefile(214B)
----.flake8(67B)
----LICENSE.txt(1KB)
----requirements-test.txt(251B)

网友评论