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 hashes)
Built Distribution
Close
Hashes for mariantranslate-0.1.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ceef3ded283007585b5378732deaea829bd3f392f227374e6192a75c289e0fb |
|
MD5 | 75fc9ddb57a848aea1e4bd0aebda4121 |
|
BLAKE2b-256 | 00133f8f3be7290dab5cd9b6412a49d77953ec56a79c19539ffbce97aeeb48f2 |