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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file BackTranslation-0.1.tar.gz.
File metadata
- Download URL: BackTranslation-0.1.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.20.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2dc36251cf6442f32038b5fd329bc5da97fe5efce7990eee9cb072be6b2666a7
|
|
| MD5 |
6ec1c691c26257dfbf862496aaeb7b5f
|
|
| BLAKE2b-256 |
69dbe401f815263a087c0a534ce1cf7a0c6d0b5771e7c5d8698cde96087689a4
|
File details
Details for the file BackTranslation-0.1-py3-none-any.whl.
File metadata
- Download URL: BackTranslation-0.1-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.20.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed29526f08c042e73eb4fcb39cb58c04eef4616274ecd4a1fca3809194ad997c
|
|
| MD5 |
e914e66d5c006172e0e453f4cff12894
|
|
| BLAKE2b-256 |
6beb905b76e9e118bc021f52b4c1398b3a9fa58f9079c0140806fbe26e337e13
|