RAIL 2022Original text
Localising the Mozilla Common Voice platform for South Africa’s official languages
This is the original text of the paper. Translations are linked above.
Proceedings of the 3rd Workshop on Resources for African Indigenous Languages (RAIL 2022), Journal of the Digital Humanities Association of Southern Africa.
Original text, shown under its licence (CC BY-SA 4.0). Reuse allowed with attribution; share adaptations alike. The translations on this site are by Ernst van Gassen (Arktos AI Lab).
Plain text for reuse, with its licence: English · LICENSE
Affiliations
de Wet, Febe
Department of Electrical and Electronic Engineering, Stellenbosch University & School of Electrical
Electronic and Computer Engineering, North-West
University
Bukula, Andiswa
South African Centre for Digital Language Resources, North-West University
Karsten, Willem
School of Electrical, Electronic and Computer Engineering, North-West University
Puttkammer, Martin
Centre for Text Technology, North-West University
Schillack, Erwin
School of Electrical, Electronic and Computer Engineering, North-West University
Wierenga, René
Virtuele Instituut vir Afrikaans
Eiselen, Roald
Centre for Text Technology, North-West University
E-mail addresses removed for privacy. They are in the original PDF.
Abstract
Despite many attempts to address the situation, South Africa's official languages remain under-resourced in terms of the text and speech data required to implement state-of-the-art language technology. To ensure that no language is left behind[1], resource development should remain a priority until a strong digital presence has been established for all indigenous languages. This paper provides an overview of previous projects that were specifically aimed at speech resource development and introduces an ongoing initiative to launch South Africa's languages on the Mozilla Common Voice platform.
Keywords
DHASA, under-resourced languages, speech resources, Mozilla Common Voice
1 Introduction
South Africa's constitution recognizes eleven official languages: Afrikaans (Afr), South African English (Eng), isiNdebele (Nbl), isiXhosa (Xho), isiZulu (Zul), Sepedi (Nso), Sesotho (Sot), Setswana (Tsn), Siswati (Ssw), Tshivenda (Ven), and Xitsonga (Tso). With the exception of English and Afrikaans, all the official languages belong to the South-Eastern Bantu family. IsiNdebele, Siswati, isiXhosa and isiZulu are part of the Nguni group of languages and Sepedi, Sesotho and Setswana are part of the Sotho language group. The languages within each family are closely related, with similar orthographic and morphosyntactic attributes.
Most people in South Africa speak more than one Bantu language and English. As a result, English serves as lingua franca and is most frequently used in commerce and law. Some of the country's citizens have access to language and speech technology through English. For the ten remaining languages, much remains to be done to match the level of technology development that has already been achieved for languages like English. In this regard South Africa's indigenous languages are in the same position as the majority of the almost 7 000 languages that are spoken in the world today: usable language and speech technology is not readily available yet (Adda et al. 2019, Joshi et al. 2020).
Despite various projects aimed at addressing this situation, the pace of resource development in South Africa's languages has not kept up with the rate at which technology and the data requirements associated with state-of-the-art techniques have advanced. As a result, many of the latest technology, especially deep learning techniques, cannot be implemented effectively for South Africa's local languages due to a lack of appropriate data.
This paper describes a recent initiative to launch South Africa's official languages on Mozilla's Common Voice[2] platform. The Common Voice project aims to make speech recognition technology open and accessible by creating open, high quality, publicly available data sets in as many languages as possible. For a language to achieve launched status, the Common Voice website needs to be localised and at least 5 000 sentences in the target language have to be collected and be available in the open domain under CC0 licensing [3]. Once launched status is achieved, the sentences are used as prompts for speech data collection through the Mozilla Common Voice platform. While Mozilla makes the Common Voice platform freely available, they are not involved in localisation and data collection and do not provide any financial support to participants. The presence of a language on the platform is determined by language communities themselves.
2 Background
A number of projects have already contributed to the establishment of basic language resources as well as speech and text technology in South Africa's official languages. Many of these were supported by the South African Government[4].
One of the first attempts to develop technology in the country's indigenous languages, the African Speech Technology (AST) project, was funded by the Department of Science and Technology's Innovation Fund (Roux et al. 2004). One of the aims of the project was to prepare South Africa's languages for a digital future. It was also envisioned that language technology would facilitate multilingual information access to South Africa's citizens. Five telephone speech databases in isiXhosa, Sesotho, isiZulu, South African English and Afrikaans were developed during the course of the project. The data was transcribed orthographically as well as phonetically and used to develop a prototype version of a multilingual, telephone-based hotel booking system. A limited domain text-to-speech voice was also built for each of the five languages, allowing the system to provide dynamic although domain limited speech feedback.
Subsequent to the AST project, three Lwazi[5] projects were funded by the South African Department of Arts and Culture with the aim of extending the available telephone speech data sets to include all 11 official languages and to increase the impact of speech technologies in South Africa (Barnard et al. 2010, Kuun 2012, Calteaux et al. 2013, Titmus et al. 2016). Toward the latter aim, text-to-speech and speech-to-text systems were developed in all 11 languages and evaluated in applications including a voice-based telephone service for rural veterinarians and a multilingual, telephone-based interactive voice response system for the Department of Basic Education's National School Nutrition Programme.
isiZulu was included in the data sets that were collected to support IARPA/DARPA's[6] Babel and LORELEI (Low Resource Languages for Emergent Incidents) programs (Harper 2011, Strassel & Tracey 2016). These programs resulted in numerous investigations on the development of automatic speech recognition and spoken term detection capabilities in low-resource languages, many of which included isiZulu as an example language.
The National Centre for Human Language Technology (NCHLT) subsequently funded two projects to collect substantially larger speech and text data sets than those that were compiled during previous projects. The data collection efforts therefore went beyond the telephone-based, limited domain scope of the AST and Lwazi projects. This effort resulted in 11 speech corpora containing 50-60 hours of orthographically transcribed broadband speech per language and 11 text corpora of between 1.15 and 3.27 million words per language (Barnard et al. 2014, Eiselen & Puttkammer 2014). With the exception of a few domain specific data collection efforts (Davel et al. 2011, de Wet et al. 2011, de Wet et al. 2016), these remain the most extensive resources that are available for speech technology development in the country.
The majority of the projects mentioned in the previous paragraphs were associated with a specific institution in South Africa, whereas anybody from any language community (who adheres to Mozilla's code of conduct) can participate in the Common Voice project. Anybody who would like to can therefore contribute to the data collection effort and become involved in the local language technology community. The Common Voice project also has an international reach which means that the South African community stands to benefit from "lessons learnt" during localisation and data collection in other countries as well as the technical support provided on Common Voice community user groups. The rest of the paper describes how the Common Voice website was localised and presents the results of an initial attempt to harvest sentences from text data on the web.
3 Mozilla Common Voice platform
As was mentioned in Section 1, a language needs to meet two requirements to be launched on the Common Voice platform: 1) the website needs to be translated into the target language and 2) 5 000 sentences that are in the open domain need to be collected. Mozilla provides tools (via websites and community user groups) and guidelines to assist with both these processes. Their implementation in the current project is briefly described in the next two sections of the paper.
3.1 Translation
A number of service providers were requested to submit quotes for translating the Common Voice website from English into the 10 other official languages. A company with previous experience in localisation was identified as the best candidate to perform the translations. All translations were performed by the same company so that they could manage aspects like the standardisation of terminology between languages in the same manner for all languages.
Words and utterances were translated using Mozilla's translation tool, Pontoon[7], before being used to generate language specific web pages automatically. The resulting web pages were subsequently proofread by a second team of linguists. The feedback they provided ranged from remarks on lexical choice based on differences in intra-lingual geographical variation between the dialects of the translators and proofreaders (despite both parties being native speakers of the language) to the way in which Mozilla's technology utilized words to create automatic translations without taking the morphological makeup of a word into account. Amongst other things their comments indicated that Mozilla's tools do not make provision for the noun class agreement system in the Nguni languages, resulting in words translated in isolation not appearing correctly in sentences. In some cases the tools did not accommodate the length of words in more descriptive sentences where words are more morphologically complex.
Translators and proofreaders also found it difficult to perform the localisation because many of the languages do not currently have words for technological terminology such as part-of-speech tagger or sentence builder resulting in the choice between creating or establishing terminology which might alienate potential users of the website, or using existing English terminology which might create the perception that the entire website has not been localised.
3.2 Text collection
Although a number of curated text corpora collections already exist for all of the South African languages, there are several complications to using these corpora as example sentences for the Mozilla Common Voice project. Firstly, almost all of these corpora are distributed under CC-BY licenses, similar to those used by open source initiatives such as Wikipedia. This implies that only subsections of these data sets (typically less than 10% of the original article) qualify as CC0. Secondly, many of these data sets are either sourced from government documents, speeches, and websites, or from religious mat rial, such as the Bible. These texts represent very specific domains, subject matter, as well as writing style.
To mitigate these problems, we investigated the possibility of sourcing text data from other web sources that are commonly used in language technology development. For instance, Mozilla provides a set of text processing tools to harvest data from Wikipedia. The tools could not be used "as is" in this project, because the default English rule set only allows sentences with ASCII characters. However, most of the South African languages include diacritic markers encoded by UTF-8 characters. The rule set therefore had to be adapted to accept within-language UTF-8 characters but to reject irrelevant ones.
One of the Mozilla selection rules specifies that only three sentences may be copied from a Wikipedia page, but only if the article contains 10 or more sentences. Many articles in South African languages did not meet the 10-sentence limit and, as a result, no sentences could be harvested from them. Another limitation that became evident is the lack of lists of "disallowed words" in most of the languages. These lists are used to prevent possibly offensive words from appearing in the sentences. The text collected from Wikipedia was also verified using automatic Language Identification (LID) (Puttkammer et al. 2018, Hocking 2014)[8]. The verification revealed that many articles contain text in languages other than the target language. These sentences were discarded.
Although the Mozilla tools and Wikipedia could be used to obtain some data in a few languages, the current Wikipedia presence of the majority of the languages yielded less than a thousand sentences per language. Moreover, the text collection did not produce any isiNdebele sentences because, at the time of writing, the language did not have a presence on Wikipedia.
Other sources of web-based text were subsequently explored in an attempt to collect isiNdebele sentences as well as additional data for the other languages. These included the Leipzig Corpora Collection (LCC) (Goldhahn et al. 2012), OPUS (Tiedemann & Nygaard 2004) and the FLORES-200 (Goyal et al. 2022) data sets. The Mozilla tools were also used to collect sentences from these sources, but with the restriction that no more than 9.5% of any particular source was allowed to be harvested. The resulting selections were also verified using LID and the same rules for discarding unwanted characters were applied.
In addition to these pre-processing steps, the text was sentence separated and frequency lists were generated using CTexTools 2 (Puttkammer et al. 2018)[9]. Sentences or segments that did not include useful data (e.g. lines containing only telephone numbers or punctuation) as well as lines that did not constitute a well formed sentence (starting with optional punctuation or numbering, then a capital letter and ending with sentence ending punctuation) were removed from the sentence separated data. The sentences were also filtered to contain between three and fourteen words but with an absolute character limit of 99 [10]. Sentences including numerals were also removed according to the guidelines [11].
The frequency lists were then spell checked using commercially available spelling checkers [12] developed by the Centre for Text Technology at the North-West University in South Africa [13]. Using the spell checked lists, all remaining sentences were ranked according to the percentage correctly spelled words they contain and only sentences with more than 80% correctly spelled words were kept. To ensure better coverage of the languages, these sentences were then compared using the Levenshtein edit distance [14]. Only sentences with less than 70% overlap were included in the final set for each language.
After completing the above mentioned steps, only the Afrikaans and Setswana texts still contained more than 5 000 sentences. This was partially due to the fact that the initial corpora were relatively small. Another contributing factor is an overlap of up to 80% between the web-based corpora like LCC and OPUS. This observation seems to suggest that the text collections were probably obtained form the same sources.
Searching for some of the terms in the Afrikaans list of disallowed words revealed that adding this type of filtering is essential to prevent offensive words and sentences from appearing in the sentences. A similar process also indicated that there is a strong presence of religious text in the harvested data, despite a concerted effort to avoid religious and government publications. Appropriate filters for these types of texts will therefore also have to be designed for each of the 10 languages under consideration before adding any text harvested from the web to the Common Voice platform.
4 Future work
Immediate next steps in the project will be to address the issues discussed in the previous section in order to reach the target of 5 000 CC0 sentences per language. The South African governmental websites (*.gov.za) appear in all the official languages and the possibility to obtain additional text from this source will be investigated. Once the required number of sentences have been collected, the Common Voice websites will be ready for speech data collection to start. The project will be promoted as widely as possible with the aim to encourage language communities across the country to become involved. Hopefully these efforts will be successful to the extent that data collection can be followed by dedicated speech technology development workshops.
Notes
- [1] https://www.undp.org/sustainable-development-goals, https://odi.org/en/publications/leave-no-one-behind-index-2019/
- [2] https://commonvoice.mozilla.org/en
- [3] https://creativecommons.org/share-your-work/public-domain/cc0/
- [4] All resources that were generated with government grants are made freely available and are accessible via the South African Centre for Digital Language Resources' Resource Catalogue: https://repo.sadilar.org/.
- [5] In the Nguni languages spoken in South Africa lwazi means knowledge or information.
- [6] Intelligence Advanced Research Projects Activity/Defense Advanced Research Projects Agency
- [7] https://pontoon.mozilla.org/projects/common-voice/
- [8] https://hdl.handle.net/20.500.12185/350
- [9] https://hdl.handle.net/20.500.12185/480
- [10] https://discourse.mozilla.org/t/using-the-europarl-dataset-with-sentences-from-speeches-from-the-european-parliament/50184
- [11] https://commonvoice.mozilla.org/sentence-collector/##/en/how-to
- [12] https://spel.co.za/en/product/african spelling checkers/
- [13] https://humanities.nwu.ac.za/ctext
- [14] https://metacpan.org/pod/Text::LevenshteinXS
Acknowledgements
The localisation of the Mozilla Common Voice platform in South Africa is supported by the German Federal Ministry of Economic Cooperation and Development (BMZ), represented by the GIZ project FAIR Forward - Artificial Intelligence for All.
References
Adda, G., Choukri, K., Kasinskaite, I., Mariani, J., Mazo, H. & Sakriani, S., eds (2019), Proceedings of the 1st International Conference on Language Technologies for All, European Language Resources Association (ELRA), Paris, France.
Barnard, E., Davel, M. H., van Heerden, C., de Wet, F. & Badenhorst, J. (2014), The NCHLT Speech Corpus of the South African languages, in 'Proceedings of the 4 th Workshop on Spoken Language Technologies for Under-resourced Languages', St Petersburg, Russia, pp. 194-200.
Barnard, E., Davel, M. H. & Van Huyssteen, G. B. (2010), Speech Technology for Information Access: A South African Case Study, in 'AAAI Spring Symposium Series', pp. 8-13.
Calteaux, K., de Wet, F., Moors, C., van Niekerk, D., McAlister, B., Sharma-Grover, A., Reid, T., Davel, M., Barnard, E. & van Heerden, C. (2013), Lwazi II Final Report: Increasing the impact of speech technologies in South Africa, Technical report, CSIR.
Davel, M. H., van Heerden, C., Kleynhans, N. & Barnard, E. (2011), Efficient harvesting of Internet audio for resource-scarce ASR, in 'Proceedings of Interspeech', International Speech Communication Association (ISCA), Florence, Italy, pp. 3153-3156.
de Wet, F., Badenhorst, J. & Modipa, T. (2016), 'Developing Speech Resources from Parliamentary Data for South African English', Procedia Computer Science 81, 45-52.
de Wet, F., de Waal, A. & van Huyssteen, G. B. (2011), Developing a broadband automatic speech recognition system for Afrikaans, in 'Proceedings of Interspeech', International Speech Communication Association (ISCA), Florence, Italy, pp. 3185-3188.
Eiselen, R. & Puttkammer, M. J. (2014), Developing Text Resources for Ten South African Languages, in 'Proceedings of Language Resource and Evaluation (LREC)', Reykjavik, Iceland, pp. 3698-3703.
Goldhahn, D., Eckart, T. & Quasthoff, U. (2012), Building Large Monolingual Dictionaries at the Leipzig Corpora Collection: From 100 to 200 Languages, in 'Proceedings of the Eighth International Conference on Language Resources and Evaluation (LREC)'.
Goyal, N., Gao, C., Chaudhary, V., Chen, P.-J., Wenzek, G., Ju, D., Krishnan, S., Ranzato, M., Guzman, F. & Fan, A. (2022), 'The FLORES-101 evaluation benchmark for low-resource and multilingual machine translation', Transactions of the Association for Computational Linguistics 10,522-538.
Harper, M. P. (2011), 'Data Resources to Support the Babel Program Intelligence Advanced Research Projects Activity (IARPA)'.
Hocking, J. (2014), Language identification for South African languages., in 'Proceedings of the Annual Pattern Recognition Association of South Africa and Robotics and Mechatronics International Conference (PRASA-RobMech)', PRASA.
Joshi, P., Santy, S., Budhiraja, A., Bali, K. & Choudhury, M. (2020), The State and Fate of Linguistic Diversity and Inclusion in the NLP World, in 'Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics', Association for Computational Linguistics, pp. 6282-6293.
Kuun, C. (2012), Development of a telephone-based speech-driven information service for the South African Government, Technical report, CSIR.
Puttkammer, M., Eiselen, R., Hocking, J. & Koen, F. (2018), NLP Web Services for Resource-Scarce Languages, in 'Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (ACL)', Association for Computational Linguistics, pp. 43-49.
Roux, J. C., Louw, P. H. & Niesler, T. (2004), The African Speech Technology Project: An Assessment, in 'Proceedings of the Fourth International Conference on Language Resources and Evaluation (LREC)', European Language Resources Association (ELRA), Lisbon, Portugal, pp. 93-96.
Strassel, S. & Tracey, J. (2016), LORELEI Language Packs: Data, Tools, and Resources for Technology Development in Low Resource Languages, in 'Proceedings of the Tenth International Conference on Language Resources and Evaluation (LREC'16)', European Language Resources Association (ELRA), Portorož, Slovenia, pp. 3273-3280.
Tiedemann, J. & Nygaard, L. (2004), The OPUS corpus - parallel and free: http://logos.uio.no/opus, in 'Proceedings of the Fourth International Conference on Language Resources and Evaluation (LREC'04)', European Language Resources Association (ELRA), Lisbon, Portugal.
Titmus, N., Schlünz, G. I., Louw, J. A., Moodley, A., Reid, T. & Calteaux, K. (2016), Lwazi III Project Final Report: Operational Deployment of Indigenous Text-to-Speech Systems, Technical report, CSIR.
Localising the Mozilla Common Voice platform for South Africa’s official languages
Localiser la plateforme Mozilla Common Voice pour les langues officielles d'Afrique du Sud
Affiliations
de Wet, Febe
Department of Electrical and Electronic Engineering, Stellenbosch University & School of Electrical,
Electronic and Computer Engineering, North-West
University
Bukula, Andiswa
South African Centre for Digital Language Resources, North-West University
Karsten, Willem
School of Electrical, Electronic and Computer Engineering, North-West University
Puttkammer, Martin
Centre for Text Technology, North-West University
Schillack, Erwin
School of Electrical, Electronic and Computer Engineering, North-West University
Wierenga, René
Virtuele Instituut vir Afrikaans
Eiselen, Roald
Centre for Text Technology, North-West University
Affiliations
de Wet, Febe
Department of Electrical and Electronic Engineering, Stellenbosch University & School of Electrical,
Electronic and Computer Engineering, North-West
University
Bukula, Andiswa
South African Centre for Digital Language Resources, North-West University
Karsten, Willem
School of Electrical, Electronic and Computer Engineering, North-West University
Puttkammer, Martin
Centre for Text Technology, North-West University
Schillack, Erwin
School of Electrical, Electronic and Computer Engineering, North-West University
Wierenga, René
Virtuele Instituut vir Afrikaans
Eiselen, Roald
Centre for Text Technology, North-West University
Abstract
Résumé
Despite many attempts to address the situation, South Africa's official languages remain under-resourced in terms of the text and speech data required to implement state-of-the-art language technology. To ensure that no language is left behind[1], resource development should remain a priority until a strong digital presence has been established for all indigenous languages. This paper provides an overview of previous projects that were specifically aimed at speech resource development and introduces an ongoing initiative to launch South Africa's languages on the Mozilla Common Voice platform.
Malgré de nombreuses tentatives pour remédier à la situation, les langues officielles d'Afrique du Sud restent sous-équipées en termes de données textuelles et vocales nécessaires à la mise en œuvre de technologies linguistiques de pointe. Pour garantir qu'aucune langue ne soit laissée de côté[1], le développement des ressources devrait rester une priorité jusqu'à ce qu'une forte présence numérique ait été établie pour toutes les langues indigènes. Ce document donne un aperçu des projets précédents qui visaient spécifiquement le développement de ressources vocales et présente une initiative en cours pour lancer les langues d'Afrique du Sud sur la plate-forme Mozilla Common Voice.
Keywords
Mots-clés
DHASA, under-resourced languages, speech resources, Mozilla Common Voice
DHASA, langues sous-dotées, ressources vocales, Mozilla Common Voice
1 Introduction
1 Introduction
South Africa's constitution recognizes eleven official languages: Afrikaans (Afr), South African English (Eng), isiNdebele (Nbl), isiXhosa (Xho), isiZulu (Zul), Sepedi (Nso), Sesotho (Sot), Setswana (Tsn), Siswati (Ssw), Tshivenda (Ven), and Xitsonga (Tso). With the exception of English and Afrikaans, all the official languages belong to the South-Eastern Bantu family. IsiNdebele, Siswati, isiXhosa and isiZulu are part of the Nguni group of languages and Sepedi, Sesotho and Setswana are part of the Sotho language group. The languages within each family are closely related, with similar orthographic and morphosyntactic attributes.
La constitution sud-africaine reconnaît onze langues officielles: l'afrikaans (Afr), l'anglais sud-africain (Eng), l'isiNdebele (Nbl), l'isiXhosa (Xho), l'isiZulu (Zul), le Sepedi (Nso), le Sesotho (Sot), le Setswana (Tsn), le Siswati (Ssw), le Tshivenda (Ven) et le Xitsonga (Tso). À l'exception de l'anglais et de l'afrikaans, toutes les langues officielles appartiennent à la famille des langues bantoues du Sud-Est. L'isiNdebele, le Siswati, l'isiXhosa et l'isiZulu font partie du groupe linguistique Nguni et le Sepedi, le Sesotho et le Setswana font partie du groupe linguistique Sotho. Les langues au sein de chaque famille sont étroitement liées, avec des attributs orthographiques et morphosyntaxiques similaires.
Most people in South Africa speak more than one Bantu language and English. As a result, English serves as lingua franca and is most frequently used in commerce and law. Some of the country's citizens have access to language and speech technology through English. For the ten remaining languages, much remains to be done to match the level of technology development that has already been achieved for languages like English. In this regard South Africa's indigenous languages are in the same position as the majority of the almost 7 000 languages that are spoken in the world today: usable language and speech technology is not readily available yet (Adda et al. 2019, Joshi et al. 2020).
La plupart des gens en Afrique du Sud parlent plus d'une langue bantoue et l'anglais. En conséquence, l'anglais sert de lingua franca et est le plus fréquemment utilisé dans le commerce et le droit. Certains des citoyens du pays ont accès à la technologie linguistique et vocale par l'intermédiaire de l'anglais. Pour les dix langues restantes, il reste beaucoup à faire pour atteindre le niveau de développement technologique déjà atteint pour des langues comme l'anglais. À cet égard, les langues autochtones d'Afrique du Sud sont dans la même position que la majorité des près de 7 000 langues parlées dans le monde aujourd'hui: la technologie du langage et de la parole utilisable n'est pas encore disponible (Adda et al. 2019, Joshi et al. 2020).
Despite various projects aimed at addressing this situation, the pace of resource development in South Africa's languages has not kept up with the rate at which technology and the data requirements associated with state-of-the-art techniques have advanced. As a result, many of the latest technology, especially deep learning techniques, cannot be implemented effectively for South Africa's local languages due to a lack of appropriate data.
Malgré divers projets visant à remédier à cette situation, le rythme de développement des ressources dans les langues d'Afrique du Sud n'a pas suivi le rythme auquel la technologie et les exigences en matière de données associées aux techniques de pointe ont progressé. En conséquence, bon nombre des dernières technologies, en particulier les techniques d'apprentissage profond, ne peuvent pas être mises en œuvre efficacement pour les langues locales d'Afrique du Sud en raison d'un manque de données appropriées.
This paper describes a recent initiative to launch South Africa's official languages on Mozilla's Common Voice[2] platform. The Common Voice project aims to make speech recognition technology open and accessible by creating open, high quality, publicly available data sets in as many languages as possible. For a language to achieve launched status, the Common Voice website needs to be localised and at least 5 000 sentences in the target language have to be collected and be available in the open domain under CC0 licensing [3]. Once launched status is achieved, the sentences are used as prompts for speech data collection through the Mozilla Common Voice platform. While Mozilla makes the Common Voice platform freely available, they are not involved in localisation and data collection and do not provide any financial support to participants. The presence of a language on the platform is determined by language communities themselves.
Cet article décrit une initiative récente visant à lancer les langues officielles de l'Afrique du Sud sur la plateforme Common Voice[2] de Mozilla. Le projet Common Voice vise à rendre la technologie de reconnaissance automatique de la parole ouverte et accessible en créant des jeux de données ouverts, de haute qualité et accessibles au public dans autant de langues que possible. Pour qu'une langue atteigne le statut de lancement, le site Web Common Voice doit être localisé et au moins 5 000 phrases dans la langue cible doivent être collectées et disponibles dans le domaine ouvert sous licence CC0 [3]. Une fois le statut de lancement atteint, les phrases sont utilisées comme invites pour la collecte de données de parole via la plateforme Mozilla Common Voice. Bien que Mozilla mette la plateforme Common Voice à disposition gratuitement, ils ne sont pas impliqués dans la localisation et la collecte de données et ne fournissent aucun soutien financier aux participants. La présence d'une langue sur la plateforme est déterminée par les communautés linguistiques elles-mêmes.
2 Background
2 Contexte
A number of projects have already contributed to the establishment of basic language resources as well as speech and text technology in South Africa's official languages. Many of these were supported by the South African Government[4].
Un certain nombre de projets ont déjà contribué à la mise en place de ressources linguistiques de base ainsi que de technologies de la parole et du texte dans les langues officielles de l'Afrique du Sud. Beaucoup d'entre eux ont été soutenus par le gouvernement sud-africain[4].
One of the first attempts to develop technology in the country's indigenous languages, the African Speech Technology (AST) project, was funded by the Department of Science and Technology's Innovation Fund (Roux et al. 2004). One of the aims of the project was to prepare South Africa's languages for a digital future. It was also envisioned that language technology would facilitate multilingual information access to South Africa's citizens. Five telephone speech databases in isiXhosa, Sesotho, isiZulu, South African English and Afrikaans were developed during the course of the project. The data was transcribed orthographically as well as phonetically and used to develop a prototype version of a multilingual, telephone-based hotel booking system. A limited domain text-to-speech voice was also built for each of the five languages, allowing the system to provide dynamic although domain limited speech feedback.
L'une des premières tentatives de développement de la technologie dans les langues autochtones du pays, le projet African Speech Technology (AST), a été financé par le Fonds d'innovation du Département de la science et de la technologie (Roux et al. 2004). L'un des objectifs du projet était de préparer les langues d'Afrique du Sud à un avenir numérique. Il était également envisagé que les technologies du langage faciliteraient l'accès multilingue à l'information pour les citoyens d'Afrique du Sud. Cinq bases de données vocales téléphoniques en isiXhosa, Sesotho, isiZulu, anglais sud-africain et afrikaans ont été développées au cours du projet. Les données ont été transcrites de manière orthographique ainsi que phonétique et utilisées pour développer une version prototype d'un système de réservation d'hôtel multilingue, basé sur le téléphone. Une voix de synthèse vocale de texte à domaine limité a également été construite pour chacune des cinq langues, permettant au système de fournir un retour vocal dynamique bien que limité au domaine.
Subsequent to the AST project, three Lwazi[5] projects were funded by the South African Department of Arts and Culture with the aim of extending the available telephone speech data sets to include all 11 official languages and to increase the impact of speech technologies in South Africa (Barnard et al. 2010, Kuun 2012, Calteaux et al. 2013, Titmus et al. 2016). Toward the latter aim, text-to-speech and speech-to-text systems were developed in all 11 languages and evaluated in applications including a voice-based telephone service for rural veterinarians and a multilingual, telephone-based interactive voice response system for the Department of Basic Education's National School Nutrition Programme.
À la suite du projet AST, trois projets Lwazi[5] ont été financés par le Département sud-africain des arts et de la culture dans le but d'étendre les jeux de données de parole téléphonique disponibles pour inclure les 11 langues officielles et d'accroître l'impact des technologies vocales en Afrique du Sud (Barnard et al. 2010, Kuun 2012, Calteaux et al. 2013, Titmus et al. 2016). Dans le cadre de ce dernier objectif, des systèmes de synthèse vocale de texte et de transcription automatique de la parole ont été développés dans les 11 langues et évalués dans des applications comprenant un service téléphonique à commande vocale pour les vétérinaires ruraux et un système de réponse vocale interactive multilingue par téléphone pour le Programme national de nutrition scolaire du Département de l'éducation de base.
isiZulu was included in the data sets that were collected to support IARPA/DARPA's[6] Babel and LORELEI (Low Resource Languages for Emergent Incidents) programs (Harper 2011, Strassel & Tracey 2016). These programs resulted in numerous investigations on the development of automatic speech recognition and spoken term detection capabilities in low-resource languages, many of which included isiZulu as an example language.
L'isiZulu a été inclus dans les ensembles de données qui ont été collectées pour soutenir les programmes Babel et LORELEI (Low Resource Languages for Emergent Incidents) de l'IARPA/DARPA[6] (Harper 2011, Strassel & Tracey 2016). Ces programmes ont donné lieu à de nombreuses recherches sur le développement de capacités de reconnaissance automatique de la parole et de détection de termes parlés dans les langues à faibles ressources, dont beaucoup incluaient l'isiZulu comme exemple de langue.
The National Centre for Human Language Technology (NCHLT) subsequently funded two projects to collect substantially larger speech and text data sets than those that were compiled during previous projects. The data collection efforts therefore went beyond the telephone-based, limited domain scope of the AST and Lwazi projects. This effort resulted in 11 speech corpora containing 50-60 hours of orthographically transcribed broadband speech per language and 11 text corpora of between 1.15 and 3.27 million words per language (Barnard et al. 2014, Eiselen & Puttkammer 2014). With the exception of a few domain specific data collection efforts (Davel et al. 2011, de Wet et al. 2011, de Wet et al. 2016), these remain the most extensive resources that are available for speech technology development in the country.
Le National Centre for Human Language Technology (NCHLT) a ensuite financé deux projets pour collecter des ensembles de données de parole et de texte substantiellement plus grands que ceux compilés lors des projets précédents. Les efforts de collecte de données ont donc dépassé la portée téléphonique et limitée du domaine des projets AST et Lwazi. Cet effort a abouti à 11 corpus de parole contenant 50-60 heures de parole à large bande orthographiquement transcrite par langue et 11 corpus de texte de 1,15 à 3,27 millions de mots par langue (Barnard et al. 2014, Eiselen & Puttkammer 2014). À l'exception de quelques efforts de collecte de données spécifiques au domaine (Davel et al. 2011, de Wet et al. 2011, de Wet et al. 2016), celles-ci demeurent les ressources les plus étendues disponibles pour le développement des technologies vocales dans le pays.
The majority of the projects mentioned in the previous paragraphs were associated with a specific institution in South Africa, whereas anybody from any language community (who adheres to Mozilla's code of conduct) can participate in the Common Voice project. Anybody who would like to can therefore contribute to the data collection effort and become involved in the local language technology community. The Common Voice project also has an international reach which means that the South African community stands to benefit from "lessons learnt" during localisation and data collection in other countries as well as the technical support provided on Common Voice community user groups. The rest of the paper describes how the Common Voice website was localised and presents the results of an initial attempt to harvest sentences from text data on the web.
La majorité des projets mentionnés dans les paragraphes précédents étaient associés à une institution spécifique en Afrique du Sud, tandis que toute personne issue de n'importe quelle communauté linguistique (qui adhère au code de conduite de Mozilla) peut participer au projet Common Voice. Toute personne qui le souhaite peut donc contribuer à l'effort de collecte de données et s'impliquer dans la communauté locale des technologies du langage. Le projet Common Voice a également une portée internationale, ce qui signifie que la communauté sud-africaine peut bénéficier des « leçons apprises » lors de la localisation et de la collecte de données dans d'autres pays, ainsi que du soutien technique fourni sur les groupes d'utilisateurs de la communauté Common Voice. Le reste de l'article décrit comment le site web de Common Voice a été localisé et présente les résultats d'une première tentative de récolte de phrases à partir de données textuelles sur le web.
3 Mozilla Common Voice platform
3 plateforme Mozilla Common Voice
As was mentioned in Section 1, a language needs to meet two requirements to be launched on the Common Voice platform: 1) the website needs to be translated into the target language and 2) 5 000 sentences that are in the open domain need to be collected. Mozilla provides tools (via websites and community user groups) and guidelines to assist with both these processes. Their implementation in the current project is briefly described in the next two sections of the paper.
Comme mentionné dans la Section 1, une langue doit répondre à deux exigences pour être lancée sur la plateforme Common Voice : 1) le site web doit être traduit dans la langue cible et 2) 5 000 phrases qui sont dans le domaine ouvert doivent être collectées. Mozilla fournit des outils (via des sites web et des groupes d'utilisateurs de la communauté) et des directives pour aider à ces deux processus. Leur mise en œuvre dans le projet actuel est brièvement décrite dans les deux sections suivantes du document.
3.1 Translation
3.1 Traduction
A number of service providers were requested to submit quotes for translating the Common Voice website from English into the 10 other official languages. A company with previous experience in localisation was identified as the best candidate to perform the translations. All translations were performed by the same company so that they could manage aspects like the standardisation of terminology between languages in the same manner for all languages.
Plusieurs prestataires de services ont été invités à soumettre des devis pour la traduction du site web Common Voice de l'anglais vers les 10 autres langues officielles. Une entreprise ayant une expérience antérieure en localisation a été identifiée comme le meilleur candidat pour effectuer les traductions. Toutes les traductions ont été réalisées par la même société afin qu'elle puisse gérer des aspects tels que la standardisation de la terminologie entre les langues de la même manière pour toutes les langues.
Words and utterances were translated using Mozilla's translation tool, Pontoon[7], before being used to generate language specific web pages automatically. The resulting web pages were subsequently proofread by a second team of linguists. The feedback they provided ranged from remarks on lexical choice based on differences in intra-lingual geographical variation between the dialects of the translators and proofreaders (despite both parties being native speakers of the language) to the way in which Mozilla's technology utilized words to create automatic translations without taking the morphological makeup of a word into account. Amongst other things their comments indicated that Mozilla's tools do not make provision for the noun class agreement system in the Nguni languages, resulting in words translated in isolation not appearing correctly in sentences. In some cases the tools did not accommodate the length of words in more descriptive sentences where words are more morphologically complex.
Les mots et les énoncés ont été traduits à l'aide de l'outil de traduction de Mozilla, Pontoon[7], avant d'être utilisés pour générer automatiquement des pages Web spécifiques à la langue. Les pages web résultantes ont ensuite été relues par une deuxième équipe de linguistes. Les retours qu'ils ont fournis allaient des remarques sur le choix lexical basé sur les différences de variation géographique intra-linguistique entre les dialectes des traducteurs et des correcteurs (malgré le fait que les deux parties soient des locuteurs natifs de la langue) à la manière dont la technologie de Mozilla utilisait les mots pour créer des traductions automatiques sans tenir compte de la composition morphologique d'un mot. Entre autres choses, leurs commentaires indiquaient que les outils de Mozilla ne prévoyaient pas le système d'accord de classe nominal dans les langues nguni, ce qui entraînait que les mots traduits isolément n'apparaissaient pas correctement dans les phrases. Dans certains cas, les outils ne tenaient pas compte de la longueur des mots dans des phrases plus descriptives où les mots sont plus complexes morphologiquement.
Translators and proofreaders also found it difficult to perform the localisation because many of the languages do not currently have words for technological terminology such as part-of-speech tagger or sentence builder resulting in the choice between creating or establishing terminology which might alienate potential users of the website, or using existing English terminology which might create the perception that the entire website has not been localised.
Les traducteurs et les relecteurs ont également trouvé difficile d'effectuer la localisation car de nombreuses langues n'ont actuellement pas de mots pour la terminologie technologique telle que étiqueteur de catégorie grammaticale ou constructeur de phrase, ce qui conduit au choix entre créer ou établir une terminologie qui pourrait aliéner les utilisateurs potentiels du site web, ou utiliser la terminologie anglaise existante qui pourrait donner l'impression que l'ensemble du site web n'a pas été localisé.
3.2 Text collection
3.2 Collecte de texte
Although a number of curated text corpora collections already exist for all of the South African languages, there are several complications to using these corpora as example sentences for the Mozilla Common Voice project. Firstly, almost all of these corpora are distributed under CC-BY licenses, similar to those used by open source initiatives such as Wikipedia. This implies that only subsections of these data sets (typically less than 10% of the original article) qualify as CC0. Secondly, many of these data sets are either sourced from government documents, speeches, and websites, or from religious mat rial, such as the Bible. These texts represent very specific domains, subject matter, as well as writing style.
Bien qu’il existe déjà un certain nombre de collections de corpus de textes organisés pour toutes les langues sud-africaines, il y a plusieurs complications à utiliser ces corpus comme exemples de phrases pour le projet Mozilla Common Voice. Premièrement, presque tous ces corpus sont distribués sous des licences CC-BY, similaires à celles utilisées par des initiatives open source telles que Wikipedia. Cela implique que seules des sous-sections de ces ensembles de données (généralement moins de 10 % de l'article original) qualifient comme CC0. Deuxièmement, bon nombre de ces ensembles de données proviennent soit de documents gouvernementaux, de discours et de sites web, soit de matériel religieux, comme la Bible. Ces textes représentent des domaines très spécifiques, des sujets, ainsi que le style d'écriture.
To mitigate these problems, we investigated the possibility of sourcing text data from other web sources that are commonly used in language technology development. For instance, Mozilla provides a set of text processing tools to harvest data from Wikipedia. The tools could not be used "as is" in this project, because the default English rule set only allows sentences with ASCII characters. However, most of the South African languages include diacritic markers encoded by UTF-8 characters. The rule set therefore had to be adapted to accept within-language UTF-8 characters but to reject irrelevant ones.
Pour atténuer ces problèmes, nous avons étudié la possibilité de sourcer des données textuelles à partir d'autres sources web couramment utilisées dans le développement des technologies du langage. Par exemple, Mozilla propose un ensemble d'outils de traitement de texte pour récolter des données depuis Wikipedia. Les outils n'ont pas pu être utilisés "tels quels" dans ce projet, car l'ensemble de règles par défaut en anglais n'autorise que les phrases avec des caractères ASCII. Cependant, la plupart des langues sud-africaines incluent des marqueurs diacritiques encodés par des caractères UTF-8. Le jeu de règles a donc dû être adapté pour accepter les caractères UTF-8 intra-langue mais rejeter les caractères non pertinents.
One of the Mozilla selection rules specifies that only three sentences may be copied from a Wikipedia page, but only if the article contains 10 or more sentences. Many articles in South African languages did not meet the 10-sentence limit and, as a result, no sentences could be harvested from them. Another limitation that became evident is the lack of lists of "disallowed words" in most of the languages. These lists are used to prevent possibly offensive words from appearing in the sentences. The text collected from Wikipedia was also verified using automatic Language Identification (LID) (Puttkammer et al. 2018, Hocking 2014)[8]. The verification revealed that many articles contain text in languages other than the target language. These sentences were discarded.
Une des règles de sélection de Mozilla spécifie que seulement trois phrases peuvent être copiées d'une page Wikipédia, mais seulement si l'article contient 10 phrases ou plus. Beaucoup d'articles en langues sud-africaines ne respectaient pas la limite de 10 phrases et, par conséquent, aucune phrase n'a pu en être extraite. Une autre limitation qui est devenue évidente est l'absence de listes de "mots interdits" dans la plupart des langues. Ces listes sont utilisées pour empêcher des mots éventuellement offensants d'apparaître dans les phrases. Le texte collecté à partir de Wikipédia a également été vérifié à l'aide d'une identification automatique de la langue (LID) (Puttkammer et al. 2018, Hocking 2014)[8]. La vérification a révélé que de nombreux articles contiennent du texte dans des langues autres que la langue cible. Ces phrases ont été écartées.
Although the Mozilla tools and Wikipedia could be used to obtain some data in a few languages, the current Wikipedia presence of the majority of the languages yielded less than a thousand sentences per language. Moreover, the text collection did not produce any isiNdebele sentences because, at the time of writing, the language did not have a presence on Wikipedia.
Bien que les outils de Mozilla et Wikipédia puissent être utilisés pour obtenir des données dans quelques langues, la présence actuelle de la majorité des langues sur Wikipédia donne moins de mille phrases par langue. De plus, la collecte de textes n'a pas produit de phrases en isiNdebele car, au moment de la rédaction, cette langue n'avait pas de présence sur Wikipédia.
Other sources of web-based text were subsequently explored in an attempt to collect isiNdebele sentences as well as additional data for the other languages. These included the Leipzig Corpora Collection (LCC) (Goldhahn et al. 2012), OPUS (Tiedemann & Nygaard 2004) and the FLORES-200 (Goyal et al. 2022) data sets. The Mozilla tools were also used to collect sentences from these sources, but with the restriction that no more than 9.5% of any particular source was allowed to be harvested. The resulting selections were also verified using LID and the same rules for discarding unwanted characters were applied.
D'autres sources de texte basées sur le web ont ensuite été explorées dans une tentative de collecter des phrases en isiNdebele ainsi que des données supplémentaires pour les autres langues. Celles-ci incluaient la Leipzig Corpora Collection (LCC) (Goldhahn et al. 2012), OPUS (Tiedemann & Nygaard 2004) et les ensembles de données FLORES-200 (Goyal et al. 2022). Les outils Mozilla ont également été utilisés pour collecter des phrases à partir de ces sources, mais avec la restriction qu'au plus 9,5 % de toute source particulière n'était autorisé à être récolté. Les sélections résultantes ont également été vérifiées à l'aide de LID et les mêmes règles pour écarter les caractères non désirés ont été appliquées.
In addition to these pre-processing steps, the text was sentence separated and frequency lists were generated using CTexTools 2 (Puttkammer et al. 2018)[9]. Sentences or segments that did not include useful data (e.g. lines containing only telephone numbers or punctuation) as well as lines that did not constitute a well formed sentence (starting with optional punctuation or numbering, then a capital letter and ending with sentence ending punctuation) were removed from the sentence separated data. The sentences were also filtered to contain between three and fourteen words but with an absolute character limit of 99 [10]. Sentences including numerals were also removed according to the guidelines [11].
En plus de ces étapes de pré-traitement, le texte a été séparé en phrases et des listes de fréquence ont été générées à l'aide de CTexTools 2 (Puttkammer et al. 2018)[9]. Les phrases ou les segments qui ne contenaient pas de données utiles (par exemple, les lignes contenant uniquement des numéros de téléphone ou des signes de ponctuation) ainsi que les lignes qui ne constituaient pas une phrase bien formée (commençant par une ponctuation ou une numérotation facultative, puis une lettre majuscule et se terminant par une ponctuation de fin de phrase) ont été retirées des données séparées par des phrases. Les phrases ont également été filtrées pour contenir entre trois et quatorze mots mais avec une limite absolue de caractères de 99 [10]. Les phrases comprenant des chiffres ont également été supprimées conformément aux lignes directrices [11].
The frequency lists were then spell checked using commercially available spelling checkers [12] developed by the Centre for Text Technology at the North-West University in South Africa [13]. Using the spell checked lists, all remaining sentences were ranked according to the percentage correctly spelled words they contain and only sentences with more than 80% correctly spelled words were kept. To ensure better coverage of the languages, these sentences were then compared using the Levenshtein edit distance [14]. Only sentences with less than 70% overlap were included in the final set for each language.
Les listes de fréquences ont ensuite été vérifiées à l'aide de vérificateurs d'orthographe disponibles dans le commerce [12] développés par le Centre pour la technologie du texte à l'Université du Nord-Ouest en Afrique du Sud [13]. En utilisant les listes d'orthographe vérifiée, toutes les phrases restantes ont été classées en fonction du pourcentage de mots correctement orthographiés qu'elles contiennent et seules les phrases avec plus de 80% de mots correctement orthographiés ont été conservées. Pour assurer une meilleure couverture des langues, ces phrases ont ensuite été comparées à l'aide de la distance d'édition de Levenshtein [14]. Seules les phrases présentant moins de 70 % de chevauchement ont été incluses dans l'ensemble final pour chaque langue.
After completing the above mentioned steps, only the Afrikaans and Setswana texts still contained more than 5 000 sentences. This was partially due to the fact that the initial corpora were relatively small. Another contributing factor is an overlap of up to 80% between the web-based corpora like LCC and OPUS. This observation seems to suggest that the text collections were probably obtained form the same sources.
Après avoir complété les étapes mentionnées ci-dessus, seuls les textes en afrikaans et en setswana contenaient encore plus de 5 000 phrases. Cela était partiellement dû au fait que les corpus initiaux étaient relativement petits. Un autre facteur contributif est un chevauchement allant jusqu'à 80 % entre les corpus basés sur le web comme LCC et OPUS. Cette observation semble suggérer que les recueils de textes ont probablement été obtenus à partir des mêmes sources.
Searching for some of the terms in the Afrikaans list of disallowed words revealed that adding this type of filtering is essential to prevent offensive words and sentences from appearing in the sentences. A similar process also indicated that there is a strong presence of religious text in the harvested data, despite a concerted effort to avoid religious and government publications. Appropriate filters for these types of texts will therefore also have to be designed for each of the 10 languages under consideration before adding any text harvested from the web to the Common Voice platform.
La recherche de certains termes dans la liste des mots interdits en afrikaans a révélé que l'ajout de ce type de filtrage est essentiel pour empêcher les mots et les phrases offensants d'apparaître dans les phrases. Un processus similaire a également indiqué qu'il y a une forte présence de textes religieux dans les données récoltées, malgré un effort concerté pour éviter les publications religieuses et gouvernementales. Des filtres appropriés pour ces types de textes devront donc également être conçus pour chacune des 10 langues concernées avant d'ajouter tout texte récolté sur le web à la plateforme Common Voice.
4 Future work
4 Travaux futurs
Immediate next steps in the project will be to address the issues discussed in the previous section in order to reach the target of 5 000 CC0 sentences per language. The South African governmental websites (*.gov.za) appear in all the official languages and the possibility to obtain additional text from this source will be investigated. Once the required number of sentences have been collected, the Common Voice websites will be ready for speech data collection to start. The project will be promoted as widely as possible with the aim to encourage language communities across the country to become involved. Hopefully these efforts will be successful to the extent that data collection can be followed by dedicated speech technology development workshops.
Les prochaines étapes immédiates du projet consisteront à aborder les questions abordées dans la section précédente afin d'atteindre l'objectif de 5 000 phrases CC0 par langue. Les sites web gouvernementaux sud-africains (*.gov.za) apparaissent dans toutes les langues officielles et la possibilité d'obtenir du texte supplémentaire à partir de cette source sera étudiée. Une fois que le nombre requis de phrases aura été collecté, les sites web Common Voice seront prêts pour le début de la collecte de données de parole. Le projet sera promu aussi largement que possible dans le but d'encourager les communautés linguistiques à travers le pays à s'impliquer. Espérons que ces efforts seront couronnés de succès dans la mesure où la collecte de données peut être suivie par des ateliers dédiés au développement de la technologie de la parole.
Notes
Notes
[1] https://www.undp.org/sustainable-development-goals, https://odi.org/en/publications/leave-no-one-behind-index-2019/
[1] https://www.undp.org/sustainable-development-goals, https://odi.org/en/publications/leave-no-one-behind-index-2019/
[2] https://commonvoice.mozilla.org/en
[2] https://commonvoice.mozilla.org/en
[3] https://creativecommons.org/share-your-work/public-domain/cc0/
[3] https://creativecommons.org/share-your-work/public-domain/cc0/
[4] All resources that were generated with government grants are made freely available and are accessible via the South African Centre for Digital Language Resources' Resource Catalogue: https://repo.sadilar.org/.
[4] Toutes les ressources générées avec des subventions gouvernementales sont mises librement à disposition et accessibles via le catalogue de ressources du Centre sud-africain pour les ressources linguistiques numériques : https://repo.sadilar.org/.
[5] In the Nguni languages spoken in South Africa lwazi means knowledge or information.
[5] Dans les langues Nguni parlées en Afrique du Sud, lwazi signifie connaissance ou information.
[6] Intelligence Advanced Research Projects Activity/Defense Advanced Research Projects Agency
[6] Projets de recherche avancée du renseignement/Agence des projets de recherche avancée de la défense
[7] https://pontoon.mozilla.org/projects/common-voice/
[7] https://pontoon.mozilla.org/projects/common-voice/
[8] https://hdl.handle.net/20.500.12185/350
[8] https://hdl.handle.net/20.500.12185/350
[9] https://hdl.handle.net/20.500.12185/480
[9] https://hdl.handle.net/20.500.12185/480
[10] https://discourse.mozilla.org/t/using-the-europarl-dataset-with-sentences-from-speeches-from-the-european-parliament/50184
[10] https://discourse.mozilla.org/t/using-the-europarl-dataset-with-sentences-from-speeches-from-the-european-parliament/50184
[11] https://commonvoice.mozilla.org/sentence-collector/##/en/how-to
[11] https://commonvoice.mozilla.org/sentence-collector/##/en/how-to
[12] https://spel.co.za/en/product/african spelling checkers/
[12] https://spel.co.za/en/product/african spelling checkers/
[13] https://humanities.nwu.ac.za/ctext
[13] https://humanities.nwu.ac.za/ctext
[14] https://metacpan.org/pod/Text::LevenshteinXS
[14] https://metacpan.org/pod/Text::LevenshteinXS
Acknowledgements
Remerciements
The localisation of the Mozilla Common Voice platform in South Africa is supported by the German Federal Ministry of Economic Cooperation and Development (BMZ), represented by the GIZ project FAIR Forward - Artificial Intelligence for All.
La localisation de la plateforme Mozilla Common Voice en Afrique du Sud est soutenue par le ministère fédéral allemand de la Coopération économique et du Développement (BMZ), représenté par le projet de la GIZ FAIR Forward - Intelligence artificielle pour tous.
References
Références
Adda, G., Choukri, K., Kasinskaite, I., Mariani, J., Mazo, H. & Sakriani, S., eds (2019), Proceedings of the 1st International Conference on Language Technologies for All, European Language Resources Association (ELRA), Paris, France.
Barnard, E., Davel, M. H., van Heerden, C., de Wet, F. & Badenhorst, J. (2014), The NCHLT Speech Corpus of the South African languages, in 'Proceedings of the 4 th Workshop on Spoken Language Technologies for Under-resourced Languages', St Petersburg, Russia, pp. 194-200.
Barnard, E., Davel, M. H. & Van Huyssteen, G. B. (2010), Speech Technology for Information Access: A South African Case Study, in 'AAAI Spring Symposium Series', pp. 8-13.
Calteaux, K., de Wet, F., Moors, C., van Niekerk, D., McAlister, B., Sharma-Grover, A., Reid, T., Davel, M., Barnard, E. & van Heerden, C. (2013), Lwazi II Final Report: Increasing the impact of speech technologies in South Africa, Technical report, CSIR.
Davel, M. H., van Heerden, C., Kleynhans, N. & Barnard, E. (2011), Efficient harvesting of Internet audio for resource-scarce ASR, in 'Proceedings of Interspeech', International Speech Communication Association (ISCA), Florence, Italy, pp. 3153-3156.
de Wet, F., Badenhorst, J. & Modipa, T. (2016), 'Developing Speech Resources from Parliamentary Data for South African English', Procedia Computer Science 81, 45-52.
de Wet, F., de Waal, A. & van Huyssteen, G. B. (2011), Developing a broadband automatic speech recognition system for Afrikaans, in 'Proceedings of Interspeech', International Speech Communication Association (ISCA), Florence, Italy, pp. 3185-3188.
Eiselen, R. & Puttkammer, M. J. (2014), Developing Text Resources for Ten South African Languages, in 'Proceedings of Language Resource and Evaluation (LREC)', Reykjavik, Iceland, pp. 3698-3703.
Goldhahn, D., Eckart, T. & Quasthoff, U. (2012), Building Large Monolingual Dictionaries at the Leipzig Corpora Collection: From 100 to 200 Languages, in 'Proceedings of the Eighth International Conference on Language Resources and Evaluation (LREC)'.
Goyal, N., Gao, C., Chaudhary, V., Chen, P.-J., Wenzek, G., Ju, D., Krishnan, S., Ranzato, M., Guzman, F. & Fan, A. (2022), 'The FLORES-101 evaluation benchmark for low-resource and multilingual machine translation', Transactions of the Association for Computational Linguistics 10,522-538.
Harper, M. P. (2011), 'Data Resources to Support the Babel Program Intelligence Advanced Research Projects Activity (IARPA)'.
Hocking, J. (2014), Language identification for South African languages., in 'Proceedings of the Annual Pattern Recognition Association of South Africa and Robotics and Mechatronics International Conference (PRASA-RobMech)', PRASA.
Joshi, P., Santy, S., Budhiraja, A., Bali, K. & Choudhury, M. (2020), The State and Fate of Linguistic Diversity and Inclusion in the NLP World, in 'Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics', Association for Computational Linguistics, pp. 6282-6293.
Kuun, C. (2012), Development of a telephone-based speech-driven information service for the South African Government, Technical report, CSIR.
Puttkammer, M., Eiselen, R., Hocking, J. & Koen, F. (2018), NLP Web Services for Resource-Scarce Languages, in 'Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (ACL)', Association for Computational Linguistics, pp. 43-49.
Roux, J. C., Louw, P. H. & Niesler, T. (2004), The African Speech Technology Project: An Assessment, in 'Proceedings of the Fourth International Conference on Language Resources and Evaluation (LREC)', European Language Resources Association (ELRA), Lisbon, Portugal, pp. 93-96.
Strassel, S. & Tracey, J. (2016), LORELEI Language Packs: Data, Tools, and Resources for Technology Development in Low Resource Languages, in 'Proceedings of the Tenth International Conference on Language Resources and Evaluation (LREC'16)', European Language Resources Association (ELRA), Portorož, Slovenia, pp. 3273-3280.
Tiedemann, J. & Nygaard, L. (2004), The OPUS corpus - parallel and free: http://logos.uio.no/opus, in 'Proceedings of the Fourth International Conference on Language Resources and Evaluation (LREC'04)', European Language Resources Association (ELRA), Lisbon, Portugal.
Titmus, N., Schlünz, G. I., Louw, J. A., Moodley, A., Reid, T. & Calteaux, K. (2016), Lwazi III Project Final Report: Operational Deployment of Indigenous Text-to-Speech Systems, Technical report, CSIR.
Localising the Mozilla Common Voice platform for South Africa’s official languages
Kuweka jukwaa la Mozilla Common Voice katika mazingira ya ndani kwa ajili ya lugha rasmi za Afrika Kusini
Affiliations
de Wet, Febe
Department of Electrical and Electronic Engineering, Stellenbosch University & School of Electrical,
Electronic and Computer Engineering, North-West
University
Bukula, Andiswa
South African Centre for Digital Language Resources, North-West University
Karsten, Willem
School of Electrical, Electronic and Computer Engineering, North-West University
Puttkammer, Martin
Centre for Text Technology, North-West University
Schillack, Erwin
School of Electrical, Electronic and Computer Engineering, North-West University
Wierenga, René
Virtuele Instituut vir Afrikaans
Eiselen, Roald
Centre for Text Technology, North-West University
Taasisi
de Wet, Febe
Department of Electrical and Electronic Engineering, Stellenbosch University & School of Electrical,
Electronic and Computer Engineering, North-West
University
Bukula, Andiswa
South African Centre for Digital Language Resources, North-West University
Karsten, Willem
School of Electrical, Electronic and Computer Engineering, North-West University
Puttkammer, Martin
Centre for Text Technology, North-West University
Schillack, Erwin
School of Electrical, Electronic and Computer Engineering, North-West University
Wierenga, René
Virtuele Instituut vir Afrikaans
Eiselen, Roald
Centre for Text Technology, North-West University
Abstract
Muhtasari
Despite many attempts to address the situation, South Africa's official languages remain under-resourced in terms of the text and speech data required to implement state-of-the-art language technology. To ensure that no language is left behind[1], resource development should remain a priority until a strong digital presence has been established for all indigenous languages. This paper provides an overview of previous projects that were specifically aimed at speech resource development and introduces an ongoing initiative to launch South Africa's languages on the Mozilla Common Voice platform.
Licha ya jitihada nyingi za kushughulikia hali hiyo, lugha rasmi za Afrika Kusini bado hazina rasilimali za kutosha kwa upande wa data za maandishi na usemi zinazohitajika kutekeleza teknolojia ya lugha ya hali ya juu. Ili kuhakikisha kwamba hakuna lugha inayoachwa nyuma[1], uendelezaji wa rasilimali unapaswa kuendelea kuwa kipaumbele hadi uwepo imara wa kidijitali uwe umeanzishwa kwa lugha zote za kiasili. Karatasi hii inatoa muhtasari wa miradi ya awali iliyolenga hasa uendelezaji wa rasilimali za usemi na inatanguliza mpango unaoendelea wa kuzindua lugha za Afrika Kusini kwenye jukwaa la Mozilla Common Voice.
Keywords
Maneno Muhimu
DHASA, under-resourced languages, speech resources, Mozilla Common Voice
DHASA, lugha zenye upungufu wa rasilimali, rasilimali za usemi, Mozilla Common Voice
1 Introduction
1 Utangulizi
South Africa's constitution recognizes eleven official languages: Afrikaans (Afr), South African English (Eng), isiNdebele (Nbl), isiXhosa (Xho), isiZulu (Zul), Sepedi (Nso), Sesotho (Sot), Setswana (Tsn), Siswati (Ssw), Tshivenda (Ven), and Xitsonga (Tso). With the exception of English and Afrikaans, all the official languages belong to the South-Eastern Bantu family. IsiNdebele, Siswati, isiXhosa and isiZulu are part of the Nguni group of languages and Sepedi, Sesotho and Setswana are part of the Sotho language group. The languages within each family are closely related, with similar orthographic and morphosyntactic attributes.
Katiba ya Afrika Kusini inatambua lugha rasmi kumi na moja: Afrikaans (Afr), Kiingereza cha Afrika Kusini (Eng), isiNdebele (Nbl), isiXhosa (Xho), isiZulu (Zul), Sepedi (Nso), Sesotho (Sot), Setswana (Tsn), Siswati (Ssw), Tshivenda (Ven), na Xitsonga (Tso). Isipokuwa Kiingereza na Afrikaans, lugha rasmi zote ni za familia ya Kibantu ya Kusini-Mashariki. IsiNdebele, Siswati, isiXhosa na isiZulu ni sehemu ya kundi la lugha za Kinguni na Sepedi, Sesotho na Setswana ni sehemu ya kundi la lugha za Kisotho. Lugha ndani ya kila familia zinahusiana kwa karibu, zikiwa na sifa zinazofanana za kiothografia na kimofosintaksia.
Most people in South Africa speak more than one Bantu language and English. As a result, English serves as lingua franca and is most frequently used in commerce and law. Some of the country's citizens have access to language and speech technology through English. For the ten remaining languages, much remains to be done to match the level of technology development that has already been achieved for languages like English. In this regard South Africa's indigenous languages are in the same position as the majority of the almost 7 000 languages that are spoken in the world today: usable language and speech technology is not readily available yet (Adda et al. 2019, Joshi et al. 2020).
Watu wengi nchini Afrika Kusini huzungumza zaidi ya lugha moja ya Kibantu na Kiingereza. Kwa sababu hiyo, Kiingereza hutumika kama lingua franca na hutumiwa mara nyingi zaidi katika biashara na sheria. Baadhi ya raia wa nchi hiyo wanaweza kufikia teknolojia ya lugha na usemi kupitia Kiingereza. Kwa lugha kumi zilizobaki, bado kuna mengi ya kufanywa ili kufikia kiwango cha maendeleo ya teknolojia ambacho tayari kimepatikana kwa lugha kama Kiingereza. Katika suala hili, lugha za kiasili za Afrika Kusini ziko katika hali sawa na lugha nyingi kati ya takriban lugha 7 000 zinazozungumzwa duniani leo: teknolojia ya lugha na usemi inayoweza kutumika bado haipatikani kwa urahisi (Adda et al. 2019, Joshi et al. 2020).
Despite various projects aimed at addressing this situation, the pace of resource development in South Africa's languages has not kept up with the rate at which technology and the data requirements associated with state-of-the-art techniques have advanced. As a result, many of the latest technology, especially deep learning techniques, cannot be implemented effectively for South Africa's local languages due to a lack of appropriate data.
Licha ya miradi mbalimbali inayolenga kushughulikia hali hii, kasi ya ukuzaji wa rasilimali katika lugha za Afrika Kusini haijaendana na kasi ambayo teknolojia na mahitaji ya data yanayohusiana na mbinu za kisasa zaidi yameendelea. Kwa sababu hiyo, teknolojia nyingi za kisasa zaidi, hasa mbinu za Ujifunzajikina, haziwezi kutekelezwa kwa ufanisi kwa lugha za kienyeji za Afrika Kusini kutokana na ukosefu wa data sahihi.
This paper describes a recent initiative to launch South Africa's official languages on Mozilla's Common Voice[2] platform. The Common Voice project aims to make speech recognition technology open and accessible by creating open, high quality, publicly available data sets in as many languages as possible. For a language to achieve launched status, the Common Voice website needs to be localised and at least 5 000 sentences in the target language have to be collected and be available in the open domain under CC0 licensing [3]. Once launched status is achieved, the sentences are used as prompts for speech data collection through the Mozilla Common Voice platform. While Mozilla makes the Common Voice platform freely available, they are not involved in localisation and data collection and do not provide any financial support to participants. The presence of a language on the platform is determined by language communities themselves.
Karatasi hii inaeleza mpango wa hivi karibuni wa kuzindua lugha rasmi za Afrika Kusini kwenye jukwaa la Common Voice[2] la Mozilla. Mradi wa Common Voice unalenga kufanya teknolojia ya Utambuzi longo iwe wazi na kufikika kwa kuunda seti za data zilizo wazi, za ubora wa juu, na zinazopatikana kwa umma katika lugha nyingi iwezekanavyo. Ili lugha ifikie hadhi ya kuzinduliwa, tovuti ya Common Voice inahitaji kubinafsishwa kwa lugha ya ndani na angalau sentensi 5 000 katika lugha lengwa zinapaswa kukusanywa na kupatikana katika kikoa huria chini ya leseni ya CC0 [3]. Mara tu hadhi ya kuzinduliwa inapofikiwa, sentensi hizo hutumika kama Kidokezo kwa ajili ya ukusanyaji wa data ya sauti kupitia jukwaa la Mozilla Common Voice. Ingawa Mozilla hufanya jukwaa la Common Voice lipatikane bure, hawashiriki katika ubinafsishaji wa lugha na ukusanyaji wa data na hawatoi msaada wowote wa kifedha kwa washiriki. Uwepo wa lugha kwenye jukwaa huamuliwa na jamii za lugha zenyewe.
2 Background
2 Usuli
A number of projects have already contributed to the establishment of basic language resources as well as speech and text technology in South Africa's official languages. Many of these were supported by the South African Government[4].
Miradi kadhaa tayari imechangia katika uanzishwaji wa rasilimali za lugha za msingi pamoja na teknolojia ya sauti na maandishi katika lugha rasmi za Afrika Kusini. Mengi ya haya yaliungwa mkono na Serikali ya Afrika Kusini[4].
One of the first attempts to develop technology in the country's indigenous languages, the African Speech Technology (AST) project, was funded by the Department of Science and Technology's Innovation Fund (Roux et al. 2004). One of the aims of the project was to prepare South Africa's languages for a digital future. It was also envisioned that language technology would facilitate multilingual information access to South Africa's citizens. Five telephone speech databases in isiXhosa, Sesotho, isiZulu, South African English and Afrikaans were developed during the course of the project. The data was transcribed orthographically as well as phonetically and used to develop a prototype version of a multilingual, telephone-based hotel booking system. A limited domain text-to-speech voice was also built for each of the five languages, allowing the system to provide dynamic although domain limited speech feedback.
Mojawapo ya majaribio ya kwanza ya kuendeleza teknolojia katika lugha za kiasili za nchi hiyo, mradi wa African Speech Technology (AST), ulifadhiliwa na Mfuko wa Ubunifu wa Idara ya Sayansi na Teknolojia (Roux et al. 2004). Mojawapo ya malengo ya mradi huo ilikuwa kuandaa lugha za Afrika Kusini kwa ajili ya mustakabali wa kidijitali. Iliweza pia kutarajiwa kwamba teknolojia ya lugha ingewezesha upatikanaji wa taarifa kwa lugha nyingi kwa raia wa Afrika Kusini. Hifadhidata tano za usemi wa simu katika isiXhosa, Sesotho, isiZulu, Kiingereza cha Afrika Kusini na Kiafrikana ziliundwa wakati wa mradi huo. Data hiyo ilinakiliwa kwa orthografia na pia kifonetiki na kutumika kuunda toleo la mfano wa mfumo wa kuhifadhi hoteli wa lugha nyingi unaotegemea simu. Sauti ya ubadilishaji wa maandishi kuwa usemi ya kikoa chenye mipaka pia ilijengwa kwa kila moja ya lugha tano, ikiruhusu mfumo kutoa maoni ya usemi yanayobadilika ingawa yenye mipaka ya kikoa.
Subsequent to the AST project, three Lwazi[5] projects were funded by the South African Department of Arts and Culture with the aim of extending the available telephone speech data sets to include all 11 official languages and to increase the impact of speech technologies in South Africa (Barnard et al. 2010, Kuun 2012, Calteaux et al. 2013, Titmus et al. 2016). Toward the latter aim, text-to-speech and speech-to-text systems were developed in all 11 languages and evaluated in applications including a voice-based telephone service for rural veterinarians and a multilingual, telephone-based interactive voice response system for the Department of Basic Education's National School Nutrition Programme.
Baada ya mradi wa AST, miradi mitatu ya Lwazi[5] ilifadhiliwa na Idara ya Sanaa na Utamaduni ya Afrika Kusini kwa lengo la kupanua seti za data za usemi wa simu zilizopo ili kujumuisha lugha rasmi zote 11 na kuongeza athari za teknolojia za usemi nchini Afrika Kusini (Barnard et al. 2010, Kuun 2012, Calteaux et al. 2013, Titmus et al. 2016). Kuelekea lengo la mwisho, mifumo ya ubadilishaji wa maandishi kuwa usemi na usemi kwa maandishi ilitengenezwa katika lugha zote 11 na kutathminiwa katika matumizi yakiwemo huduma ya simu inayotegemea sauti kwa madaktari wa mifugo wa vijijini na mfumo wa mwingiliano wa sauti wa simu wa lugha nyingi kwa ajili ya Mpango wa Kitaifa wa Lishe ya Shule wa Idara ya Elimu ya Msingi.
isiZulu was included in the data sets that were collected to support IARPA/DARPA's[6] Babel and LORELEI (Low Resource Languages for Emergent Incidents) programs (Harper 2011, Strassel & Tracey 2016). These programs resulted in numerous investigations on the development of automatic speech recognition and spoken term detection capabilities in low-resource languages, many of which included isiZulu as an example language.
isiZulu ilijumuishwa katika seti za data zilizokusanywa ili kusaidia programu za IARPA/DARPA[6] za Babel na LORELEI (Lugha zenye Rasilimali Chache kwa Matukio ya Dharura) (Harper 2011, Strassel & Tracey 2016). Programu hizi zilisababisha uchunguzi mwingi juu ya ukuzaji wa uwezo wa Utambuzi longo otomatiki na utambuzi wa istilahi zilizotamkwa katika lugha zenye rasilimali chache, ambazo nyingi zilijumuisha isiZulu kama lugha ya mfano.
The National Centre for Human Language Technology (NCHLT) subsequently funded two projects to collect substantially larger speech and text data sets than those that were compiled during previous projects. The data collection efforts therefore went beyond the telephone-based, limited domain scope of the AST and Lwazi projects. This effort resulted in 11 speech corpora containing 50-60 hours of orthographically transcribed broadband speech per language and 11 text corpora of between 1.15 and 3.27 million words per language (Barnard et al. 2014, Eiselen & Puttkammer 2014). With the exception of a few domain specific data collection efforts (Davel et al. 2011, de Wet et al. 2011, de Wet et al. 2016), these remain the most extensive resources that are available for speech technology development in the country.
Kituo cha Kitaifa cha Teknolojia ya Lugha ya Binadamu (NCHLT) baadaye kilifadhili miradi miwili ya kukusanya seti za data za usemi na maandishi kubwa zaidi kuliko zile zilizokusanywa wakati wa miradi ya awali. Juhudi za ukusanyaji wa data kwa hiyo zilivuka mipaka ya wigo wa kikoa finyu uliotegemea simu wa miradi ya AST na Lwazi. Juhudi hii ilisababisha korasi 11 za usemi zenye saa 50-60 za usemi wa broadband ulionukuliwa kwa orthografia kwa kila lugha na korasi 11 za maandishi zenye kati ya maneno milioni 1.15 na 3.27 kwa kila lugha (Barnard et al. 2014, Eiselen & Puttkammer 2014). Isipokuwa kwa juhudi chache za ukusanyaji wa data mahususi kwa kikoa (Davel et al. 2011, de Wet et al. 2011, de Wet et al. 2016), hizi zinasalia kuwa rasilimali pana zaidi zinazopatikana kwa ajili ya ukuzaji wa teknolojia ya usemi nchini.
The majority of the projects mentioned in the previous paragraphs were associated with a specific institution in South Africa, whereas anybody from any language community (who adheres to Mozilla's code of conduct) can participate in the Common Voice project. Anybody who would like to can therefore contribute to the data collection effort and become involved in the local language technology community. The Common Voice project also has an international reach which means that the South African community stands to benefit from "lessons learnt" during localisation and data collection in other countries as well as the technical support provided on Common Voice community user groups. The rest of the paper describes how the Common Voice website was localised and presents the results of an initial attempt to harvest sentences from text data on the web.
Miradi mingi iliyotajwa katika aya zilizotangulia ilihusishwa na taasisi maalum nchini Afrika Kusini, ilhali mtu yeyote kutoka jumuiya yoyote ya lugha (anayefuata kanuni za maadili za Mozilla) anaweza kushiriki katika mradi wa Common Voice. Mtu yeyote ambaye angependa kwa hiyo anaweza kuchangia juhudi za ukusanyaji wa data na kujihusisha na jumuiya ya ndani ya teknolojia ya lugha. Mradi wa Common Voice pia una ufikiaji wa kimataifa ambao unamaanisha kwamba jamii ya Afrika Kusini ina nafasi ya kufaidika na "mambo yaliyojifunza" wakati wa ujanibishaji na ukusanyaji wa data katika nchi nyingine pamoja na usaidizi wa kiufundi unaotolewa kwenye vikundi vya watumiaji vya jamii ya Common Voice. Sehemu iliyobaki ya karatasi inaeleza jinsi tovuti ya Common Voice ilivyojanibishwa na inawasilisha matokeo ya jaribio la awali la kukusanya sentensi kutoka kwa data ya maandishi kwenye wavuti.
3 Mozilla Common Voice platform
3 Jukwaa la Mozilla Common Voice
As was mentioned in Section 1, a language needs to meet two requirements to be launched on the Common Voice platform: 1) the website needs to be translated into the target language and 2) 5 000 sentences that are in the open domain need to be collected. Mozilla provides tools (via websites and community user groups) and guidelines to assist with both these processes. Their implementation in the current project is briefly described in the next two sections of the paper.
Kama ilivyotajwa katika Sehemu ya 1, lugha inahitaji kukidhi mahitaji mawili ili kuzinduliwa kwenye jukwaa la Common Voice: 1) tovuti inahitaji kutafsiriwa katika lugha lengwa na 2) sentensi 5 000 ambazo ziko katika kikoa huria zinahitaji kukusanywa. Mozilla hutoa zana (kupitia tovuti na vikundi vya watumiaji vya jamii) na miongozo ya kusaidia michakato hii yote miwili. Utekelezaji wake katika mradi wa sasa unaelezwa kwa ufupi katika sehemu mbili zinazofuata za karatasi.
3.1 Translation
3.1 Tafsiri
A number of service providers were requested to submit quotes for translating the Common Voice website from English into the 10 other official languages. A company with previous experience in localisation was identified as the best candidate to perform the translations. All translations were performed by the same company so that they could manage aspects like the standardisation of terminology between languages in the same manner for all languages.
Idadi ya watoa huduma waliombwa kuwasilisha bei za kutafsiri tovuti ya Common Voice kutoka Kiingereza hadi lugha nyingine 10 rasmi. Kampuni yenye uzoefu wa awali katika ujanibishaji ilitambuliwa kama mgombea bora wa kufanya tafsiri hizo. Tafsiri zote zilifanywa na kampuni hiyo hiyo ili waweze kusimamia vipengele kama usanifishaji wa istilahi kati ya lugha kwa namna ile ile kwa lugha zote.
Words and utterances were translated using Mozilla's translation tool, Pontoon[7], before being used to generate language specific web pages automatically. The resulting web pages were subsequently proofread by a second team of linguists. The feedback they provided ranged from remarks on lexical choice based on differences in intra-lingual geographical variation between the dialects of the translators and proofreaders (despite both parties being native speakers of the language) to the way in which Mozilla's technology utilized words to create automatic translations without taking the morphological makeup of a word into account. Amongst other things their comments indicated that Mozilla's tools do not make provision for the noun class agreement system in the Nguni languages, resulting in words translated in isolation not appearing correctly in sentences. In some cases the tools did not accommodate the length of words in more descriptive sentences where words are more morphologically complex.
Maneno na matamshi vilitafsiriwa kwa kutumia zana ya tafsiri ya Mozilla, Pontoon[7], kabla ya kutumiwa kuzalisha kurasa za wavuti mahususi kwa lugha kiotomatiki. Matokeo ya kurasa za wavuti baadaye yalipitiwa na timu ya pili ya wataalamu wa lugha. Maoni waliyotoa yalianzia kwenye maelezo kuhusu uchaguzi wa kileksika kulingana na tofauti za kijiografia za ndani ya lugha kati ya lahaja za watafsiri na wasahihishaji (licha ya pande zote mbili kuwa wazungumzaji asilia wa lugha hiyo) hadi kwenye namna ambavyo teknolojia ya Mozilla ilitumia maneno kuunda tafsiri za kiotomatiki bila kuzingatia muundo wa kimofolojia wa neno. Miongoni mwa mambo mengine maoni yao yalionyesha kwamba zana za Mozilla hazitoi nafasi kwa mfumo wa upatanisho wa ngeli katika lugha za Kinguni, na kusababisha maneno yaliyotafsiriwa kwa kutengwa kutoonekana kwa usahihi katika sentensi. Katika baadhi ya matukio zana hazikutosheleza urefu wa maneno katika sentensi zenye maelezo zaidi ambapo maneno ni changamano zaidi kimofolojia.
Translators and proofreaders also found it difficult to perform the localisation because many of the languages do not currently have words for technological terminology such as part-of-speech tagger or sentence builder resulting in the choice between creating or establishing terminology which might alienate potential users of the website, or using existing English terminology which might create the perception that the entire website has not been localised.
Watafsiri na wasahihishaji pia waliona ugumu wa kufanya ujanibishaji kwa sababu nyingi za lugha kwa sasa hazina maneno kwa istilahi za kiteknolojia kama vile kitambulishi cha aina za maneno au kijenzi cha sentensi, jambo linalosababisha uchaguzi kati ya kuunda au kuanzisha istilahi ambayo inaweza kuwatenga watumiaji watarajiwa wa tovuti, au kutumia istilahi za Kiingereza zilizopo ambazo zinaweza kuunda dhana kwamba tovuti nzima haijajanibishwa.
3.2 Text collection
3.2 Ukusanyaji wa maandishi
Although a number of curated text corpora collections already exist for all of the South African languages, there are several complications to using these corpora as example sentences for the Mozilla Common Voice project. Firstly, almost all of these corpora are distributed under CC-BY licenses, similar to those used by open source initiatives such as Wikipedia. This implies that only subsections of these data sets (typically less than 10% of the original article) qualify as CC0. Secondly, many of these data sets are either sourced from government documents, speeches, and websites, or from religious mat rial, such as the Bible. These texts represent very specific domains, subject matter, as well as writing style.
Ingawa idadi ya mkusanyiko wa korasi za maandishi zilizoratibiwa tayari zipo kwa lugha zote za Afrika Kusini, kuna matatizo kadhaa katika kutumia korasi hizi kama sentensi za mfano kwa mradi wa Mozilla Common Voice. Kwanza, karibu korasi hizi zote zinasambazwa chini ya leseni za CC-BY, sawa na zile zinazotumiwa na mipango ya programu huria kama vile Wikipedia. Hii ina maana kwamba ni sehemu ndogo tu za seti hizi za data (kwa kawaida chini ya 10% ya makala asilia) zinazostahili kuwa CC0. Pili, nyingi za seti hizi za data zinatokana na nyaraka za serikali, hotuba, na tovuti, au kutoka kwa nyenzo za kidini, kama vile Biblia. Maandishi haya yanawakilisha nyanja maalum sana, mada, pamoja na mtindo wa uandishi.
To mitigate these problems, we investigated the possibility of sourcing text data from other web sources that are commonly used in language technology development. For instance, Mozilla provides a set of text processing tools to harvest data from Wikipedia. The tools could not be used "as is" in this project, because the default English rule set only allows sentences with ASCII characters. However, most of the South African languages include diacritic markers encoded by UTF-8 characters. The rule set therefore had to be adapted to accept within-language UTF-8 characters but to reject irrelevant ones.
Ili kupunguza matatizo haya, tulichunguza uwezekano wa kupata data ya maandishi kutoka kwa vyanzo vingine vya wavuti ambavyo hutumiwa kwa kawaida katika ukuzaji wa teknolojia ya lugha. Kwa mfano, Mozilla hutoa seti ya zana za kuchakata maandishi ili kukusanya data kutoka Wikipedia. Zana hizo hazikuweza kutumika "kama zilivyo" katika mradi huu, kwa sababu seti chaguo-msingi ya kanuni za Kiingereza inaruhusu tu sentensi zenye herufi za ASCII. Hata hivyo, Lugha nyingi za Afrika Kusini zinajumuisha alama za diacritic zilizosimbwa kwa herufi za UTF-8. Kwa hiyo seti ya kanuni ilibidi irekebishwe ili kukubali herufi za UTF-8 za ndani ya lugha lakini kukataa zile zisizo na umuhimu.
One of the Mozilla selection rules specifies that only three sentences may be copied from a Wikipedia page, but only if the article contains 10 or more sentences. Many articles in South African languages did not meet the 10-sentence limit and, as a result, no sentences could be harvested from them. Another limitation that became evident is the lack of lists of "disallowed words" in most of the languages. These lists are used to prevent possibly offensive words from appearing in the sentences. The text collected from Wikipedia was also verified using automatic Language Identification (LID) (Puttkammer et al. 2018, Hocking 2014)[8]. The verification revealed that many articles contain text in languages other than the target language. These sentences were discarded.
Moja ya kanuni za uteuzi za Mozilla inabainisha kwamba ni sentensi tatu pekee zinazoweza kunakiliwa kutoka ukurasa wa Wikipedia, lakini tu ikiwa makala ina sentensi 10 au zaidi. Makala nyingi katika Lugha za Afrika Kusini hazikufikia kikomo cha sentensi 10 na, kwa sababu hiyo, hakuna sentensi zilizoweza kukusanywa kutoka kwazo. Kizuizi kingine kilichojitokeza ni ukosefu wa orodha za "maneno yaliyokatazwa" katika lugha nyingi. Orodha hizi hutumika kuzuia maneno yanayoweza kuwa ya kukera yasionekane katika sentensi. Maandishi yaliyokusanywa kutoka Wikipedia pia yalithibitishwa kwa kutumia utambuzi wa lugha (LID) wa kiotomatiki (Puttkammer et al. 2018, Hocking 2014)[8]. Uthibitishaji ulibaini kuwa makala nyingi zina maandishi katika lugha nyingine tofauti na lugha lengwa. Sentensi hizi zilitupiliwa mbali.
Although the Mozilla tools and Wikipedia could be used to obtain some data in a few languages, the current Wikipedia presence of the majority of the languages yielded less than a thousand sentences per language. Moreover, the text collection did not produce any isiNdebele sentences because, at the time of writing, the language did not have a presence on Wikipedia.
Ingawa zana za Mozilla na Wikipedia zingeweza kutumika kupata data fulani katika lugha chache, uwepo wa sasa wa Wikipedia kwa lugha nyingi ulitoa chini ya sentensi elfu moja kwa kila lugha. Aidha, mkusanyiko wa maandishi haukutoa sentensi zozote za isiNdebele kwa sababu, wakati wa uandishi, lugha hiyo haikuwa na uwepo kwenye Wikipedia.
Other sources of web-based text were subsequently explored in an attempt to collect isiNdebele sentences as well as additional data for the other languages. These included the Leipzig Corpora Collection (LCC) (Goldhahn et al. 2012), OPUS (Tiedemann & Nygaard 2004) and the FLORES-200 (Goyal et al. 2022) data sets. The Mozilla tools were also used to collect sentences from these sources, but with the restriction that no more than 9.5% of any particular source was allowed to be harvested. The resulting selections were also verified using LID and the same rules for discarding unwanted characters were applied.
Vyanzo vingine vya maandishi ya mtandaoni vilichunguzwa baadaye katika jaribio la kukusanya sentensi za isiNdebele pamoja na data ya ziada kwa lugha nyingine. Hizi zilijumuisha seti za data za Leipzig Corpora Collection (LCC) (Goldhahn et al. 2012), OPUS (Tiedemann & Nygaard 2004) na FLORES-200 (Goyal et al. 2022). Zana za Mozilla pia zilitumika kukusanya sentensi kutoka vyanzo hivi, lakini kwa kizuizi kwamba hakuna zaidi ya asilimia 9.5 ya chanzo chochote mahususi kilichoruhusiwa kuvunwa. Chaguo zilizotokana pia zilithibitishwa kwa kutumia LID na sheria zilezile za kutupilia mbali herufi zisizotakikana zilitumika.
In addition to these pre-processing steps, the text was sentence separated and frequency lists were generated using CTexTools 2 (Puttkammer et al. 2018)[9]. Sentences or segments that did not include useful data (e.g. lines containing only telephone numbers or punctuation) as well as lines that did not constitute a well formed sentence (starting with optional punctuation or numbering, then a capital letter and ending with sentence ending punctuation) were removed from the sentence separated data. The sentences were also filtered to contain between three and fourteen words but with an absolute character limit of 99 [10]. Sentences including numerals were also removed according to the guidelines [11].
Zaidi ya hatua hizi za uchakataji wa awali, maandishi yalitenganishwa kwa sentensi na orodha za marudio zilitengenezwa kwa kutumia CTexTools 2 (Puttkammer et al. 2018)[9]. Sentensi au vipande ambavyo havikujumuisha data muhimu (k.m. mistari iliyokuwa na nambari za simu au alama ya uakifishaji pekee) pamoja na mistari ambayo haikuunda sentensi iliyokamilika vizuri (inayoanza na alama ya uakifishaji au nambari kwa hiari, kisha herufi kubwa na kuishia na alama ya uakifishaji ya mwisho wa sentensi) ziliondolewa kutoka kwenye data iliyotenganishwa kwa sentensi. Sentensi pia zilichujwa ili ziwe na maneno kati ya matatu na kumi na manne lakini kwa kikomo kamili cha herufi 99 [10]. Sentensi zilizojumuisha nambari pia ziliondolewa kulingana na miongozo [11].
The frequency lists were then spell checked using commercially available spelling checkers [12] developed by the Centre for Text Technology at the North-West University in South Africa [13]. Using the spell checked lists, all remaining sentences were ranked according to the percentage correctly spelled words they contain and only sentences with more than 80% correctly spelled words were kept. To ensure better coverage of the languages, these sentences were then compared using the Levenshtein edit distance [14]. Only sentences with less than 70% overlap were included in the final set for each language.
Orodha za marudio kisha zilikaguliwa tahajia kwa kutumia vikagua tahajia vinavyopatikana kibiashara [12] vilivyotengenezwa na Centre for Text Technology katika Chuo Kikuu cha North-West nchini Afrika Kusini [13]. Kwa kutumia orodha zilizokaguliwa tahajia, sentensi zote zilizobaki ziliorodheshwa kulingana na asilimia ya maneno yaliyoandikwa kwa usahihi yaliyomo na sentensi zilizo na zaidi ya 80% ya maneno yaliyoandikwa kwa usahihi pekee ndizo zilihifadhiwa. Ili kuhakikisha ufunikaji bora wa lugha, sentensi hizi kisha zililinganishwa kwa kutumia umbali wa uhariri wa Levenshtein [14]. Ni sentensi zilizo na mwingiliano wa chini ya 70% pekee ndizo zilizojumuishwa katika seti ya mwisho kwa kila lugha.
After completing the above mentioned steps, only the Afrikaans and Setswana texts still contained more than 5 000 sentences. This was partially due to the fact that the initial corpora were relatively small. Another contributing factor is an overlap of up to 80% between the web-based corpora like LCC and OPUS. This observation seems to suggest that the text collections were probably obtained form the same sources.
Baada ya kukamilisha hatua zilizotajwa hapo juu, ni maandiko ya Kiafrikana na Kisetswana pekee ambayo bado yalikuwa na zaidi ya sentensi 5 000. Hii ilitokana kwa sehemu na ukweli kwamba korasi za awali zilikuwa ndogo kiasi. Sababu nyingine inayochangia ni mwingiliano wa hadi 80% kati ya korasi zinazotegemea wavuti kama LCC na OPUS. Uchunguzi huu unaonekana kupendekeza kwamba makusanyo ya maandishi yalipatikana kutoka vyanzo sawa.
Searching for some of the terms in the Afrikaans list of disallowed words revealed that adding this type of filtering is essential to prevent offensive words and sentences from appearing in the sentences. A similar process also indicated that there is a strong presence of religious text in the harvested data, despite a concerted effort to avoid religious and government publications. Appropriate filters for these types of texts will therefore also have to be designed for each of the 10 languages under consideration before adding any text harvested from the web to the Common Voice platform.
Kutafuta baadhi ya maneno katika orodha ya Kiafrikana ya maneno yasiyoruhusiwa kulifunua kwamba kuongeza aina hii ya uchujaji ni muhimu ili kuzuia maneno na sentensi za kuudhi zisionekane katika sentensi. Mchakato sawa pia ulionyesha kwamba kuna uwepo mkubwa wa maandishi ya kidini katika data iliyovunwa, licha ya juhudi za pamoja za kuepuka machapisho ya kidini na ya serikali. Vichujio vinavyofaa kwa aina hizi za maandishi kwa hiyo vitalazimika pia kubuniwa kwa kila moja ya lugha 10 zinazozingatiwa kabla ya kuongeza maandishi yoyote yaliyovunwa kutoka kwenye wavuti kwenye jukwaa la Common Voice.
4 Future work
4 Kazi za Baadaye
Immediate next steps in the project will be to address the issues discussed in the previous section in order to reach the target of 5 000 CC0 sentences per language. The South African governmental websites (*.gov.za) appear in all the official languages and the possibility to obtain additional text from this source will be investigated. Once the required number of sentences have been collected, the Common Voice websites will be ready for speech data collection to start. The project will be promoted as widely as possible with the aim to encourage language communities across the country to become involved. Hopefully these efforts will be successful to the extent that data collection can be followed by dedicated speech technology development workshops.
Hatua za haraka zinazofuata katika mradi zitakuwa kushughulikia masuala yaliyojadiliwa katika sehemu iliyotangulia ili kufikia lengo la sentensi 5 000 za CC0 kwa kila lugha. Tovuti za serikali za Afrika Kusini (*.gov.za) zinaonekana katika lugha zote rasmi na uwezekano wa kupata maandishi ya ziada kutoka chanzo hiki utachunguzwa. Mara tu idadi inayohitajika ya sentensi itakapokusanywa, tovuti za Common Voice zitakuwa tayari kwa ukusanyaji wa data ya sauti kuanza. Mradi utatangazwa kwa upana iwezekanavyo kwa lengo la kuhamasisha jamii za lugha kote nchini kushiriki. Tunatumaini juhudi hizi zitafanikiwa kwa kiwango ambacho ukusanyaji wa data unaweza kufuatiwa na warsha maalum za maendeleo ya teknolojia ya usemi.
Notes
Maelezo
[1] https://www.undp.org/sustainable-development-goals, https://odi.org/en/publications/leave-no-one-behind-index-2019/
[1] https://www.undp.org/sustainable-development-goals, https://odi.org/en/publications/leave-no-one-behind-index-2019/
[2] https://commonvoice.mozilla.org/en
[2] https://commonvoice.mozilla.org/en
[3] https://creativecommons.org/share-your-work/public-domain/cc0/
[3] https://creativecommons.org/share-your-work/public-domain/cc0/
[4] All resources that were generated with government grants are made freely available and are accessible via the South African Centre for Digital Language Resources' Resource Catalogue: https://repo.sadilar.org/.
[4] Rasilimali zote zilizozalishwa kwa ruzuku za serikali zinatolewa bure na zinapatikana kupitia Katalogi ya Rasilimali ya Kituo cha Afrika Kusini cha Rasilimali za Lugha za Kidijitali: https://repo.sadilar.org/.
[5] In the Nguni languages spoken in South Africa lwazi means knowledge or information.
[5] Katika lugha za Nguni zinazozungumzwa Afrika Kusini lwazi inamaanisha maarifa au taarifa.
[6] Intelligence Advanced Research Projects Activity/Defense Advanced Research Projects Agency
[6] Shughuli za Miradi ya Utafiti wa Hali ya Juu ya Ujasusi/Wakala wa Miradi ya Utafiti wa Hali ya Juu ya Ulinzi
[7] https://pontoon.mozilla.org/projects/common-voice/
[7] https://pontoon.mozilla.org/projects/common-voice/
[8] https://hdl.handle.net/20.500.12185/350
[8] https://hdl.handle.net/20.500.12185/350
[9] https://hdl.handle.net/20.500.12185/480
[9] https://hdl.handle.net/20.500.12185/480
[10] https://discourse.mozilla.org/t/using-the-europarl-dataset-with-sentences-from-speeches-from-the-european-parliament/50184
[10] https://discourse.mozilla.org/t/using-the-europarl-dataset-with-sentences-from-speeches-from-the-european-parliament/50184
[11] https://commonvoice.mozilla.org/sentence-collector/##/en/how-to
[11] https://commonvoice.mozilla.org/sentence-collector/##/en/how-to
[12] https://spel.co.za/en/product/african spelling checkers/
[12] https://spel.co.za/en/product/african spelling checkers/
[13] https://humanities.nwu.ac.za/ctext
[13] https://humanities.nwu.ac.za/ctext
[14] https://metacpan.org/pod/Text::LevenshteinXS
[14] https://metacpan.org/pod/Text::LevenshteinXS
Acknowledgements
Shukrani
The localisation of the Mozilla Common Voice platform in South Africa is supported by the German Federal Ministry of Economic Cooperation and Development (BMZ), represented by the GIZ project FAIR Forward - Artificial Intelligence for All.
Ujanibishaji wa jukwaa la Mozilla Common Voice nchini Afrika Kusini unasaidiwa na Wizara ya Shirikisho ya Ushirikiano wa Kiuchumi na Maendeleo ya Ujerumani (BMZ), ikiwakilishwa na mradi wa GIZ FAIR Forward - Artificial Intelligence for All.
References
Marejeo
Adda, G., Choukri, K., Kasinskaite, I., Mariani, J., Mazo, H. & Sakriani, S., eds (2019), Proceedings of the 1st International Conference on Language Technologies for All, European Language Resources Association (ELRA), Paris, France.
Barnard, E., Davel, M. H., van Heerden, C., de Wet, F. & Badenhorst, J. (2014), The NCHLT Speech Corpus of the South African languages, in 'Proceedings of the 4 th Workshop on Spoken Language Technologies for Under-resourced Languages', St Petersburg, Russia, pp. 194-200.
Barnard, E., Davel, M. H. & Van Huyssteen, G. B. (2010), Speech Technology for Information Access: A South African Case Study, in 'AAAI Spring Symposium Series', pp. 8-13.
Calteaux, K., de Wet, F., Moors, C., van Niekerk, D., McAlister, B., Sharma-Grover, A., Reid, T., Davel, M., Barnard, E. & van Heerden, C. (2013), Lwazi II Final Report: Increasing the impact of speech technologies in South Africa, Technical report, CSIR.
Davel, M. H., van Heerden, C., Kleynhans, N. & Barnard, E. (2011), Efficient harvesting of Internet audio for resource-scarce ASR, in 'Proceedings of Interspeech', International Speech Communication Association (ISCA), Florence, Italy, pp. 3153-3156.
de Wet, F., Badenhorst, J. & Modipa, T. (2016), 'Developing Speech Resources from Parliamentary Data for South African English', Procedia Computer Science 81, 45-52.
de Wet, F., de Waal, A. & van Huyssteen, G. B. (2011), Developing a broadband automatic speech recognition system for Afrikaans, in 'Proceedings of Interspeech', International Speech Communication Association (ISCA), Florence, Italy, pp. 3185-3188.
Eiselen, R. & Puttkammer, M. J. (2014), Developing Text Resources for Ten South African Languages, in 'Proceedings of Language Resource and Evaluation (LREC)', Reykjavik, Iceland, pp. 3698-3703.
Goldhahn, D., Eckart, T. & Quasthoff, U. (2012), Building Large Monolingual Dictionaries at the Leipzig Corpora Collection: From 100 to 200 Languages, in 'Proceedings of the Eighth International Conference on Language Resources and Evaluation (LREC)'.
Goyal, N., Gao, C., Chaudhary, V., Chen, P.-J., Wenzek, G., Ju, D., Krishnan, S., Ranzato, M., Guzman, F. & Fan, A. (2022), 'The FLORES-101 evaluation benchmark for low-resource and multilingual machine translation', Transactions of the Association for Computational Linguistics 10,522-538.
Harper, M. P. (2011), 'Data Resources to Support the Babel Program Intelligence Advanced Research Projects Activity (IARPA)'.
Hocking, J. (2014), Language identification for South African languages., in 'Proceedings of the Annual Pattern Recognition Association of South Africa and Robotics and Mechatronics International Conference (PRASA-RobMech)', PRASA.
Joshi, P., Santy, S., Budhiraja, A., Bali, K. & Choudhury, M. (2020), The State and Fate of Linguistic Diversity and Inclusion in the NLP World, in 'Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics', Association for Computational Linguistics, pp. 6282-6293.
Kuun, C. (2012), Development of a telephone-based speech-driven information service for the South African Government, Technical report, CSIR.
Puttkammer, M., Eiselen, R., Hocking, J. & Koen, F. (2018), NLP Web Services for Resource-Scarce Languages, in 'Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (ACL)', Association for Computational Linguistics, pp. 43-49.
Roux, J. C., Louw, P. H. & Niesler, T. (2004), The African Speech Technology Project: An Assessment, in 'Proceedings of the Fourth International Conference on Language Resources and Evaluation (LREC)', European Language Resources Association (ELRA), Lisbon, Portugal, pp. 93-96.
Strassel, S. & Tracey, J. (2016), LORELEI Language Packs: Data, Tools, and Resources for Technology Development in Low Resource Languages, in 'Proceedings of the Tenth International Conference on Language Resources and Evaluation (LREC'16)', European Language Resources Association (ELRA), Portorož, Slovenia, pp. 3273-3280.
Tiedemann, J. & Nygaard, L. (2004), The OPUS corpus - parallel and free: http://logos.uio.no/opus, in 'Proceedings of the Fourth International Conference on Language Resources and Evaluation (LREC'04)', European Language Resources Association (ELRA), Lisbon, Portugal.
Titmus, N., Schlünz, G. I., Louw, J. A., Moodley, A., Reid, T. & Calteaux, K. (2016), Lwazi III Project Final Report: Operational Deployment of Indigenous Text-to-Speech Systems, Technical report, CSIR.
How to cite
Cite the original paper for its content and results. Cite the translation when you quote the translated wording.
Cite the original paper
de Wet, F., Bukula, A., Karsten, W., Puttkammer, M., Schillack, E., Wierenga, R., & Eiselen, R. (2022). Localising the Mozilla Common Voice platform for South Africa’s official languages. Journal of the Digital Humanities Association of Southern Africa. https://upjournals.up.ac.za/index.php/dhasa/article/view/4437
@article{dewet2022localising,
title = {{Localising the Mozilla Common Voice platform for South Africa’s official languages}},
author = {Febe de Wet and Andiswa Bukula and Willem Karsten and Martin Puttkammer and Erwin Schillack and Roné Wierenga and Roald Eiselen},
journal = {Journal of the Digital Humanities Association of Southern Africa},
year = {2022},
url = {https://upjournals.up.ac.za/index.php/dhasa/article/view/4437}
}TY - JOUR AU - de Wet, Febe AU - Bukula, Andiswa AU - Karsten, Willem AU - Puttkammer, Martin AU - Schillack, Erwin AU - Wierenga, Roné AU - Eiselen, Roald TI - Localising the Mozilla Common Voice platform for South Africa’s official languages JO - Journal of the Digital Humanities Association of Southern Africa PY - 2022 UR - https://upjournals.up.ac.za/index.php/dhasa/article/view/4437 LA - en ER -
Translations have their own pages, each with a citation.