Machine Translation of Mathematical Text
Open Access
- 4 March 2021
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Access
- Vol. 9, 38078-38086
Abstract
We have implemented a machine translation system, the PolyMath Translator, for LaTeX documents containing mathematical text. The current implementation translates English LaTeX to French LaTeX, attaining a BLEU score of 53.6 on a held-out test corpus of mathematical sentences. It produces LaTeX documents that can be compiled to PDF without further editing. The system first converts the body of an input LaTeX document into English sentences containing math tokens, using the pandoc universal document converter to parse LaTeX input. We have trained a Transformer-based translator model, using OpenNMT, on a combined corpus containing a small proportion of domain-specific sentences. Our full system uses this Transformer model and also Google Translate with a custom glossary, the latter being used as a backup to better handle linguistic features that do not appear in our training dataset. Google Translate is used when the Transformer model does not have confidence in its translation, as determined by a high perplexity score. Ablation testing demonstrates that the tokenization of symbolic expressions is essential to the high quality of translations produced by our system. We have published our test corpus of mathematical text. The PolyMath Translator is available as a web service at http://www.polymathtrans.ai.Keywords
All Related Versions
Funding Information
- Natural Sciences and Engineering Research Council of Canada (RGPIN-2016-06742)
This publication has 17 references indexed in Scilit:
- In no uncertain terms: a dataset for monolingual and multilingual automatic term extraction from comparable corporaLanguage Resources and Evaluation, 2019
- A Call for Clarity in Reporting BLEU Scores2018
- OpenNMT: Open-Source Toolkit for Neural Machine Translation2017
- Effective Domain Mixing for Neural Machine Translation2017
- Multi-Way, Multilingual Neural Machine Translation with a Shared Attention Mechanism2016
- Extracting Textual Descriptions of Mathematical Expressions in Scientific PapersD-Lib Magazine, 2014
- Building Subject-aligned Comparable Corpora and Mining it for Truly Parallel Sentence PairsProcedia Technology, 2014
- A Practical Approach to Language Complexity: A Wikipedia Case StudyPLOS ONE, 2012
- BLEU2001
- An English Japanese machine translation system of the titles of scientific and engineering papers1982