bulk-translate 0.25.2
Third-party providers hosting↗️
A tiny Python no-string package for performing translation of a massive CSV/JSONL files that
natively provides support of pre-annotated fixed-spans that are invariant for translator.
Description
📘 bulk-translate features
bulk-translate featuresThe out-of-the box features of the bulk-translate are:
- ✅ Support of the
spansfor annotation / optional translation. - ✅ Native Implementation of two translation modes:
fast-mode: exploits extra chars that could be used for grouping all the text parts into single batch with further deconstruction.accurate: performs individual translation of each text part.
- ✅ No strings: you're free to adopt any LM / LLM backend.
- Support
googletransby default.
- Support
Installation
From PyPI:
pip install bulk-translate
or latest version from here:
pip install git+https://github.com/nicolay-r/bulk-translate
Usage
API
👉 Follow this notebook tutorial at nlp-thirdgate
Command Line / Shell
NOTE: Spans supports only in JSON-lines format.
NOTE: Requires
source_iterpackage installation.
For the following test.tsv example data with annotated entities enclosed in square brackets:
python -m bulk_translate.translate \
--src "test/data/test.tsv" \
--schema '{"translated":"{text}"}' \
--adapter "dynamic:models/googletrans_310a.py:GoogleTranslateModel" \
--output "test-translated.jsonl" \
--batch-size 10 \
%%m \
--src "auto" \
--dest "ru"
Powered by
The pipeline construction components were taken from AREkit [github]
Metadata
Release files for bulk-translate 0.25.2
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 |
|---|---|---|---|---|
| bulk_translate-0.25.2.tar.gz | 13.3 kB | Without provenance | Details for bulk_translate-0.25.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bulk_translate-0.25.2-py3-none-any.whl | Python 3 | none | any | Details for bulk_translate-0.25.2-py3-none-any.whl |
Total release size: 28.5 kB
Release files / bulk_translate-0.25.2.tar.gz
| Download URL | bulk_translate-0.25.2.tar.gz |
|---|---|
| Size | 13.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c8ed141e543dbdc73031071985c08dca133f50865025f41a6168f43d5523f501
|
|
BLAKE2b-256 checksum How to use checksums |
8566fd8e25ee54f5dc883c50bafdc107b46d8e081e4260808584f72c31136b81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.5
|
Release files / bulk_translate-0.25.2-py3-none-any.whl
| Download URL | bulk_translate-0.25.2-py3-none-any.whl |
|---|---|
| Size | 15.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a1168f4a5c431caa4b452fb38ac63747f17b8f7fc135c6c6e72330fea52b189f
|
|
BLAKE2b-256 checksum How to use checksums |
b84513bfef33da4ea2b9cd34694d24870228c2cbc5769872e41ff86573fed9e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.5
|
Security for bulk-translate 0.25.2
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.