Skip to main content

batch machine translate via pythonpy

Project description

batch_tr

[tests]pythonCode style: blackLicense: MITPyPI version

batch translate long text and list of texts at 10000 chars/s

Use It

from batch_tr.batch_tr import batch_tr

res = batch_tr("very long text " * 10000)
print(res)
# to chinese/zh

print(batch_tr("test me", to_lang="de"))

# long list
res = batch_tr(("very long text \n" * 10000).splitlines())
# equally long list of translated text
# known to work for to_lang="zh" (default)
print(res)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

batch-tr-0.1.0.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

batch_tr-0.1.0-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page