Fast Neural Machine Translation Model from Tonga (Zambezi) to English


Marian is an efficient, free Neural Machine Translation framework written in pure C++ with minimal dependencies. It is mainly being developed by the Microsoft Translator team. Many academic (most notably the University of Edinburgh and in the past the Adam Mickiewicz University in Poznań) and commercial contributors help with its development. It is currently the engine behind the Microsoft Translator Neural Machine Translation services and being deployed by many companies, organizations and research projects (see below for an incomplete list).

  • source languages: toi

  • target languages: en


How to use

documentAssembler = DocumentAssembler()\ 

 sentencerDL = SentenceDetectorDLModel.pretrained("sentence_detector_dl", "xx")\ 

 marian = MarianTransformer.pretrained("opus_mt_toi_en", "xx")\ 

marian_pipeline = Pipeline(stages=[documentAssembler, sentencerDL, marian])
light_pipeline = LightPipeline([[""]]).toDF("text")))
result = light_pipeline.fullAnnotate(data)

val documentAssembler = new DocumentAssembler()

val sentence = SentenceDetectorDLModel.pretrained("sentence_detector_dl", "xx")

val marian = MarianTransformer.pretrained("opus_mt_toi_en", "xx")

val pipeline = new Pipeline().setStages(Array(documentAssembler, sentence, marian))
val result =[String].toDS.toDF("text")).transform(data)
import nlu

text = ["text to translate"]
opus_df = nlu.load('xx.toi.marian.translate_to.en').predict(text, output_level='sentence')

Model Information

Model Name: opus_mt_toi_en
Compatibility: Spark NLP 2.7.0+
Edition: Official
Input Labels: [sentence]
Output Labels: [translation]
Language: xx

Data Source