Model and Taskmodule implementations for PyTorch-IE
Project description
pie-models
Model and Taskmodule implementations for PyTorch-IE.
Available models:
- SimpleSequenceClassificationModel
- SequenceClassificationModel
- TokenClassificationModelWithSeq2SeqEncoderAndCrf
Available taskmodules:
Setup
pip install pie-models
To install the latest version from GitHub:
pip install git+https://git@github.com/ArneBinder/pie-models.git
Development
Setup
- This project is build with Poetry. See here for installation instructions.
- Get the code and switch into the project directory:
git clone https://github.com/ArneBinder/pie-models cd pie-models
- Create a virtual environment and install the dependencies:
poetry install
Finally, to run any of the below commands, you need to activate the virtual environment:
poetry shell
Note: You can also run commands in the virtual environment without activating it first: poetry run <command>
.
Code Formatting, Linting and Static Type Checking
pre-commit run -a
Testing
run all tests with coverage:
pytest --cov --cov-report term-missing
Releasing
- Create the release branch:
git switch --create release main
- Increase the version:
poetry version <PATCH|MINOR|MAJOR>
, e.g.poetry version patch
for a patch release. If the release contains new features, or breaking changes, bump the minor version (this project has no main release yet). If the release contains only bugfixes, bump the patch version. See Semantic Versioning for more information. - Commit the changes:
git commit --message="release <NEW VERSION>" pyproject.toml
, e.g.git commit --message="release 0.13.0" pyproject.toml
- Push the changes to GitHub:
git push origin release
- Create a PR for that
release
branch on GitHub. - Wait until checks passed successfully.
- Merge the PR into the main branch. This triggers the GitHub Action that creates all relevant release artefacts and also uploads them to PyPI.
- Cleanup: Delete the
release
branch. This is important, because otherwise the next release will fail.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pie_models-0.7.0.tar.gz
(20.4 kB
view details)
Built Distribution
File details
Details for the file pie_models-0.7.0.tar.gz
.
File metadata
- Download URL: pie_models-0.7.0.tar.gz
- Upload date:
- Size: 20.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e70d2682a6deaeb421c5d7beb2b280a13342054158f4e893ba0f5f31595b9eb |
|
MD5 | d3513b9474350746ee86d9672349d439 |
|
BLAKE2b-256 | fe05ca547bce3655e0d49b431bbd9cbdb4361d1526668c618db340b47799f468 |
File details
Details for the file pie_models-0.7.0-py3-none-any.whl
.
File metadata
- Download URL: pie_models-0.7.0-py3-none-any.whl
- Upload date:
- Size: 24.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5e093c86a42a0f7975c3ebf18bf853aa25a2e5a8ded4cdabbd7c249131e3f80 |
|
MD5 | b782867c16fe1f006c1cbeae10108597 |
|
BLAKE2b-256 | ed393cc531d18a5a4aa25406f1df492bf37b9c0d04703ddd1f45a02756976080 |