Back translation for Natural Language Processing (NLP) using Google Translate
Project description
BackTranslation
Back translation for NLP using Google Translator.
Installation
$ pip install BackTranslation
Usage
Backtranslation
from BackTranslation import BackTranslation
trans = BackTranslation()
result = trans.translate('hello', src='en', tmp = 'zh-cn')
print(result.result_text)
# 'Hello there'
Search the language code
from BackTranslation import BackTranslation
trans = BackTranslation()
trans.searchLanguage('Chinese')
# {'chinese (simplified)': 'zh-cn', 'chinese (traditional)': 'zh-tw'}
reference
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
BackTranslation-0.1.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for BackTranslation-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed29526f08c042e73eb4fcb39cb58c04eef4616274ecd4a1fca3809194ad997c |
|
MD5 | e914e66d5c006172e0e453f4cff12894 |
|
BLAKE2b-256 | 6beb905b76e9e118bc021f52b4c1398b3a9fa58f9079c0140806fbe26e337e13 |