Skip to main content

Back translation for Natural Language Processing (NLP) using Google Translate

Project description

BackTranslation

version license 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)

Uploaded Source

Built Distribution

BackTranslation-0.1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

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

Hashes for BackTranslation-0.1.tar.gz
Algorithm Hash digest
SHA256 2dc36251cf6442f32038b5fd329bc5da97fe5efce7990eee9cb072be6b2666a7
MD5 6ec1c691c26257dfbf862496aaeb7b5f
BLAKE2b-256 69dbe401f815263a087c0a534ce1cf7a0c6d0b5771e7c5d8698cde96087689a4

See more details on using hashes here.

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

Hashes for BackTranslation-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ed29526f08c042e73eb4fcb39cb58c04eef4616274ecd4a1fca3809194ad997c
MD5 e914e66d5c006172e0e453f4cff12894
BLAKE2b-256 6beb905b76e9e118bc021f52b4c1398b3a9fa58f9079c0140806fbe26e337e13

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page