Simple translator using Marian NMT.
Project description
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.
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 Distribution
mariantranslate-0.1.8.tar.gz
(2.8 kB
view details)
Built Distribution
File details
Details for the file mariantranslate-0.1.8.tar.gz
.
File metadata
- Download URL: mariantranslate-0.1.8.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
1f2ec3fc6bde7c4490e94a0162faf3b8177be8a847cf4c711a3faba3c1394458
|
|
MD5 |
d49a727d769a9095249eaf88a7122248
|
|
BLAKE2b-256 |
2cb4beacb33339b7157e5b9e4eff1c769aa8760bb806b9384d598e82c02e8063
|
File details
Details for the file mariantranslate-0.1.8-py3-none-any.whl
.
File metadata
- Download URL: mariantranslate-0.1.8-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
9ceef3ded283007585b5378732deaea829bd3f392f227374e6192a75c289e0fb
|
|
MD5 |
75fc9ddb57a848aea1e4bd0aebda4121
|
|
BLAKE2b-256 |
00133f8f3be7290dab5cd9b6412a49d77953ec56a79c19539ffbce97aeeb48f2
|