Skip to main content

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


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)

Uploaded Source

Built Distribution

mariantranslate-0.1.8-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

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