Path: blob/master/Deepl/Deepl_Translated_string_to_txt.ipynb
2973 views
Kernel: Python 3
Deepl - Translated string to txt
Tags: #deepl #translate #text #txt #api #string
Author: Benjamin Filly
Last update: 2023-06-14 (Created: 2023-06-14)
Description: This notebook show how to translate a string with Deepl API and save it in a txt file.
References:
Input
Import libraries
In [ ]:
Setup Variables
auth_key
: The auth key is a unique identifier used for authentication and access to the DeepL API. It ensures that only authorized users can make API requests.text
: the text to be translatedtarget_lang
: the language you wish to translate into, for more languages, go to referencesoutput_file_path
: the directory where you want to save the file if you are using Naas it will start withhome/ftp/
In [ ]:
Model
Translate the text
In [ ]:
Save translated text to a text file
In [ ]:
Output
Display result
In [ ]: