PyBacktrans: Python library for backtranslation
Project description
Py-Backtrans
Python library for backtranslation
Installation
$ pip install pybacktrans
Usage
Basic Usage
>>> from pybacktrans import BackTranslator
>>> translator = BackTranslator()
>>> result = translator.backtranslate('Good Morning', src='en', mid='fr')
>>> result
# <BackTranslated src=en, mid=fr, text=Hello>
>>> result.src_text
# 'Good Morning'
>>> result.mid_text
# 'Bonjour'
>>> result.text
# 'Hello'
Reference
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for pybacktrans-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc39d351c5dfdca8af940d4c68faeae013199dc374dacf1c85787d1d9d31f63f |
|
MD5 | 9bd35c124a1644aac0a48fbd0d0f5fc8 |
|
BLAKE2b-256 | 5cd3dbdfdf124e72d4c33876e486d32d47799d31adb779267c58637da574e158 |