![]() Translated = GoogleTranslator ( source = 'auto', target = 'german' ). Texts = # the translate_sentences function is deprecated, use the translate_batch function instead translated = GoogleTranslator ( 'de', 'en' ). Or using proxies: from deep_translator import GoogleTranslator proxies_example = " ) ![]() translate ( "keep it up, you are awesome" ) # output -> Weiter so, du bist großartig $ poetry add deep-translator -extras "docx pdf ai" # for poetry usage Quick Start from deep_translator import GoogleTranslator # Use any translator you like, in this example GoogleTranslator translated = GoogleTranslator ( source = 'auto', target = 'de' ). $ pip install deep-translator # add support for ChatGpt $ pip install deep-translator # add support for pdf translation For example, translating Docx and PDF files $ pip install deep-translator # add support for docx translation Take a look at the docs if you want to install from source.Īlso, you can install extras if you want support for specific use case. Install the stable release: $ pip install -U deep-translator $ poetry add deep-translator # for poetry usage Translate directly from terminal (version >= 1.1.0) Support for the Papago translator (version >= 1.4.4)Īutomate the translation of different paragraphs in different languages Support for the DeeplTranslator translator (version >= 1.2.5) Support for the QcriTranslator translator (version >= 1.2.4) Support for the Yandex translator (version >= 1.2.1) Support for the microsoft translator (version >= 1.3.5) Support for most famous universal translators It’s the only python tool that integrates many translators If you want to detect language automatically If you want to compare different translations If you want to use ChatGpt for translations If you want to get translations from many sources and not only one If you want to translate text using python It is 100% free, unlimited, easy to use and providesīasically, my goal was to integrate support for multiple famous translators Therefore, I decided to build this simple tool. There are other libraries that can be used for this task, but most of themĪre buggy, not free, limited, not supported anymore or complex to use. It was hard to find a simple way to do it. The feature currently doesn't support Greek and languages using the Cyrillic script as the source language.I needed to translate a text using python. The text from the picture will be inserted into the source text field and translated to the language of your choice.Confirm the selection by tapping the Tick button.Tap the Image button in the bottom-left corner of the app. ![]() If permission wasn't granted yet, allow DeepL to take pictures and record videos. The interface will switch to text scanning mode.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |