The this Code that uses Naver Papago API to translate and save as a Korean text file.
- Papago API는 한 번에 5,000자 1일에 10,000자 까지 번역 서비스를 제공한다.
conda install --file requirements.txt
python translate.py
- First Get an Papago API key.
- Change to Line
if __name__ == "__main__":
#PDF name
file_name = ''
# PDF to Txt
eng_text = pdfToText(os.path.join('./data/', file_name))
# Naver papgo API ID, Secret(password)
# ClientID
id = ''
# ClientSecret
secret = ''
# Translate English txt
trans(id, secret, eng_text)