All Projects → Beomi → pypapago

Beomi / pypapago

Licence: MIT license
🐧[Archived][Unofficial] Python wrapper for Papago translation service

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to pypapago

Youdaotranslate
Alfred Youdao Translate Workflow
Stars: ✭ 2,344 (+5108.89%)
Mutual labels:  translate
Mtranslate
A simple api for google translate
Stars: ✭ 222 (+393.33%)
Mutual labels:  translate
TF2DeepFloorplan
TF2 Deep FloorPlan Recognition using a Multi-task Network with Room-boundary-Guided Attention. Enable tensorboard, quantization, flask, tflite, docker, github actions and google colab.
Stars: ✭ 98 (+117.78%)
Mutual labels:  pypi-package
Cv Translation
我叫CV翻译,因为我的精髓就是Ctrl + c 不用v (原名QTranser)
Stars: ✭ 180 (+300%)
Mutual labels:  translate
Yii2 Translate Manager
Translation Manager
Stars: ✭ 221 (+391.11%)
Mutual labels:  translate
Tms
基于频道模式的团队沟通协作+轻量级任务看板,支持mardown、富文本、在线表格和思维导图的团队博文wiki,i18n国际化翻译管理的响应式web开源团队协作系统。
Stars: ✭ 232 (+415.56%)
Mutual labels:  translate
Deeply
PHP client for the DeepL.com translation API (unofficial)
Stars: ✭ 152 (+237.78%)
Mutual labels:  translate
LibreTranslate
Free and Open Source Machine Translation API. Self-hosted, offline capable and easy to setup.
Stars: ✭ 3,932 (+8637.78%)
Mutual labels:  translate
Traduzir Paginas Web
Translate your page in real time using Google or Yandex.
Stars: ✭ 214 (+375.56%)
Mutual labels:  translate
Flutter translate
Flutter Translate is a fully featured localization / internationalization (i18n) library for Flutter.
Stars: ✭ 245 (+444.44%)
Mutual labels:  translate
Php Google Translate Free
PHP class to use the Google Translator API for free.
Stars: ✭ 182 (+304.44%)
Mutual labels:  translate
Saladict Desktop
✨✨桌面划词与翻译工具,聚合了 N 多词典,功能强大,支持 Windows 、 Mac 和 Linux。
Stars: ✭ 187 (+315.56%)
Mutual labels:  translate
Deep Translator
A flexible free and unlimited python tool to translate between different languages in a simple way using multiple translators.
Stars: ✭ 233 (+417.78%)
Mutual labels:  translate
React Translated
A dead simple way to add complex translations (i18n) in a React (DOM/Native) project 🌎🌍🌏
Stars: ✭ 176 (+291.11%)
Mutual labels:  translate
HighlightTranslator
Highlight Translator can help you to translate the words quickly and accurately. By only highlighting, copying, or screenshoting the content you want to translate anywhere on your computer (ex. PDF, PPT, WORD etc.), the translated results will then be automatically displayed before you.
Stars: ✭ 54 (+20%)
Mutual labels:  translate
Google Translate
🈯 A Node.JS library to consume Google Translate API for free.
Stars: ✭ 152 (+237.78%)
Mutual labels:  translate
Vscode Comment Translate
vscode 注释翻译插件, 不干扰正常代码,方便快速阅读源码。
Stars: ✭ 235 (+422.22%)
Mutual labels:  translate
trackball-python
Python library for the Pimoroni Track Ball Breakout
Stars: ✭ 30 (-33.33%)
Mutual labels:  pypi-package
translation-google
A Google Translate component for Nodejs.
Stars: ✭ 42 (-6.67%)
Mutual labels:  translate
Dict
Chinese and English translation tools in the command line(命令行下中英文翻译工具)
Stars: ✭ 243 (+440%)
Mutual labels:  translate

THIS PROJECT is ARCHIVED!

This project is no longer maintained by the author. No additional support is provided.

If you're still interested in the Papago's translation service, plz follow the direction below:

https://developers.naver.com/docs/papago/papago-nmt-overview.md


pypapago codecov

Unofficial python wrapper for papago translate service.

Install

pip install -U pypapago

Usage

Basic usage (English to Korean)

from pypapago import Translator

translator = Translator()

result = translator.translate('I am GROOT')
print(result) # 나는 그루트다

Set Source/Target Language

from pypapago import Translator

translator = Translator()

result = translator.translate(
    '카카오는 파파고를 좋아해',
    source='ko',
    target='en',
)
print(result) # Kakao likes papago.

Supported Language Codes

Code Desc
ko Korean
en English
ja Japanese
zh-CN Chinese
zh-TW Chinese traditional
es Spanish
fr French
vi Vietnamese
th Thai
id Indonesia

Bulk Translation

Parallel bulk translation with Multiprocessing.

from pypapago import Translator

translator = Translator()

result = translator.bulk_translate(['apple', 'banana'])
print(result) # ['사과', '바나나']

You can also set how many workers to run manually.

(The more workers make your code faster but requires more system resources.)

Default to CPU Cores (HyperThreading = x2)

  • ex) Run with 2cores
from pypapago import Translator

translator = Translator()

result = translator.bulk_translate(
    ['apple', 'banana'], 
    workers=2
)
print(result) # ['사과', '바나나']

Verbose output

If you need raw result from papago API, you can set verbose to True.

from pypapago import Translator

translator = Translator()

result = translator.translate('I am GROOT', verbose=True)
print(result) # RAW JSON Result
#{'delay': 400,
# 'delaySmt': 400,
# 'dict': {'items': [{'entry': '<b>I</b>',
# ...
# 'translatedText': '나는 그루트다'}
#}

Detail results may change.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].