728x90
반응형
단순 기록용 포스팅입니다. 원 출처는 아래를 참고 부탁드립니다.
pip install googletrans==4.0.0-rc1
def korean_to_eng(text):
translator = Translator()
name2eng = translator.translate(text, dest='en').text
return name2eng
- 도움 주신 출처 : https://coding-kindergarten.tistory.com/98
728x90
반응형
'사소한 Tip . 오류 해결법 > python' 카테고리의 다른 글
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all() (0) | 2023.08.01 |
---|---|
[cv2] contour 사용해서 이미지 내 외부 패딩 삭제 (0) | 2023.06.22 |
[python] tuple element sum / 요소 합 (0) | 2023.02.16 |
[python] 파일 리스트 읽고, 특정 파일 외 나머지 삭제하기 (0) | 2023.02.15 |
Tuple 에서 index 찾기 (0) | 2022.12.27 |