batch machine translate via pythonpy
Project description
batch_tr
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
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
batch-tr-0.1.0.tar.gz
(3.2 kB
view hashes)