Patience and Dedication to a Clear Long-Term Vision

Eryk Wdowiak
The Startup
Published in
4 min readJul 29, 2020
The Church of Saint Rocco and Saint Francis of Paola
The Church of Saint Rocco and Saint Francis of Paola

In 1905, an earthquake killed hundreds of people and destroyed the Church of Saint Rocco and Saint Francis of Paola.

Two years later, the people of Pizzo Calabro carried bricks in a procession to the site and ceremonially began to rebuild the church. Then they spent the next 90 years rebuilding their church.

The people who vowed to rebuild the church knew that they would never see its completion. But they knew that their grandchildren would. And they knew that their descendents would celebrate baptisms, funerals and marriages in the church hundreds of years later. So they rebuilt it.

With patience and dedication to a clear long-term vision, you can create amazing things.

So I’ve been steadily assembling a corpus of parallel text to create a machine translator for the Sicilian language. It now translates simple sentences fairly well. With a little more work, we will soon have a good-quality translator.

And I hope this work helps other people develop neural machine translators for low-resource languages.

Sicilian is a good case study for several reasons. First, the language has been continuously recorded since the Sicilian School of Poets joined the imperial court of Frederick II in the 13th century.

And in our times, Arba Sicula has spent the past 40 years translating Sicilian literature into English (among its numerous activities to promote the Sicilian language).

The Church of Saint Rocco and Saint Francis of Paola, destroyed by the earthquake of 1905.
The Church of Saint Rocco and Saint Francis of Paola, destroyed by the earthquake of 1905.
The people of Pizzo Calabro carrying bricks to rebuild the church in 1907.
The people of Pizzo Calabro carrying bricks to rebuild the church in 1907.

In the course of their work with the many dialects of Sicilian, they also established a “Standard Sicilian,” which is what has enabled us to create a high-quality corpus of Sicilian-English parallel text.

High-quality parallel text is the necessary ingredient in any neural machine translation project. And recent advances in the field have made it possible to develop neural machine translators with limited amounts of parallel text.

With just 13,060 translated sentence pairs containing 178,714 Sicilian words and 183,736 English words, we achieved a BLEU score of 19.6 on English-to-Sicilian translation and 21.5 on Sicilian-to-English.

That’s a good result for a small amount of parallel text. And you can always add more parallel text.

If necessary, just open a grammar book and translate all the homework exercises. That alone will give you thousands of examples. Then with a basic translator, you can back-translate monolingual text to create another few thousand and further improve translation quality.

You can always find ways to assemble more parallel text.

The traditional recommendation for languages without any parallel text has been to create a rules-based translator, using a framework like Apertium. But rules are difficult to write and, after a certain point, writing more rules won’t improve translation quality very much.

But you can always find ways to create more parallel text. With patience and dedication, you can assemble tens of thousands of sentence pairs. Then assemble ten thousand more to further improve translation quality.

plaque commemorating reconstruction of the church, 1907–1997
plaque commemorating reconstruction of the church, 1907–1997

So I have prepared these notes in the hope that they will help bring neural machine translation to low-resource languages.

The machine translation page explains my motivation, recent progress in the field and the dataset that we’re developing. The subword splitting page describes the method of splitting words to subword units, which reduces the vocabulary size and makes low-resource neural machine translation possible.

And the low-resource NMT page describes the model and training methods that we used to develop a translator for the Sicilian language. Using high dropout parameters to train a small Transformer model on parallel text with a small subword vocabulary yields relatively good translation quality (as measured by BLEU score) with limited amounts of parallel text.

So we have good reason to be optimistic about the potential to bring neural machine translation to low-resource languages.

As I develop these notes, I will also include information about how to align sentences with hunalign and how to set up a the Sockeye toolkit. In the meantime, I have appended some background information on how the machine learns how to translate. The word context and word embeddings pages provide a simpler example of how neural networks identify context from a sequence.

And at Napizia, you can follow our progress in developing un Tradutturi Sicilianu.

--

--