arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.11853cs.CL
收藏

PyMarian:Python中的快速神经机器翻译与评估

PyMarian: Fast Neural Machine Translation and Evaluation in Python

Microsoft Translator(微软翻译);University of Maryland(马里兰大学)

Thamme Gowda, Roman Grundkiewicz, Elijah Rippeth, Matt Post, Marcin Junczys-Dowmunt

AI总结:

本文介绍PyMarian,一个连接C++工具Marian NMT与Python的接口,支持机器翻译训练推理,并实现快达7.8倍的COMET指标计算。

摘要:

当今深度学习的首选语言是Python;从可用库和技术支持等因素衡量,它难以被超越。同时,用C++等低级编程语言编写的软件在速度上仍具优势。我们描述了一个Marian NMT的Python接口,这是一个基于C++的序列到序列模型训练和推理工具包,专注于机器翻译。该接口使Marian训练的模型能够连接到Python中丰富广泛的工具。接口的亮点是能够从Python计算最先进的COMET指标,但使用Marian的推理引擎,速度比现有实现快达7.8倍。我们还简要介绍了其他集成,包括Jupyter笔记本、预构建模型连接和包提供的Web应用接口。PyMarian可通过pip install pymarian在PyPI获取。

英文摘要:

The deep learning language of choice these days is Python; measured by factors such as available libraries and technical support, it is hard to beat. At the same time, software written in lower-level programming languages like C++ retain advantages in speed. We describe a Python interface to Marian NMT, a C++-based training and inference toolkit for sequence-to-sequence models, focusing on machine translation. This interface enables models trained with Marian to be connected to the rich, wide range of tools available in Python. A highlight of the interface is the ability to compute state-of-the-art COMET metrics from Python but using Marian's inference engine, with a speedup factor of up to 7.8$\times$ the existing implementations. We also briefly spotlight a number of other integrations, including Jupyter notebooks, connection with prebuilt models, and a web app interface provided with the package. PyMarian is available in PyPI via $\texttt{pip install pymarian}$.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑