mariantranslate
Simple translator using Marian NMT.
installation
$ pip install mariantranslate
or install from source:
$ git clone https://github.com/galuhsahid/mariantranslate
$ cd mariantranslate
$ make install_src
usage
View the list of available languages here.
from mariantranslate import Translator
lang_from = "en" # source language
lang_to = "id" # target language
en_id_translator = Translator(lang_from, lang_to)
en_id_translator.translate("Due to the limited vegetation cover of the Faroe Islands, it is relatively easy to follow the history of geology.")
>>> Karena tumbuhan terbatas menutupi Kepulauan Faroe, relatif mudah untuk mengikuti sejarah geologi.
Release files for mariantranslate 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mariantranslate-0.1.8.tar.gz | 2.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mariantranslate-0.1.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.3 kB
Release files / mariantranslate-0.1.8.tar.gz
| Download URL | mariantranslate-0.1.8.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1f2ec3fc6bde7c4490e94a0162faf3b8177be8a847cf4c711a3faba3c1394458
|
|
BLAKE2b-256 checksum How to use checksums |
2cb4beacb33339b7157e5b9e4eff1c769aa8760bb806b9384d598e82c02e8063
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6
|
Release files / mariantranslate-0.1.8-py3-none-any.whl
| Download URL | mariantranslate-0.1.8-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9ceef3ded283007585b5378732deaea829bd3f392f227374e6192a75c289e0fb
|
|
BLAKE2b-256 checksum How to use checksums |
00133f8f3be7290dab5cd9b6412a49d77953ec56a79c19539ffbce97aeeb48f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6
|