rom1504 / distributed-translator

Translate millions of captions to hundred of languages efficiently
MIT License
1 stars 0 forks source link

distributed_translator

pypi Open In Colab Try it on gitpod

Translate millions of captions to hundred of languages efficiently

WIP, not ready for show time

Install

pip install distributed_translator

Python examples

Checkout these examples to call this as a lib:

API

This module exposes a single function hello_world which takes the same arguments as the command line tool:

For development

Either locally, or in gitpod (do export PIP_USER=false there)

Setup a virtualenv:

python3 -m venv .env
source .env/bin/activate
pip install -e .

to run tests:

pip install -r requirements-test.txt

then

make lint
make test

You can use make black to reformat the code

python -m pytest -x -s -v tests -k "dummy" to run a specific test