deepl-python
deepl-python copied to clipboard
Official Python library for the DeepL language translation API.
Hi, If I call translator.get_usage() before and after a translation, I get the same number of character used, an even 1 000 000. Is there a way to get the...
It really a nice thing to hear DeepL provide a Python client module. Through the doc I found that this module seems not support async functions, and I think it...
I have attempted several times to upload a glossary such that diacritics in French will be handled correctly. I am sure is in UTF-8 and have verified in various ways....
Hello, The API works great but after the translation is generated, I'm getting the following: >>> Exception ignored in: Traceback (most recent call last): File "/Users/littlezub/opt/anaconda3/lib/python3.9/site-packages/deepl/translator.py", line 506, in __del__...
Hello, Is there a way to specify different translations for homonymous words in a glossary? E.g. in a Russian > English translation, there is a verb 'пропасть' to which I...
Yellow text is the result of a translation error, white text is the original text  The API used is:https://api.deepl.com/v2/translate
After the `output_document` is finished, the pointer should be set to `0, 0` to make further processing possible. ```py result = BytesIO() translator.translate_document(input_document=source_file, output_document=result, target_lang=target_lang, filename=source_file.filename) result.seek(0, 0) # required,...
``` import deepl auth_key = '_____' client = deepl.Translator(auth_key, send_platform_info=False) text_1_plain = ''' ‘So you want this hung up in the window, my — in the window, miss?’ asked Mr...
Deepl python cliet version: 1.16.1, Python 3.9.18 For a long input, some ignore tags are brought to the beginning of the output string which is not translated at all. Input...
``` import deepl auth_key = '_____' client = deepl.Translator(auth_key, send_platform_info=False) in_text = ''' title during the day, writing letters, conversing and praying and singing. Between three, and four o'clock at...