This project has been archived by its maintainers, and is no longer receiving any updates.
pie-modules
⚠️ DEPRECATED This repository is no longer actively maintained.
No further releases will be published to PyPI for this package.
Please see the following alternatives:
• For document & annotation type definitions and document processing utilities & metrics, use the pie-documents repo.
• For model and taskmodule implementations (torch-based), use pytorch-ie.
Model-, taskmodule-, and metric-implementations as well as document processing utilities for PyTorch-IE.
Available models:
- SimpleSequenceClassificationModel
- SequenceClassificationModelWithPooler
- SequencePairSimilarityModelWithPooler
- SimpleTokenClassificationModel
- TokenClassificationModelWithSeq2SeqEncoderAndCrf
- SimpleExtractiveQuestionAnsweringModel
- SimpleGenerativeModel
- SpanTupleClassificationModel
Available taskmodules:
- RETextClassificationWithIndicesTaskModule
- CrossTextBinaryCorefTaskModule
- LabeledSpanExtractionByTokenClassificationTaskModule
- ExtractiveQuestionAnsweringTaskModule
- TextToTextTaskModule
- PointerNetworkTaskModuleForEnd2EndRE
- RESpanPairClassificationTaskModule
Available metrics:
Document processing utilities:
- MultiSpanMerger
- SpansViaRelationMerger
- RegexPartitioner
- RelationArgumentSorter
- SentenceSplitter
- TextSpanTrimmer
- tokenize_document
Important Notice
This repository is deprecated and will receive no major updates. For ongoing maintenance and new features, please refer to:
- pie-documents — for document & annotation type definitions, and for document-processing utilities
- pytorch-ie — for model & taskmodule implementations using PyTorch
Setup
pip install pie-modules
To install the latest version from GitHub:
pip install git+https://git@github.com/ArneBinder/pie-modules.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-modules cd pie-modules
- Create a virtual environment and install the dependencies (including development dependencies):
poetry install --with dev
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 patchfor 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
releasebranch 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
releasebranch. This is important, because otherwise the next release will fail.
Metadata
Release files for pie-modules 0.15.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pie_modules-0.15.13.tar.gz | 128.9 kB | Without provenance | Details for pie_modules-0.15.13.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pie_modules-0.15.13-py3-none-any.whl | Python 3 | none | any | Details for pie_modules-0.15.13-py3-none-any.whl |
Total release size: 295.7 kB
Release files / pie_modules-0.15.13.tar.gz
| Download URL | pie_modules-0.15.13.tar.gz |
|---|---|
| Size | 128.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5f9e2a81e0df53e12f3e388c20d06791a6d95ab68b3dad97e2feb4a75eea7172
|
|
BLAKE2b-256 checksum How to use checksums |
578fa46fd23dd2c35254aa83b6710cfa09758b762ee1e32a867264558bf955c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.11
|
Release files / pie_modules-0.15.13-py3-none-any.whl
| Download URL | pie_modules-0.15.13-py3-none-any.whl |
|---|---|
| Size | 166.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
88cf9f5e59f32c498526db20088daf67ef9fa8abdc4d90c0c733edff72295bf5
|
|
BLAKE2b-256 checksum How to use checksums |
5d9ce3496510404ebad9730a7cc7a3c91b3a4862c2acef210847485f41203ff3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.11
|
Security for pie-modules 0.15.13
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.