Search code examples
pythonlinguistics

Translating human languages in Python


Is there a Python module for the translation of texts from one human language to another? I'm planning to work with texts that are to be pre and post processed with Python scripts. What other Python-integrated approaches can be used?


Solution

  • If you're looking to actually translate a string of text between two languages, say from English "Hello" to Spanish "Hola", you might want to look into the Google Language API.

    Another alternative due to recent deprecation of the free version of Google's API is the Bing Translator API.

    Lastly, Google Cloud Platform offers the Translate API as a service, costing about $1 USD per 50,000 characters translated.