Control your A.I.
Natural language translation
Modern smart machines can perform live translation.
In this section, the translation environment I will be run in its native form. LibreTranslate also provides a Docker container under https://registry.hub. docker.com/r/libretranslate/ libretranslate. Its use, however, is not necessarily recommended – keep in mind that exposing CUDA acceleration to Docker, as outlined at https://docs.nvidia.com/datacenter/cloud-native/ container-toolkit/install-guide.html, is an involved and finicky process. Deployment of the underlying library can be handled via Pip, because the product is considered stable enough by the Python community. For reasons of comfort, we first create a virtual environment (the current environment is in parentheses) by entering the following commands: (base) ~$ conda create -n aitranslator (base) ~$ conda activate aitranslator (aitranslator) ~$
The actual download is then accomplished via Pip 3: (aitranslator) ~$ pip3 install argostranslate
Given that our virtual environment is completely virginal, about 2GB worth of libraries will be downloaded, so make sure you have a high-speed internet connection. Successful installation is achieved when the Pip 3 package messenger emits the version information ‘Successfully installed argostranslate-1.8.0’ – your version might be a bit different, because the contents of the Pip repositories might have been updated between the time this article was written and when you read it.