parallel-corpus
Parallel corpus as a graph.
Ported from Graph in spraakbanken/swell-editor.
Install
To install parallel-corpus in the current environment:
pip install parallel-corpus
To add parallel-corpus to a PDM project:
pdm add parallel-corpus
To add parallel-corpus manually to pyproject.toml:
[project]
dependencies = ["parallel-corpus>=0.2.0"]
Usage
first = "Jonathan saknades ."
# Initialize graph with source and target equal.
g = graph.init(first)
second = "Jonat han saknades ."
# Update target with new text.
gm = graph.set_target(g, second)
# The graph will now contain a edge from 'Jonathan' and both 'Jonat' and 'han'.
print(f"{gm.edges=}")
Changelog
This project keeps a changelog.
Supported Python Versions
This library thrives to support the following versions:
- v0.2: Python 3.9
- v0.1: Python 3.8
Development
This project uses conventional commits.
Tools used:
- uv for project management.
- pre-commit for pre-commit checking
- runs ruff linter
- runs ruff formatter
- checks that commit message is according conventional commits.
- install hooks with
pre-commit install.
- git-cliff for changelog updates.
- bump-my-version for version bumping.
- syrupy for snapshot testing.
Metadata
Release files for parallel-corpus 0.2.0
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 |
|---|---|---|---|---|
| parallel_corpus-0.2.0.tar.gz | 41.4 kB | With provenance | Details for parallel_corpus-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| parallel_corpus-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for parallel_corpus-0.2.0-py3-none-any.whl |
Total release size: 58.3 kB
Release files / parallel_corpus-0.2.0.tar.gz
| Download URL | parallel_corpus-0.2.0.tar.gz |
|---|---|
| Size | 41.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
40a0c364cac766e99f8ebb3d2f0cb5b83dfb01037e3c4b4983969e2b516d66dd
|
|
BLAKE2b-256 checksum How to use checksums |
8d25f9aeb2d775b3b3a842b51125ada4f6f92aa47a527645cc4c45076ae24065
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2024.
Transparency logRelease files / parallel_corpus-0.2.0-py3-none-any.whl
| Download URL | parallel_corpus-0.2.0-py3-none-any.whl |
|---|---|
| Size | 16.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
14e6f375101839091ce98c5bee14cfc6dfa42b25635f10b89e19f4b9447e1a9e
|
|
BLAKE2b-256 checksum How to use checksums |
424e4e831c9ca3ef8428b7e97501f02b8a226185a634c6a0c2f68b7bdd021253
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2024.
Transparency logSecurity for parallel-corpus 0.2.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for parallel_corpus-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2024.
Transparency logA 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.