RAIL 2023Original text
Comparing methods of orthographic conversion for Bàsàá, a language of Cameroon
This is the original text of the paper. Translations are linked above.
Proceedings of the Fourth workshop on Resources for African Indigenous Languages (RAIL 2023).
Original text, shown under its licence (CC BY 4.0). Reuse allowed, including commercial, with attribution. The translations on this site are by Ernst van Gassen (Arktos AI Lab).
Plain text for reuse, with its licence: English · LICENSE
Affiliations
Alexandra O’Neil, Daniel Swanson
Emmanuel Ngué Um
Robert Pugh, Francis Tyers
University of Yaoundé
Indiana University
Yaoundé, Cameroon
Bloomington, IN USA
Abstract
Orthographic standardization is a milestone in a language's documentation and the development of its resources. However, texts written in former orthographies remain relevant to the language's history and development and therefore must be converted to the standardized orthography. Ensuring a language has access to the orthographically standardized version of all of its recorded texts is important in the development of resources as it provides additional textual resources for training, supports contribution of authors using former writing systems, and provides information about the development of the language. This paper evaluates the performance of natural language processing methods, specifically Finite State Transducers and Long Short-term Memory networks, for the orthographical conversion of Bàsàá texts from the Protestant missionary orthography to the now-standard AGLC orthography, with the conclusion that LSTMs are somewhat more effective in the absence of explicit lexical information.
1 Introduction
Orthographic standardization is a process that many languages of the world have undergone throughout history and many are still undergoing. Although there are numerous benefits to the standardization of a language's writing system, it can also present challenges for language communities. These challenges include contention between speakers that are used to using different representations, discomfort from speakers that relate to their language solely as an oral language, addressal and mitigation of the impact of colonialism on the language and community, debate about how to best represent sounds in the language, and hesitance in adoption of the writing system by all speakers (Limerick, 2018).
As referenced in the set of potential challenges above, communities often have differing means of representing their language prior to the coordinated effort to implement a uniform system (Mosel, 2004). While one of the goals of orthographic standardization is to create a consistent medium that speakers can use to understand one another and communicate their own thoughts, texts and data written in formerly used orthographies remain relevant in both the history and development of the language. To preserve this information it is necessary to convert former orthographies to the new standard. Furthermore, it is preferable to begin this process shortly following the standardization of the system, as this increases opportunity to work with speakers that are knowledgeable in the previously used systems.
Additionally, conversion of former orthographies into the current standard is beneficial since some speakers may not be willing to switch to the new standard. For a period of time following the adoption of the new orthography, speakers may continue to use a variety of orthographies in their own writing, following whichever orthography they previously learned (Jahani, 1989). Some speakers may be compelled to continue to use a non-standard system due to an emotional attachment to an orthographic system. For example, reasons for maintaining an orthographic preference range from positive experience, such as associating a system with how one's grandparents taught them, to a reaction to a traumatic experience, such as psychologically and physically abusive school environments where one writing system was emphasized (Arndt, 2019). Regardless of a speaker's reason for continuing use of a different orthography, it is constructive to the community to ensure that users of the new orthography are still able to understand writings in other orthographies and develop a method to easily convert these texts (Person, 2009).
In this paper, we investigate and compare the usefulness of finite-state transducers (FSTs) and long short-term memory neural networks (LSTMs) for the to the task of converting a prior orthography for the Bàsàá language to the current standard, with the conclusion that LSTMs slightly outperform FSTs in the absence of lexical information.
2 Bàsàá
Bàsàá is a Bantu language spoken by approximately 300,000 speakers in Cameroon (Eberhard et al., 2022). While it has many characteristic features of a Bantu language, it is commonly perceived to have more syllable structure variation and flexibility in noun classes when compared with other Bantu languages, as discussed in Section 2.1. The history of Bàsàá also accounts for a variety of writing systems from different missionaries and different standardization efforts, as outlined in Section 2.2.

Figure 1: Map depicting the primary regions where Bàsàá is spoken: southern, central and littoral Cameroon. (Njock, 2019)
2.1 Linguistic Profile
A phonetic inventory of Bàsàá is laid out in Makasso and Lee (2015), which includes 7 phonemic vowels (see Figure 2) with short-long contrasts and 30 consonants (see Figure 3). Additionally, Bàsàá utilizes a high-low tone system. While it is a Bantu language, it atypically allows for closed syllable structure in addition to open syllable structure. Although it does have a noun class system, the surface distinctions between the classes are sometimes neutralized. Nouns are not required to start with a consonantal onset and verbs are not required to end in a vowel. These factors result in a higher diversity of permissible syllable structures in Bàsàá when compared with other Bantu languages (Hyman, 2003).

Figure 2: Vowel inventory in Bàsàá (Makasso and Lee, 2015). [ɛ] and [ɔ] are contrasted with [o] and [e] by diacritics in the missionary orthographies
2.2 Orthographic History
The orthographic history of Bàsàá contains multiple writing systems as English, German, and French colonialists who transcribed the language chose different methods of representation. The alphabets created for Bàsàá, and for many of the languages of Cameroon, were primarily influenced by the first languages of the transcriptionists, commonly French, English, or German, and often failed to properly mark important contrasts in the language (Bird, 2001). The two most prominent orthographies established prior to the current one are attributed to Protestant missionaries and Catholic missionaries and are referred to in this paper as the Protestant and Catholic orthographies, neither of which marked tone.
While the first attempt to implement a standard writing system, using an orthography developed for Western African language in Bamako (United Nations Educational and Organization, 1966), wasn't successful, a national committee was established to develop a writing system that would facilitate a pan-Cameroonian literacy in all the languages of the country. Central to this endeavor was the establishment of a system that could capture all of the contrasting sounds across Cameroonian languages. The inclusion of all contrasts would allow any literate speaker of a Cameroonian language to read and pronounce the words of a text in any of the languages of Cameroon, irrespective of comprehension (Hartell, 1993).
The national effort culminated in the establishment of the General Alphabet of the Cameroonian Languages (AGLC) by the National Committee for the Unification and Harmonisation of the Alphabets of Cameroon Languages in 1979 (Maurice Tadadjeu, 1979). The characters of this alphabet are predominately Latin, and thus similar to the English, German, and French alphabets, however the alphabet integrates symbols from the International Phonetic Alphabet to fully represent the phonetic inventory of Cameroonian languages. The symbols in the full AGLC are listed in Table 1.

Figure 3: Consonant inventory in Bàsàá (Makasso and Lee, 2015).

Table 1: Alphabet of the Cameroonian Languages. The AGLC alphabet was designed to work as a unifying and intelligible alphabet for speakers of all Cameroonian language.
Bàsàá utilizes a subset of this system in accordance with the language's phonetic contrasts. Latin letters are used alongside ɓ, ŋ, ɛ, and ɔ with acute, grave, and circumflex accents to denoting tone. While this orthography is supported by the Academy of Languages of Cameroon, the former missionary orthographies are still used by some speakers and are generally used in earlier texts written in Bàsàá, necessitating a method of conversion of missionary orthographies to the AGLC standard.
Comparing the three writing systems, the first major discrepancy is found in tone marking and vowels. The Protestant and Catholic writing systems do not mark tone, but instead use acute, grave, and circumflex accents to mark different vowels. The Protestant system represents [e] by using an acute accent mark, é, while a [ɛ] is represented by a plain e. Likewise, the Protestant system uses the circumflexed ô, to mark [o], but a plain o in the orthography represents [ɔ]. On the other hand, the Catholic orthography marks [ɛ] and [ɔ] by è and ò, while the plain e and o represent [e] and [o]. However, in the AGLC orthography, acute, grave, and circumflex accents are used to represent tone and the ɛ and ɔ are already contrasted in the orthography by the addition of the symbols ɛ and ɔ. Tone is also marked on syllabic nasal consonants in the AGLC system.
The consonants in the orthography also require consideration in the conversion process. The [ɓ] and [ŋ] sounds are represented by b and ñ in the missionary orthographies, while the AGLC orthography distinguishes [b] from [ɓ] with the characters b and ɓ. Instead of ñ, the [ŋ] is represented by ŋ in the AGLC orthography. In addition to these consonants, the missonary orthographies transcribe the sound tʃ as tj, the AGLC system uses c. One sentence is presented in the three orthographies below to exemplify some of the differences in the orthographies.
AGLC: Mɛ̀ yè lɛ mɛ ɓɔl nyɔɔ̄ nì màkòò.
Protestant: Me yé le me bol nyoo ni makôô.
Catholic: Mè ye lè mè bòl nyòò ni makoo.
3 Prior work
Negotiation between orthographies is a common issue in many languages, and as such a number of previous studies have explored techniques to aid in orthographic conversion and/or normalization. This work builds on existing research describing the Bàsàá language and the use of natural language processing for low-resource languages. This section outlines existing work on Bàsàá in Section 3.1, Finite State Transducers (FST) in Section 3.2, and Long Short-term Memory (LSTM) networks in Section 3.3. While research concerning FSTs and LSTM networks in low-resource settings is extensive, this section focuses on examples that closely mirror the goals of this paper.
3.1 Research on Bàsàá
Existing work on Bàsàá has profiled the linguistic inventory of the language (Makasso and Lee, 2015; Hyman, 2003), generated dictionaries (Lemb and de Gastines, 1973), designed learning materials (Moreton et al., 1968), and, more recently, facilitated the development of resources that integrate computational and NLP methods with Bàsàá to enhance the resources available for documentation, such as the bilingual speech corpus developed to assist in automatic phonetic transcription (Hamlaoui et al., 2018).
Nikitin et al. (2022) approaches the task of orthography conversion in Bàsàá by using Bidirectional Encoder Representations from Transformers (BERT), which often performs well due to the large amount of resources and training that went into the model. However, for this task, BERT was only able to beat the baseline after extensive pre-processing of the text. The importance of extensive pre-processing the text and only marginally better performance than the baseline suggests that BERT is not well-suited to this task.
3.2 Finite State Transducers
Finite State Transducers (FST) work as a translator between a set of input strings and a set of output strings. In the case of language, the input string can utilize linguistic rules and produce an output that adheres to those rules. As the input of the FST relies on linguistic rules, the model often performs well in low-resource environments, as the models do not rely on large amounts of training data or computational resources. While FST models require some amount of linguistic or computational efforts to build, various tools have been created which automate various parts of the process to help alleviate these boundaries (Khanna et al., 2021), although the performance of FST models benefits greatly from the generation of detailed, language-specific rules.
In general, FSTs do not necessarily specify a unique mapping between input and output strings, which can cause problems for tasks like orthography conversion that generally need a single output. This can be addressed by adding additional rules to constrain the transducer. However, if determining appropriate rules is difficult and a corpus is available, it can also be addressed by adding weights, which are scores that can be applied either to a whole-word input-output pair or to a subword mapping. Then, for a given input, each output has a weight equal to the sum of all the applicable weights derived from the corpus, with only the form with the lowest total being output.
FSTs have been implemented in many low-resource settings, as well as for the application of orthographic conversion, transliteration, and text normalization. Washington et al. (2021) developed a transducer to assist in orthographic conversion and morphological analysis of Zapotec and found that even an incomplete transducer could yield positive results. Similar efforts use an FST to develop a morphological generator and analyzer while simultaneously addressing the issue of missing diacritics (Alkhairy et al., 2020), demonstrating the easy expansion of an FST to create more resources for a language. Manohar et al. (2022) extend the use of FSTs to text-to-speech (TTS) applications in low-resource settings, generating a model that converts between Malayalam phonemes and graphemes.
While the use of FSTs in low-resource settings is well-attested, the inclusion of tones has proven difficult. Ngué Um et al. (2022) built an FST for Ewondo, a Cameroonian language. In this study, the ambiguous nature of combined versus combining tone markings produces difficulty for the analyzer. While both the combined and combining accents can be analyzed by the FST, it results in errors in the morphological generation. An expansion of the FST for Bàsàá would also need to address this issue.
3.3 Long Short-Term Memory Networks
The LSTM is a recurrent neural network architecture that allows information about long-term dependencies to be incorporated, providing additional context for the generation of the output. LSTM networks have been applied to many deep learning tasks, such as machine translation, optical character recognition (OCR), and speech recognition.
LSTMs have been combined with OCR tasks to assist languages in digitization and orthographic normalization of historic texts. Azawi et al. (2013) found that LSTMs perform well for the conversion of German historic texts as they are able to handle unseen examples. Similarly, Simistira et al. (2015) found using LSTMs for OCR produces a lower character error rate than leading methods of OCR for Greek polytonic script.
Additionally, LSTMs have recently gained popularity for their utility in TTS tasks, such as grapheme-to-phoneme conversion. Adriana (2019), Liu et al. (2018), and Behbahani et al. (2016) successfully implemented LSTM models for grapheme-to-phoneme conversion in Romanian, Mongolian, and Persian.
4 Methodology
This paper compares the accuracy of a Finite State Transducer (FST), a weighted FST, and a Long Short-term Memory (LSTM) model for the task of orthographic conversion of Bàsàá. Section 4.1 describes the data the models trained on, Section 4.2 describes the simple baseline metric used for comparison, Section 4.3 explains the use of an unweighted FST, Section 4.4 details the implementation of the weighted FST, and Section 4.5 outlines the LSTM model.
4.1 Data
The methods in this study use a text corpus comprised of 12,000 sentences in the Protestant orthography together with transliterations into the AGLC orthography. Of these sentences, 10,000 are used for training, 1,000 for validation, and 1,000 for testing. Pre-processing of the text consisted of lower-casing the characters.
4.2 Baseline
The baseline searches the target sentences for the most frequent translation of a source word and replaces the source word with that token. In the event that the source word does not appear in the data, the source word is output in its original form without conversion. The baseline here is a naïve approach to the problem, but is representative of the current lack of existing work on orthographic conversion in the language.
4.3 Unweighted FST
The unweighted FST consists of a set of character mappings compiled using the lexicon compiler Lexd (Swanson and Howell, 2021) which includes every pair of source and target characters found in the training data. Mapping each character individually and without context creates a large number of output forms, which we resolve by selecting a single output form at random. Additionally, we added four rules which restrict the output in cases where the phonological context is unambiguous. Specifically, that nasals will never have a tone diacritic in the AGLC orthography if they precede a vowel (this is 3 rules, one each for m, n, and ŋ), and that where the missionary orthography has tj the AGLC orthography will always have c (as opposed to converting the t and the j separately as tj).
4.4 Weighted FST
Where the unweighted FST treats every mapping as equally probable, the weighted FST sets a weight for each path which has been seen in the training data, with more frequent source-target pairs receiving lower (better) weights. Then, rather than selecting randomly, the output with the lowest weight is used.
4.5 Neural seq2seq model
Following previous work that has shown that character-based neural seq2seq architectures perform well for orthographic normalization and conversion (Rosca and Breuel, 2016; Orife, 2018), we trained an encoder-decoder model with global attention (Luong et al., 2015) to convert missionary orthographies into the AGLC orthography. Both the encoder and decoder are unidirectional Long short-term memory networks (Hochreiter and Schmidhuber, 1997) consisting of 2 layers of 1,000 hidden units each. We used the OpenNMTpy library (Klein et al., 2020) to train the model and generate predictions on the held-out datasets.
5 Results
We compare the four systems using word- and character-error rates (WER and CER). WER and CER are calculated automatically by comparing the outputs of each of the systems to the output of the target file. Following the presentation of WER and CER for each of the systems, we provide examples of the output from each model. Information on the differences in orthographical representation for the source and target texts can be found in Section 2.2.
5.1 Word- and Character-error Rates
Results of all systems apart from the unweighted FST were relatively similar, with baseline model performing better than both the FST systems and on par with the seq2seq model. The seq2seq model achieved the best character-error rate, while the baseline shows a marginally better word-error rate. This can be explained by the fact that the baseline operates at the word level. Thus, a mistake results in selecting the wrong word form, which likely has multiple characters that are different than the correct word form. The seq2seq model, on the other hand, predicts at a character level, and may make only a single character error in a word, such as a missed tonal diacritic.

Table 2: Comparison between the 4 models.
5.2 Error Analysis
To better understand the performance of these models, we present examples of outputs of the models for three different sentences and discuss which errors are common for each of the models. The examples are taken from the development set output for each of the models.

Table 3
In the sentences in Table 3, we see that the FSTs have a tendency to overgenerate the letter ŋ when the source orthography has an n. Additionally, it shows that the LSTM network is successful in generating the tone of a syllabic nasal. While the baseline often can predict tone on a syllabic nasal, this token is not in the training data, so the baseline just outputs the original token.
The sentences in Table 4 show that the most systems are able to understand that the accents in the source orthography are not indicative of an accent on the target orthography. However, the unweighted FST tends towards adding accents even in the absence of accents in the target form. Overall, we see the LSTM perform well on the assignm nt of tone and characters in this example, with the baseline being almost perfect apart from the tone on the second token.

Table 4

Table 5
In the sentences in Table 5, although the LSTM comes close, it is not able to identify the rising tone in the first token and marks the tone of the second token as mid. The weighted and unweighted FST correctly predict the characters, but otherwise are very inconsistent with tone diacritics, although it is evident that the weighted FST outperforms the unweighted FST.
6 Conclusion
The results of this paper contribute to the discussion concerning the relative benefits of NLP methods versus more simplistic baselines in low-resource settings. The baseline outperforms the unweighted and weighted FSTs and LSTM network in regards to WER. As Bàsàá is a tone language, changes in the tone of one character can create minimal pairs and thus WER is a more realistic metric for evaluating the utility of a model. However, the baseline simply outputs the original word for any out-of-vocabulary (OOV) tokens, meaning that the performance of the baseline is strongly impacted by OOV tokens. While this has a minimal impact on this dataset, a dataset with more OOV tokens would perform worse.
While the baseline performs well on the Protestant orthography, it would likely perform even better on the Catholic orthography as it uses grave accent marks instead of acute accent marks. Although the Catholic and AGLC orthography use the grave accents to mark different things, the presence of grave marks in the target is much more likely than acute accent marks, which only appear when deconstructing rising and falling tones on long vowels. The method of handling OOV tokens would therefore perform better for a source text written in the Catholic orthography, as the probability of coincidentally having an output that matches the input form is much higher when the source orthography uses grave accents.
In this paper, the unweighted and weighted FST were written using very minimal linguistic rules, which is evidenced in their relatively poor performance. The weighted FST greatly reduced the impact of the lack of detailed rules, but would clearly still benefit from their addition.
This paper presents a preliminary investigation of the application of FSTs and LSTM networks to the topic of orthographic conversion. While the simplistic baseline performs surprisingly well for this dataset, we believe that the comparable performance of the weighted FST and LSTM network is promising and necessitates further development of these models, specifically the inclusion of more linguistic rules for the weighted FST and augmentation of the training data for the LSTM network.
Limitations
This paper attempts to make a broader statements about the applicability of current NLP methods for text conversion by discussing the results of these models on Bàsàá. The case of Bàsàá is challenging as the representation of tones is difficult for many models. However, this study still benefits from the roman-based, alphabetic orthography of the language and the resources that are available to languages with a Latin-based, alphabetic orthography. Additionally, Bàsàá utilizes a transparent orthography that also facilitates automatic methods of conversion. Other results and challenges are likely to arise when applying these models to a language that utilizes a non-Latin-based, nonalphabetic, and/or opaque orthography.
As this project is intended to present a starting point for extended research on orthographic conversion, we have begun by providing an overall comparison and brief error analysis. However, we plan to implement a more systematic error analysis to guide future work. The current error analysis highlights some patterns that are observed in the data, but a more thorough review of the outputs will help in the development of the current system for Bàsàá.
Ethics Statement
The motivation of this work is to compare current NLP methods in a low-resource setting and discuss how the different systems might apply in different contexts based on the results, contributing overall to the discussion on how NLP methods can be used to benefit language communities and support the creation of more linguistic resources. While the hope is to support the language community, the integration of computational methods also poses the risk of language commodification and a dispossession of intellectual property of a community. This study is submitted with the belief that the current benefits associated with the application of this research outweigh this risk.
Acknowledgements
This research was supported in part by Lilly Endowment, Inc., through its support for the Indiana University Pervasive Technology Institute.
References
STAN Adriana. 2019. Input encoding for sequence-to-sequence learning of romanian grapheme-to-phoneme conversion. In 2019 International Conference on Speech Technology and Human-Computer Dialogue (SpeD), pages 1-6. IEEE.
Maha Alkhairy, Afshan Jafri, and David A Smith. 2020. Finite state machine pattern-root arabic morphological generator, analyzer and diacritizer. In Proceedings of the Twelfth Language Resources and Evaluation Conference, pages 3834-3841.
Jochen S Arndt. 2019. Engineered zuluness: Language, education, and ethnic identity in south africa, 1835-1990. The Journal of the Middle East and Africa, 10(3):211-235.
Mayce Al Azawi, Muhammad Zeshan Afzal, and Thomas M Breuel. 2013. Normalizing historical orthography for ocr historical documents using lstm. In Proceedings of the 2nd International Workshop on Historical Document Imaging and Processing, pages 80-85.
Yasser Mohseni Behbahani, Bagher Babaali, and Mussa Turdalyuly. 2016. Persian sentences to phoneme sequences conversion based on recurrent neural networks. Open Computer Science, 6(1):219-225.
Steven Bird. 2001. Orthography and identity in cameroon. Written Language & Literacy, 4(2):131-162.
David M. Eberhard, Gary F. Simons, and Charles D. Fennig. 2022. Ethnologue: Languages of the World, twenty-fifth edition. SIL International.
Fatima Hamlaoui, Emmanuel-Moselly Makasso, Markus Müller, Jonas Engelmann, Gilles Adda, Alex Waibel, and Sebastian Stüker. 2018. BUL-Basaa: A bilingual basaa-French speech corpus for the evaluation of language documentation tools. In Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC 2018), Miyazaki, Japan. European Language Resources Association (ELRA).
Rhonda L. Hartell. 1993. Alphabets of africa. SIL International.
Sepp Hochreiter and Jürgen Schmidhuber. 1997. Long short-term memory. Neural computation, 9(8):1735-1780.
Larry M Hyman. 2003. Basaá (a43). The Bantu languages, pages 257-282.
Carina Jahani. 1989. Standardization and orthography in the Balochi language. Ph.D. thesis, Acta Universitatis Upsaliensis.
Tanmai Khanna, Jonathan N Washington, Francis M Tyers, Sevilay Bayatlı, Daniel G Swanson, Tommi A Pirinen, Irene Tang, and Hèctor Alòs i Font. 2021. Recent advances in apertium, a free/open-source rule-based machine translation platform for low-resource languages. Machine Translation, 35(4):475-502.
Guillaume Klein, François Hernandez, Vincent Nguyen, and Jean Senellart. 2020. The opennmt neural machine translation toolkit: 2020 edition. In Proceedings of the 14th Conference of the Association for Machine Translation in the Americas (Volume 1: Research Track), pages 102-109.
Pierre Lemb and François de Gastines. 1973. Dictionnaire basaá-français, avec un préface par meinrad hebga edition. Collège Libermann, Douala.
Nicholas Limerick. 2018. Kichwa or quichua? competing alphabets, political histories, and complicated reading in indigenous languages. Comparative Education Review, 62(1):103-124.
Zhinan Liu, Feilong Bao, and Guanglai Gao. 2018. Mongolian grapheme to phoneme conversion by using hybrid approach. In Natural Language Processing and Chinese Computing: 7th CCF International Conference, NLPCC 2018, Hohhot, China, August 26-30, 2018, Proceedings, Part I 7, pages 40-50. Springer.
Minh-Thang Luong, Hieu Pham, and Christopher D Manning. 2015. Effective approaches to attention-based neural machine translation. arXiv preprint arXiv:1508.04025.
Emmanuel-Moselly Makasso and Seunghun J. Lee. 2015. Basaá. Journal of the International Phonetic Association, 45(1):7179.
Kavya Manohar, AR Jayan, and Rajeev Rajan. 2022. Mlphon: A multifunctional grapheme-phoneme conversion tool using finite state transducers. IEEE Access, 10:97555-97575.
Etienne Sadembouo Maurice Tadadjeu. 1979. Alphabet général des langues camerounaises / General Alphabet of Cameroon Languages. Université de Yaoundé, SIL Internationale, University of Yaoundé, SIL International.
Rebecca L Moreton et al. 1968. Cameroon basaa. Inspection copy available from Foreign Languages Program, Center for Applied Linguistics.
Ulrike Mosel. 2004. Dictionary making in endangered speech communities. Language documentation and description, 2:39-54.
Emmanuel Ngué Um, Émilie Eliette, Caroline Ngo Tjomb Assembe, and Francis Morton Tyers. 2022. Developing a rule-based machine-translation system, ewondo-french-ewondo. International Journal of Humanities and Arts Computing, 16(2):166-181.
Ilya Nikitin, Brian O'Connor, and Anastasia Safonova. 2022. Tone prediction and orthographic conversion for basaa. arXiv preprint arXiv:2210.06986.
Pierre Emmanuel. Njock. 2019. àsàa - French - English - German Dictionary. Dallas: Webonary.org.
Iroro Orife. 2018. Attentive sequence-to-sequence learning for diacritic restoration of yorùbá language text. In Interspeech.
Kirk R Person. 2009. Heritage scripts, technical transcriptions, and practical orthographies: a middle path towards educational excellence and cultural preservation for thailands ethnic minority languages. In Proceedings from the international conference on national language policy: Language diversity for national unity.
Mihaela Rosca and Thomas Breuel. 2016. Sequenceto-sequence neural network models for transliteration. arXiv preprint arXiv:1610.09565.
Fotini Simistira, Adnan Ul-Hassan, Vassilis Papavassiliou, Basilis Gatos, Vassilis Katsouros, and Marcus Liwicki. 2015. Recognition of historical greek polytonic scripts using lstm networks. In 2015 13th International Conference on Document Analysis and Recognition (ICDAR), pages 766-770. IEEE.
Daniel Swanson and Nick Howell. 2021. Lexd: A finite-state lexicon compiler for non-suffixational morphologies. In Mika Hämäläinen, Niko Partanen, and Khalid Alnajjar, editors, Multilingual Facilitation. University of Helsinki Library.
Scientific United Nations Educational and Cultural Organization. 1966. Meeting of a group of experts for the unification of alphabets of national languages. Bamako, Mali, 28 February 5 March 1966. Final report. United Nations Educational, Scientific and Cultural Organization, UNESCO.
Jonathan Washington, Felipe Lopez, and Brook Lillehaugen. 2021. Towards a morphological transducer and orthography converter for western tlacolula valley zapotec. In Proceedings of the First Workshop on Natural Language Processing for Indigenous Languages of the Americas, pages 185-193.
Comparing methods of orthographic conversion for Bàsàá, a language of Cameroon
Comparaison des méthodes de conversion orthographique pour le Bàsàá, une langue du Cameroun
Affiliations
Alexandra O’Neil, Daniel Swanson
Emmanuel Ngué Um
Robert Pugh, Francis Tyers
University of Yaoundé
Indiana University
Yaoundé, Cameroon
Bloomington, IN USA
Affiliations
Alexandra O’Neil, Daniel Swanson
Emmanuel Ngué Um
Robert Pugh, Francis Tyers
University of Yaoundé
Indiana University
Yaoundé, Cameroon
Bloomington, IN USA
Abstract
Résumé
Orthographic standardization is a milestone in a language's documentation and the development of its resources. However, texts written in former orthographies remain relevant to the language's history and development and therefore must be converted to the standardized orthography. Ensuring a language has access to the orthographically standardized version of all of its recorded texts is important in the development of resources as it provides additional textual resources for training, supports contribution of authors using former writing systems, and provides information about the development of the language. This paper evaluates the performance of natural language processing methods, specifically Finite State Transducers and Long Short-term Memory networks, for the orthographical conversion of Bàsàá texts from the Protestant missionary orthography to the now-standard AGLC orthography, with the conclusion that LSTMs are somewhat more effective in the absence of explicit lexical information.
La standardisation orthographique est une étape importante dans la documentation d'une langue et le développement de ses ressources. Cependant, les textes écrits dans les anciennes orthographes restent pertinents pour l'histoire et le développement de la langue et doivent donc être convertis à l'orthographe standardisée. S'assurer qu'une langue a accès à la version orthographiquement standardisée de tous ses textes enregistrés est important pour le développement des ressources, car cela fournit des ressources textuelles supplémentaires pour l'entraînement, soutient la contribution des auteurs utilisant d'anciens systèmes d'écriture, et fournit des informations sur le développement de la langue. Cet article évalue la performance des méthodes de traitement automatique des langues, en particulier les transducteurs à états finis et les réseaux Long Short-term Memory, pour la conversion orthographique de textes en bàsàá de l'orthographe missionnaire protestante vers l'orthographe AGLC désormais standard, avec la conclusion que les LSTM sont quelque peu plus efficaces en l'absence d'informations lexicales explicites.
1 Introduction
1 Introduction
Orthographic standardization is a process that many languages of the world have undergone throughout history and many are still undergoing. Although there are numerous benefits to the standardization of a language's writing system, it can also present challenges for language communities. These challenges include contention between speakers that are used to using different representations, discomfort from speakers that relate to their language solely as an oral language, addressal and mitigation of the impact of colonialism on the language and community, debate about how to best represent sounds in the language, and hesitance in adoption of the writing system by all speakers (Limerick, 2018).
La standardisation orthographique est un processus que de nombreuses langues du monde ont subi au cours de l'histoire et beaucoup sont encore en cours. Bien qu'il y ait de nombreux avantages à la standardisation du système d'écriture d'une langue, elle peut aussi présenter des défis pour les communautés linguistiques. Ces défis incluent la contestation entre les locuteurs qui sont habitués à utiliser différentes représentations, l’inconfort des locuteurs qui se rapportent à leur langue uniquement comme une langue orale, la prise en compte et l’atténuation de l’impact du colonialisme sur la langue et la communauté, le débat sur la meilleure façon de représenter les sons dans la langue et l’hésitation à adopter le système d’écriture par tous les locuteurs (Limerick, 2018).
As referenced in the set of potential challenges above, communities often have differing means of representing their language prior to the coordinated effort to implement a uniform system (Mosel, 2004). While one of the goals of orthographic standardization is to create a consistent medium that speakers can use to understand one another and communicate their own thoughts, texts and data written in formerly used orthographies remain relevant in both the history and development of the language. To preserve this information it is necessary to convert former orthographies to the new standard. Furthermore, it is preferable to begin this process shortly following the standardization of the system, as this increases opportunity to work with speakers that are knowledgeable in the previously used systems.
Comme référencé dans l'ensemble de défis potentiels ci-dessus, les communautés ont souvent des moyens différents de représenter leur langue avant l'effort coordonné pour mettre en œuvre un système uniforme (Mosel, 2004). Alors que l'un des objectifs de la normalisation orthographique est de créer un support cohérent que les locuteurs peuvent utiliser pour se comprendre les uns les autres et communiquer leurs propres pensées, les textes et les données écrites dans les orthographes anciennement utilisées restent pertinentes à la fois dans l'histoire et le développement de la langue. Pour préserver cette information, il est nécessaire de convertir les anciennes orthographes au nouveau standard. En outre, il est préférable de commencer ce processus peu de temps après la normalisation du système, car cela augmente les possibilités de travailler avec des locuteurs qui connaissent bien les systèmes précédemment utilisés.
Additionally, conversion of former orthographies into the current standard is beneficial since some speakers may not be willing to switch to the new standard. For a period of time following the adoption of the new orthography, speakers may continue to use a variety of orthographies in their own writing, following whichever orthography they previously learned (Jahani, 1989). Some speakers may be compelled to continue to use a non-standard system due to an emotional attachment to an orthographic system. For example, reasons for maintaining an orthographic preference range from positive experience, such as associating a system with how one's grandparents taught them, to a reaction to a traumatic experience, such as psychologically and physically abusive school environments where one writing system was emphasized (Arndt, 2019). Regardless of a speaker's reason for continuing use of a different orthography, it is constructive to the community to ensure that users of the new orthography are still able to understand writings in other orthographies and develop a method to easily convert these texts (Person, 2009).
En outre, la conversion d'anciennes orthographes dans la norme actuelle est bénéfique car certains orateurs peuvent ne pas être disposés à passer à la nouvelle norme. Pendant un certain temps après l'adoption de la nouvelle orthographe, les locuteurs peuvent continuer d'utiliser une variété d'orthographes dans leur propre écriture, suivant l'orthographe qu'ils ont précédemment apprise (Jahani, 1989). Certains locuteurs peuvent être obligés de continuer à utiliser un système non standard en raison d'un attachement émotionnel à un système orthographique. Par exemple, les raisons de maintenir une préférence orthographique vont d'une expérience positive, comme associer un système à la manière dont ses grands-parents lui ont appris, à une réaction à une expérience traumatisante, comme des environnements scolaires psychologiquement et physiquement abusifs où un système d'écriture était mis en avant (Arndt, 2019). Peu importe la raison pour laquelle un locuteur continue d'utiliser une orthographe différente, il est constructif pour la communauté de s'assurer que les utilisateurs de la nouvelle orthographe sont encore capables de comprendre les écrits dans d'autres orthographies et de développer une méthode pour convertir facilement ces textes (Person, 2009).
In this paper, we investigate and compare the usefulness of finite-state transducers (FSTs) and long short-term memory neural networks (LSTMs) for the to the task of converting a prior orthography for the Bàsàá language to the current standard, with the conclusion that LSTMs slightly outperform FSTs in the absence of lexical information.
Dans cet article, nous étudions et comparons l'utilité des transducteurs à états finis (FSTs) et des réseaux de neurones à mémoire à long terme (LSTMs) pour la tâche de conversion d'une orthographe antérieure de la langue Bàsàá à la norme actuelle, avec la conclusion que les LSTMs surpassent légèrement les FSTs en l'absence d'informations lexicales.
2 Bàsàá
2 Bàsàá
Bàsàá is a Bantu language spoken by approximately 300,000 speakers in Cameroon (Eberhard et al., 2022). While it has many characteristic features of a Bantu language, it is commonly perceived to have more syllable structure variation and flexibility in noun classes when compared with other Bantu languages, as discussed in Section 2.1. The history of Bàsàá also accounts for a variety of writing systems from different missionaries and different standardization efforts, as outlined in Section 2.2.
Le bàsàá est une langue bantoue parlée par environ 300 000 locuteurs au Cameroun (Eberhard et al., 2022). Bien qu'elle présente de nombreuses caractéristiques typiques d'une langue bantoue, elle est généralement perçue comme ayant une plus grande variation et flexibilité dans la structure des syllabes et les classes nominales par rapport aux autres langues bantoues, comme discuté dans la section 2.1. L'histoire du Bàsàá rend également compte d'une variété de systèmes d'écriture provenant de différents missionnaires et de différents efforts de standardisation, comme décrit dans la section 2.2.

Figure 1: Map depicting the primary regions where Bàsàá is spoken: southern, central and littoral Cameroon. (Njock, 2019)
Figure 1 : Carte représentant les principales régions où le Bàsàá est parlé : le sud, le centre et le littoral du Cameroun. (Njock, 2019)
2.1 Linguistic Profile
2.1 Profil linguistique
A phonetic inventory of Bàsàá is laid out in Makasso and Lee (2015), which includes 7 phonemic vowels (see Figure 2) with short-long contrasts and 30 consonants (see Figure 3). Additionally, Bàsàá utilizes a high-low tone system. While it is a Bantu language, it atypically allows for closed syllable structure in addition to open syllable structure. Although it does have a noun class system, the surface distinctions between the classes are sometimes neutralized. Nouns are not required to start with a consonantal onset and verbs are not required to end in a vowel. These factors result in a higher diversity of permissible syllable structures in Bàsàá when compared with other Bantu languages (Hyman, 2003).
Un inventaire phonétique du bàsàá est présenté dans Makasso et Lee (2015), qui comprend 7 voyelles phonémiques (voir Figure 2) avec des contrastes courts-longs et 30 consonnes (voir Figure 3). De plus, le Bàsàá utilise un système de tons haut-bas. Bien qu'il s'agisse d'une langue bantoue, elle autorise de manière atypique une structure de syllabe fermée en plus de la structure de syllabe ouverte. Bien qu'elle possède un système de classes nominales, les distinctions de surface entre les classes sont parfois neutralisées. Les noms ne sont pas obligés de commencer par une attaque consonantique et les verbes ne sont pas obligés de se terminer par une voyelle. Ces facteurs entraînent une plus grande diversité de structures syllabiques permises en Bàsàá par rapport aux autres langues bantoues (Hyman, 2003).

Figure 2: Vowel inventory in Bàsàá (Makasso and Lee, 2015). [ɛ] and [ɔ] are contrasted with [o] and [e] by diacritics in the missionary orthographies
Figure 2: Inventaire des voyelles en Bàsàá (Makasso et Lee, 2015) [ɛ] et [ɔ] sont contrastées avec [o] et [e] par des signes diacritiques dans les orthographes missionnaires
2.2 Orthographic History
2.2 Histoire orthographique
The orthographic history of Bàsàá contains multiple writing systems as English, German, and French colonialists who transcribed the language chose different methods of representation. The alphabets created for Bàsàá, and for many of the languages of Cameroon, were primarily influenced by the first languages of the transcriptionists, commonly French, English, or German, and often failed to properly mark important contrasts in the language (Bird, 2001). The two most prominent orthographies established prior to the current one are attributed to Protestant missionaries and Catholic missionaries and are referred to in this paper as the Protestant and Catholic orthographies, neither of which marked tone.
L'histoire orthographique du Bàsàá contient plusieurs systèmes d'écriture, car les coloniaux anglais, allemands et français qui ont transcrit la langue ont choisi différentes méthodes de représentation. Les alphabets créés pour le bàsàá, et pour de nombreuses langues du Cameroun, ont été principalement influencés par les langues maternelles des transcripteurs, généralement le français, l'anglais ou l'allemand, et ont souvent omis de marquer correctement des contrastes importants dans la langue (Bird, 2001). Les deux orthographes les plus importantes établies avant l'actuelle sont attribuées à des missionnaires protestants et catholiques et sont appelées dans cet article orthographes protestante et catholique, aucune d'entre elles n'ayant de ton marqué.
While the first attempt to implement a standard writing system, using an orthography developed for Western African language in Bamako (United Nations Educational and Organization, 1966), wasn't successful, a national committee was established to develop a writing system that would facilitate a pan-Cameroonian literacy in all the languages of the country. Central to this endeavor was the establishment of a system that could capture all of the contrasting sounds across Cameroonian languages. The inclusion of all contrasts would allow any literate speaker of a Cameroonian language to read and pronounce the words of a text in any of the languages of Cameroon, irrespective of comprehension (Hartell, 1993).
Alors que la première tentative de mise en œuvre d'un système d'écriture standard, utilisant une orthographe développée pour les langues ouest-africaines à Bamako (Organisation des Nations Unies pour l'éducation, la science et la culture, 1966), n'a pas été couronnée de succès, un comité national a été mis en place pour développer un système d'écriture qui faciliterait une alphabétisation pan-camerounaise dans toutes les langues du pays. Au centre de cette entreprise était la mise en place d'un système qui pourrait capturer tous les sons contrastés à travers les langues camerounaises. L'inclusion de tous les contrastes permettrait à tout locuteur alphabétisé d'une langue camerounaise de lire et de prononcer les mots d'un texte dans n'importe laquelle des langues du Cameroun, indépendamment de la compréhension (Hartell, 1993).
The national effort culminated in the establishment of the General Alphabet of the Cameroonian Languages (AGLC) by the National Committee for the Unification and Harmonisation of the Alphabets of Cameroon Languages in 1979 (Maurice Tadadjeu, 1979). The characters of this alphabet are predominately Latin, and thus similar to the English, German, and French alphabets, however the alphabet integrates symbols from the International Phonetic Alphabet to fully represent the phonetic inventory of Cameroonian languages. The symbols in the full AGLC are listed in Table 1.
L'effort national a abouti à l'établissement de l'Alphabet Général des Langues du Cameroun (AGLC) par le Comité National pour l'Unification et l'Harmonisation des Alphabets des Langues du Cameroun en 1979 (Maurice Tadadjeu, 1979). Les caractères de cet alphabet sont principalement latins, et donc similaires aux alphabets anglais, allemand et français, cependant l'alphabet intègre des symboles de l'Alphabet Phonétique International pour représenter pleinement l'inventaire phonétique des langues camerounaises. Les symboles de l'AGLC complet sont listés dans le Tableau 1.

Figure 3: Consonant inventory in Bàsàá (Makasso and Lee, 2015).
Figure 3 : Inventaire des consonnes en Bàsàá (Makasso et Lee, 2015).

Table 1: Alphabet of the Cameroonian Languages. The AGLC alphabet was designed to work as a unifying and intelligible alphabet for speakers of all Cameroonian language.
Tableau 1: Alphabet des langues camerounaises. L'alphabet AGLC a été conçu pour fonctionner comme un alphabet unificateur et intelligible pour les locuteurs de toutes les langues camerounaises.
Bàsàá utilizes a subset of this system in accordance with the language's phonetic contrasts. Latin letters are used alongside ɓ, ŋ, ɛ, and ɔ with acute, grave, and circumflex accents to denoting tone. While this orthography is supported by the Academy of Languages of Cameroon, the former missionary orthographies are still used by some speakers and are generally used in earlier texts written in Bàsàá, necessitating a method of conversion of missionary orthographies to the AGLC standard.
Bàsàá utilise un sous-ensemble de ce système en accord avec les contrastes phonétiques de la langue. Les lettres latines sont utilisées aux côtés de ɓ, ŋ, ɛ et ɔ avec des accents aigus, graves et circonflexes pour indiquer le ton. Bien que cette orthographe soit soutenue par l'Académie des langues du Cameroun, les anciennes orthographes missionnaires sont encore utilisées par certains locuteurs et sont généralement utilisées dans les textes antérieurs écrits en Bàsàá, nécessitant une méthode de conversion des orthographes missionnaires au standard AGLC.
Comparing the three writing systems, the first major discrepancy is found in tone marking and vowels. The Protestant and Catholic writing systems do not mark tone, but instead use acute, grave, and circumflex accents to mark different vowels. The Protestant system represents [e] by using an acute accent mark, é, while a [ɛ] is represented by a plain e. Likewise, the Protestant system uses the circumflexed ô, to mark [o], but a plain o in the orthography represents [ɔ]. On the other hand, the Catholic orthography marks [ɛ] and [ɔ] by è and ò, while the plain e and o represent [e] and [o]. However, in the AGLC orthography, acute, grave, and circumflex accents are used to represent tone and the ɛ and ɔ are already contrasted in the orthography by the addition of the symbols ɛ and ɔ. Tone is also marked on syllabic nasal consonants in the AGLC system.
En comparant les trois systèmes d'écriture, la première différence majeure se trouve dans le marquage des tons et des voyelles. Les systèmes d'écriture protestants et catholiques ne marquent pas les tons, mais utilisent plutôt des accents aigus, graves et circonflexes pour marquer différentes voyelles. Le système protestant représente [e] en utilisant un accent aigu, é, tandis qu'un [ɛ] est représenté par un e simple. De même, le système protestant utilise le ô circonflexe, pour marquer [o], mais un o simple dans l'orthographe représente [ɔ]. D'autre part, l'orthographe catholique marque [ɛ] et [ɔ] par è et ò, tandis que les simples e et o représentent [e] et [o]. Cependant, dans l'orthographe AGLC, les accents aigu, grave et circonflexe sont utilisés pour représenter le ton et les ɛ et ɔ sont déjà contrastés dans l'orthographe par l'ajout des symboles ɛ et ɔ. Le ton est également marqué sur les consonnes nasales syllabiques dans le système AGLC.
The consonants in the orthography also require consideration in the conversion process. The [ɓ] and [ŋ] sounds are represented by b and ñ in the missionary orthographies, while the AGLC orthography distinguishes [b] from [ɓ] with the characters b and ɓ. Instead of ñ, the [ŋ] is represented by ŋ in the AGLC orthography. In addition to these consonants, the missonary orthographies transcribe the sound tʃ as tj, the AGLC system uses c. One sentence is presented in the three orthographies below to exemplify some of the differences in the orthographies.
Les consonnes dans l'orthographe nécessitent également une considération dans le processus de conversion. Les sons [ɓ] et [ŋ] sont représentés par b et ñ dans les orthographes missionnaires, tandis que l'orthographe AGLC distingue [b] de [ɓ] avec les caractères b et ɓ. Au lieu de ñ, le [ŋ] est représenté par ŋ dans l'orthographe AGLC. En plus de ces consonnes, les orthographes missonnaires transcrivent le son t en tj, le système AGLC utilise c. Une phrase est présentée dans les trois orthographes ci-dessous pour illustrer certaines des différences entre les orthographes.
AGLC: Mɛ̀ yè lɛ mɛ ɓɔl nyɔɔ̄ nì màkòò.
Protestant: Me yé le me bol nyoo ni makôô.
Catholic: Mè ye lè mè bòl nyòò ni makoo.
3 Prior work
3 Travaux antérieurs
Negotiation between orthographies is a common issue in many languages, and as such a number of previous studies have explored techniques to aid in orthographic conversion and/or normalization. This work builds on existing research describing the Bàsàá language and the use of natural language processing for low-resource languages. This section outlines existing work on Bàsàá in Section 3.1, Finite State Transducers (FST) in Section 3.2, and Long Short-term Memory (LSTM) networks in Section 3.3. While research concerning FSTs and LSTM networks in low-resource settings is extensive, this section focuses on examples that closely mirror the goals of this paper.
La négociation entre les orthographes est un problème courant dans de nombreuses langues, et à ce titre, un certain nombre d'études précédentes ont exploré des techniques pour aider à la conversion et/ou à la normalisation orthographique. Ce travail s'appuie sur des recherches existantes décrivant la langue Bàsàá et l'utilisation du traitement du langage naturel pour les langues à faibles ressources. Cette section présente les travaux existants sur le Bàsàá dans la section 3.1, les transducteurs à états finis (FST) dans la section 3.2, et les réseaux Long Short-term Memory (LSTM) dans la section 3.3. Bien que la recherche concernant les FST et les réseaux LSTM en contexte peu doté soit vaste, cette section se concentre sur des exemples qui reflètent étroitement les objectifs de cet article.
3.1 Research on Bàsàá
3.1 Recherche sur le Bàsàá
Existing work on Bàsàá has profiled the linguistic inventory of the language (Makasso and Lee, 2015; Hyman, 2003), generated dictionaries (Lemb and de Gastines, 1973), designed learning materials (Moreton et al., 1968), and, more recently, facilitated the development of resources that integrate computational and NLP methods with Bàsàá to enhance the resources available for documentation, such as the bilingual speech corpus developed to assist in automatic phonetic transcription (Hamlaoui et al., 2018).
Les travaux existants sur le Bàsàá ont profilé l'inventaire linguistique de la langue (Makasso et Lee, 2015; Hyman, 2003), généré des dictionnaires (Lemb et de Gastines, 1973), conçu du matériel d'apprentissage (Moreton et al., 1968) et, plus récemment, facilité le développement de ressources qui intègrent des méthodes computationnelles et de TAL avec le Bàsàá pour améliorer les ressources disponibles pour la documentation, comme le corpus oral bilingue développé pour aider à la transcription phonétique automatique (Hamlaoui et al., 2018).
Nikitin et al. (2022) approaches the task of orthography conversion in Bàsàá by using Bidirectional Encoder Representations from Transformers (BERT), which often performs well due to the large amount of resources and training that went into the model. However, for this task, BERT was only able to beat the baseline after extensive pre-processing of the text. The importance of extensive pre-processing the text and only marginally better performance than the baseline suggests that BERT is not well-suited to this task.
Nikitin et al. (2022) aborde la tâche de conversion d'orthographe en Bàsàá en utilisant Bidirectional Encoder Representations from Transformers (BERT), qui fonctionne souvent bien en raison de la grande quantité de ressources et d'entraînement qui a été consacrée au modèle. Cependant, pour cette tâche, BERT n'a pu surpasser le modèle de base qu'après un prétraitement approfondi du texte. L'importance du pré-traitement extensif du texte et les performances légèrement meilleures que la ligne de base suggèrent que BERT n'est pas bien adapté à cette tâche.
3.2 Finite State Transducers
3.2 Transducteurs à états finis
Finite State Transducers (FST) work as a translator between a set of input strings and a set of output strings. In the case of language, the input string can utilize linguistic rules and produce an output that adheres to those rules. As the input of the FST relies on linguistic rules, the model often performs well in low-resource environments, as the models do not rely on large amounts of training data or computational resources. While FST models require some amount of linguistic or computational efforts to build, various tools have been created which automate various parts of the process to help alleviate these boundaries (Khanna et al., 2021), although the performance of FST models benefits greatly from the generation of detailed, language-specific rules.
Les transducteurs à états finis (FST) fonctionnent comme un traducteur entre un ensemble de chaînes d'entrée et un ensemble de chaînes de sortie. Dans le cas des langues, la chaîne d'entrée peut utiliser des règles linguistiques et produire une sortie qui respecte ces règles. Comme l'entrée du FST repose sur des règles linguistiques, le modèle fonctionne souvent bien dans des environnements à faibles ressources, car les modèles ne reposent pas sur de grandes quantités de données d'entraînement ou de ressources de calcul. Alors que les modèles FST nécessitent un certain nombre d'efforts linguistiques ou informatiques à construire, divers outils ont été créés qui automatisent diverses parties du processus pour aider à atténuer ces limites (Khanna et al., 2021), bien que les performances des modèles FST bénéficient grandement de la génération de règles détaillées et spécifiques à la langue.
In general, FSTs do not necessarily specify a unique mapping between input and output strings, which can cause problems for tasks like orthography conversion that generally need a single output. This can be addressed by adding additional rules to constrain the transducer. However, if determining appropriate rules is difficult and a corpus is available, it can also be addressed by adding weights, which are scores that can be applied either to a whole-word input-output pair or to a subword mapping. Then, for a given input, each output has a weight equal to the sum of all the applicable weights derived from the corpus, with only the form with the lowest total being output.
En général, les FST ne spécifient pas nécessairement un mappage unique entre les chaînes d'entrée et de sortie, ce qui peut causer des problèmes pour des tâches comme la conversion orthographique qui nécessitent généralement une seule sortie. Cela peut être résolu en ajoutant des règles supplémentaires pour contraindre le transducteur. Toutefois, si la détermination de règles appropriées est difficile et qu'un corpus est disponible, on peut également y remédier en ajoutant des poids, qui sont des scores pouvant être appliqués soit à une paire entrée-sortie de mots entiers, soit à une cartographie de sous-mots. Ensuite, pour une entrée donnée, chaque sortie a un poids égal à la somme de tous les poids applicables dérivés du corpus, seule la forme avec le total le plus bas étant sortie.
FSTs have been implemented in many low-resource settings, as well as for the application of orthographic conversion, transliteration, and text normalization. Washington et al. (2021) developed a transducer to assist in orthographic conversion and morphological analysis of Zapotec and found that even an incomplete transducer could yield positive results. Similar efforts use an FST to develop a morphological generator and analyzer while simultaneously addressing the issue of missing diacritics (Alkhairy et al., 2020), demonstrating the easy expansion of an FST to create more resources for a language. Manohar et al. (2022) extend the use of FSTs to text-to-speech (TTS) applications in low-resource settings, generating a model that converts between Malayalam phonemes and graphemes.
Les FST ont été implémentés dans de nombreux contextes peu dotés, ainsi que pour l'application de conversion orthographique, de translittération et de normalisation de texte. Washington et al. (2021) ont développé un transducteur pour aider à la conversion orthographique et à l'analyse morphologique de Zapotec et ont constaté que même un transducteur incomplet pouvait donner des résultats positifs. Des efforts similaires utilisent un FST pour développer un générateur et un analyseur morphologiques tout en abordant simultanément le problème des diacritiques manquants (Alkhairy et al., 2020), démontrant la facilité d'expansion d'un FST pour créer plus de ressources pour une langue. Manohar et al. (2022) étendent l'utilisation des FST aux applications de synthèse vocale de texte (TTS) en contexte peu doté, en générant un modèle qui convertit entre les phonèmes et les graphèmes du malayalam.
While the use of FSTs in low-resource settings is well-attested, the inclusion of tones has proven difficult. Ngué Um et al. (2022) built an FST for Ewondo, a Cameroonian language. In this study, the ambiguous nature of combined versus combining tone markings produces difficulty for the analyzer. While both the combined and combining accents can be analyzed by the FST, it results in errors in the morphological generation. An expansion of the FST for Bàsàá would also need to address this issue.
Bien que l'utilisation des FST dans les contextes peu dotés soit bien attestée, l'inclusion des tons s'est avérée difficile. Ngué Um et al. (2022) ont construit un FST pour l’ewondo, une langue camerounaise. Dans cette étude, la nature ambiguë des marques de tons combinées par rapport aux tons combinants pose des difficultés pour l'analyseur. Bien que les accents combinés et combinants puissent être analysés par le FST, cela entraîne des erreurs dans la génération morphologique. Un élargissement de la TSF pour Bàsàá devrait également aborder cette question.
3.3 Long Short-Term Memory Networks
3.3 Réseaux de mémoire longue à court terme
The LSTM is a recurrent neural network architecture that allows information about long-term dependencies to be incorporated, providing additional context for the generation of the output. LSTM networks have been applied to many deep learning tasks, such as machine translation, optical character recognition (OCR), and speech recognition.
La LSTM est une architecture de réseau neuronal récurrent qui permet d'incorporer des informations sur les dépendances à long terme, fournissant un contexte supplémentaire pour la génération de la sortie. Les réseaux LSTM ont été appliqués à de nombreuses tâches d'apprentissage profond, telles que la traduction automatique, la reconnaissance optique de caractères (OCR) et la reconnaissance automatique de la parole.
LSTMs have been combined with OCR tasks to assist languages in digitization and orthographic normalization of historic texts. Azawi et al. (2013) found that LSTMs perform well for the conversion of German historic texts as they are able to handle unseen examples. Similarly, Simistira et al. (2015) found using LSTMs for OCR produces a lower character error rate than leading methods of OCR for Greek polytonic script.
Les LSTM ont été combinés avec des tâches OCR pour aider les langues à la numérisation et à la normalisation orthographique des textes historiques. Azawi et al. (2013) ont constaté que les LSTMs fonctionnent bien pour la conversion de textes historiques allemands, car elles sont capables de gérer des exemples non vus. De même, Simistira et al. (2015) ont constaté que l'utilisation de LSTM pour l'OCR produit un taux d'erreur de caractère inférieur aux principales méthodes d'OCR pour l'écriture polytonique grecque.
Additionally, LSTMs have recently gained popularity for their utility in TTS tasks, such as grapheme-to-phoneme conversion. Adriana (2019), Liu et al. (2018), and Behbahani et al. (2016) successfully implemented LSTM models for grapheme-to-phoneme conversion in Romanian, Mongolian, and Persian.
En outre, les LSTM ont récemment gagné en popularité pour leur utilité dans les tâches TTS, telles que la conversion graphème-phonème. Adriana (2019), Liu et al. (2018) et Behbahani et al. (2016) ont mis en œuvre avec succès des modèles LSTM pour la conversion grapheme-à-phonème en roumain, mongol et persan.
4 Methodology
4 Méthodologie
This paper compares the accuracy of a Finite State Transducer (FST), a weighted FST, and a Long Short-term Memory (LSTM) model for the task of orthographic conversion of Bàsàá. Section 4.1 describes the data the models trained on, Section 4.2 describes the simple baseline metric used for comparison, Section 4.3 explains the use of an unweighted FST, Section 4.4 details the implementation of the weighted FST, and Section 4.5 outlines the LSTM model.
Cet article compare l'exactitude d'un transducteur à états finis (FST), d'un FST pondéré et d'un modèle de mémoire à long court terme (LSTM) pour la tâche de conversion orthographique du Bàsàá. La section 4.1 décrit les données sur lesquelles les modèles ont été entraînés, la section 4.2 décrit la mesure de référence simple utilisée pour la comparaison, la section 4.3 explique l'utilisation d'un FST non pondéré, la section 4.4 détaille l'implémentation du FST pondéré et la section 4.5 décrit le modèle LSTM.
4.1 Data
4.1 Données
The methods in this study use a text corpus comprised of 12,000 sentences in the Protestant orthography together with transliterations into the AGLC orthography. Of these sentences, 10,000 are used for training, 1,000 for validation, and 1,000 for testing. Pre-processing of the text consisted of lower-casing the characters.
Les méthodes de cette étude utilisent un corpus de textes composé de 12 000 phrases dans l'orthographe protestante ainsi que des translittérations dans l'orthographe AGLC. Parmi ces phrases, 10 000 sont utilisées pour l'entraînement, 1 000 pour la validation et 1 000 pour le test. Le prétraitement du texte consistait à mettre les caractères en minuscules.
4.2 Baseline
4.2 Ligne de base
The baseline searches the target sentences for the most frequent translation of a source word and replaces the source word with that token. In the event that the source word does not appear in the data, the source word is output in its original form without conversion. The baseline here is a naïve approach to the problem, but is representative of the current lack of existing work on orthographic conversion in the language.
La baseline recherche dans les phrases cibles la traduction la plus fréquente d'un mot source et remplace le mot source par ce jeton. Dans le cas où le mot source n'apparaît pas dans les données, le mot source est sorti sous sa forme originale sans conversion. La ligne de base ici est une approche naïve du problème, mais est représentative du manque actuel de travaux existants sur la conversion orthographique dans la langue.
4.3 Unweighted FST
4.3 TSF non pondérée
The unweighted FST consists of a set of character mappings compiled using the lexicon compiler Lexd (Swanson and Howell, 2021) which includes every pair of source and target characters found in the training data. Mapping each character individually and without context creates a large number of output forms, which we resolve by selecting a single output form at random. Additionally, we added four rules which restrict the output in cases where the phonological context is unambiguous. Specifically, that nasals will never have a tone diacritic in the AGLC orthography if they precede a vowel (this is 3 rules, one each for m, n, and ŋ), and that where the missionary orthography has tj the AGLC orthography will always have c (as opposed to converting the t and the j separately as tj).
Le FST non pondéré consiste en un ensemble de mappages de caractères compilés à l'aide du compilateur de lexique Lexd (Swanson et Howell, 2021) qui inclut chaque paire de caractères source et cible trouvés dans les données d'entraînement. Le mappage de chaque caractère individuellement et sans contexte crée un grand nombre de formes de sortie, que nous résolvons en sélectionnant une seule forme de sortie au hasard. De plus, nous avons ajouté quatre règles qui restreignent la sortie dans les cas où le contexte phonologique est non ambigu. Spécifiquement, que les nasales n'auront jamais un ton diacritique dans l'orthographe AGLC si elles précèdent une voyelle (ce sont 3 règles, une pour chacun m, n et ), et que là où l'orthographe missionnaire a tj l'orthographe AGLC aura toujours c (par opposition à convertir le t et le j séparément comme tj).
4.4 Weighted FST
4.4 TSF pondérée
Where the unweighted FST treats every mapping as equally probable, the weighted FST sets a weight for each path which has been seen in the training data, with more frequent source-target pairs receiving lower (better) weights. Then, rather than selecting randomly, the output with the lowest weight is used.
Là où le FST non pondéré traite chaque correspondance comme également probable, le FST pondéré attribue un poids à chaque chemin qui a été observé dans les données d'entraînement, les paires source-cible plus fréquentes recevant des poids plus faibles (meilleurs). Ensuite, plutôt que de sélectionner au hasard, la sortie avec le poids le plus bas est utilisée.
4.5 Neural seq2seq model
4.5 Modèle neural seq2seq
Following previous work that has shown that character-based neural seq2seq architectures perform well for orthographic normalization and conversion (Rosca and Breuel, 2016; Orife, 2018), we trained an encoder-decoder model with global attention (Luong et al., 2015) to convert missionary orthographies into the AGLC orthography. Both the encoder and decoder are unidirectional Long short-term memory networks (Hochreiter and Schmidhuber, 1997) consisting of 2 layers of 1,000 hidden units each. We used the OpenNMTpy library (Klein et al., 2020) to train the model and generate predictions on the held-out datasets.
Suite à des travaux antérieurs qui ont montré que les architectures neuronales seq2seq basées sur les caractères fonctionnent bien pour la normalisation et la conversion orthographiques (Rosca et Breuel, 2016; Orife, 2018), nous avons entraîné un modèle encodeur-décodeur avec attention globale (Luong et al., 2015) pour convertir les orthographes missionnaires en orthographe AGLC. L'encodeur et le décodeur sont tous deux des réseaux unidirectionnels à mémoire à long et court terme (Hochreiter et Schmidhuber, 1997) composés de 2 couches de 1 000 unités cachées chacune. Nous avons utilisé la bibliothèque OpenNMTpy (Klein et al., 2020) pour entraîner le modèle et générer des prédictions sur les ensembles de données présentés.
5 Results
5 Résultats
We compare the four systems using word- and character-error rates (WER and CER). WER and CER are calculated automatically by comparing the outputs of each of the systems to the output of the target file. Following the presentation of WER and CER for each of the systems, we provide examples of the output from each model. Information on the differences in orthographical representation for the source and target texts can be found in Section 2.2.
Nous comparons les quatre systèmes en utilisant les taux d'erreur de mot et de caractère (WER et CER). WER et CER sont calculés automatiquement en comparant les sorties de chacun des systèmes à la sortie du fichier cible. Suite à la présentation de WER et CER pour chacun des systèmes, nous fournissons des exemples des résultats de chaque modèle. Des informations sur les différences de représentation orthographique des textes source et cible se trouvent dans la section 2.2.
5.1 Word- and Character-error Rates
5.1 Taux d'erreur de mots et de caractères
Results of all systems apart from the unweighted FST were relatively similar, with baseline model performing better than both the FST systems and on par with the seq2seq model. The seq2seq model achieved the best character-error rate, while the baseline shows a marginally better word-error rate. This can be explained by the fact that the baseline operates at the word level. Thus, a mistake results in selecting the wrong word form, which likely has multiple characters that are different than the correct word form. The seq2seq model, on the other hand, predicts at a character level, and may make only a single character error in a word, such as a missed tonal diacritic.
Les résultats de tous les systèmes, à l'exception du FST non pondéré, étaient relativement similaires, le modèle de référence étant plus performant que les deux systèmes FST et égal au modèle seq2seq. Le modèle seq2seq a obtenu le meilleur taux d'erreur de caractères, tandis que la référence affiche un taux d'erreur de mots légèrement meilleur. Cela peut s'expliquer par le fait que la ligne de base fonctionne au niveau du mot. Ainsi, une erreur entraîne la sélection de la mauvaise forme de mot, qui a probablement plusieurs caractères différents de la forme de mot correcte. Le modèle seq2seq, en revanche, prédit au niveau des caractères et peut ne commettre qu'une seule erreur de caractère dans un mot, comme un diacritique tonal manqué.

Table 2: Comparison between the 4 models.
Tableau 2: Comparaison entre les 4 modèles.
5.2 Error Analysis
5.2 Analyse des erreurs
To better understand the performance of these models, we present examples of outputs of the models for three different sentences and discuss which errors are common for each of the models. The examples are taken from the development set output for each of the models.
Pour mieux comprendre les performances de ces modèles, nous présentons des exemples de résultats des modèles pour trois phrases différentes et discutons des erreurs communes à chacun des modèles. Les exemples sont tirés de la sortie de l'ensemble de développement pour chacun des modèles.

Table 3
Tableau 3
In the sentences in Table 3, we see that the FSTs have a tendency to overgenerate the letter ŋ when the source orthography has an n. Additionally, it shows that the LSTM network is successful in generating the tone of a syllabic nasal. While the baseline often can predict tone on a syllabic nasal, this token is not in the training data, so the baseline just outputs the original token.
Dans les phrases du tableau 3, on observe que les FST ont tendance à surgénérer la lettre ŋ lorsque l'orthographe source contient un n. De plus, il montre que le réseau LSTM réussit à générer le ton d'une nasale syllabique. Bien que la référence puisse souvent prédire le ton sur une nasale syllabique, ce token n'est pas dans les données d'entraînement, donc la référence produit simplement le token d'origine.
The sentences in Table 4 show that the most systems are able to understand that the accents in the source orthography are not indicative of an accent on the target orthography. However, the unweighted FST tends towards adding accents even in the absence of accents in the target form. Overall, we see the LSTM perform well on the assignm nt of tone and characters in this example, with the baseline being almost perfect apart from the tone on the second token.
Les phrases du tableau 4 montrent que la plupart des systèmes sont capables de comprendre que les accents dans l'orthographe source ne sont pas indicatifs d'un accent sur l'orthographe cible. Cependant, le FST non pondéré tend à ajouter des accents même en l'absence d'accents dans la forme cible. Dans l'ensemble, nous voyons le LSTM bien performer sur le assignm nt de ton et de caractères dans cet exemple, la ligne de base étant presque parfaite en dehors du ton sur le deuxième jeton.

Table 4
Tableau 4

Table 5
Tableau 5
In the sentences in Table 5, although the LSTM comes close, it is not able to identify the rising tone in the first token and marks the tone of the second token as mid. The weighted and unweighted FST correctly predict the characters, but otherwise are very inconsistent with tone diacritics, although it is evident that the weighted FST outperforms the unweighted FST.
Dans les phrases du tableau 5, bien que le LSTM se rapproche, il n'est pas capable d'identifier le ton ascendant dans le premier jeton et marque le ton du deuxième jeton comme étant au milieu. La FST pondérée et la FST non pondérée prédisent correctement les caractères, mais sont très incohérentes avec les diacritiques tonales, bien qu'il soit évident que la FST pondérée surpasse la FST non pondérée.
6 Conclusion
6 Conclusion
The results of this paper contribute to the discussion concerning the relative benefits of NLP methods versus more simplistic baselines in low-resource settings. The baseline outperforms the unweighted and weighted FSTs and LSTM network in regards to WER. As Bàsàá is a tone language, changes in the tone of one character can create minimal pairs and thus WER is a more realistic metric for evaluating the utility of a model. However, the baseline simply outputs the original word for any out-of-vocabulary (OOV) tokens, meaning that the performance of the baseline is strongly impacted by OOV tokens. While this has a minimal impact on this dataset, a dataset with more OOV tokens would perform worse.
Les résultats de cet article contribuent à la discussion concernant les avantages relatifs des méthodes NLP par rapport à des lignes de base plus simplistes dans des contextes à faibles ressources. Le baseline surpasse les FST non pondérés et pondérés ainsi que le réseau LSTM en ce qui concerne le WER. Comme le Bàsàá est une langue tonale, les changements de ton d'un caractère peuvent créer des paires minimales et ainsi le WER est une métrique plus réaliste pour évaluer l'utilité d'un modèle. Cependant, le baseline se contente de sortir le mot original pour tout token hors vocabulaire (OOV), ce qui signifie que la performance du baseline est fortement impactée par les tokens OOV. Bien que cela ait un impact minimal sur cet ensemble de données, un ensemble de données avec plus de jetons OOV serait moins performant.
While the baseline performs well on the Protestant orthography, it would likely perform even better on the Catholic orthography as it uses grave accent marks instead of acute accent marks. Although the Catholic and AGLC orthography use the grave accents to mark different things, the presence of grave marks in the target is much more likely than acute accent marks, which only appear when deconstructing rising and falling tones on long vowels. The method of handling OOV tokens would therefore perform better for a source text written in the Catholic orthography, as the probability of coincidentally having an output that matches the input form is much higher when the source orthography uses grave accents.
Bien que la ligne de base fonctionne bien sur l'orthographe protestante, elle fonctionnerait probablement encore mieux sur l'orthographe catholique car elle utilise des marques d'accent grave au lieu de marques d'accent aigu. Bien que l'orthographe catholique et AGLC utilisent les accents graves pour marquer différentes choses, la présence de marques graves dans la cible est beaucoup plus probable que les marques d'accent aigu, qui n'apparaissent que lors de la déconstruction des tons ascendants et descendants sur les longues voyelles. La méthode de gestion des tokens OOV fonctionnerait donc mieux pour un texte source écrit dans l'orthographe catholique, car la probabilité d'avoir par coïncidence une sortie qui correspond à la forme d'entrée est beaucoup plus élevée lorsque l'orthographe source utilise des accents graves.
In this paper, the unweighted and weighted FST were written using very minimal linguistic rules, which is evidenced in their relatively poor performance. The weighted FST greatly reduced the impact of the lack of detailed rules, but would clearly still benefit from their addition.
Dans cet article, les FST non pondérées et pondérées ont été écrites en utilisant des règles linguistiques très minimales, ce qui se traduit par leurs performances relativement médiocres. Le FST pondéré a grandement réduit l'impact du manque de règles détaillées, mais bénéficierait clairement encore de leur ajout.
This paper presents a preliminary investigation of the application of FSTs and LSTM networks to the topic of orthographic conversion. While the simplistic baseline performs surprisingly well for this dataset, we believe that the comparable performance of the weighted FST and LSTM network is promising and necessitates further development of these models, specifically the inclusion of more linguistic rules for the weighted FST and augmentation of the training data for the LSTM network.
Cet article présente une étude préliminaire de l'application des réseaux FST et LSTM au thème de la conversion orthographique. Bien que la ligne de base simpliste fonctionne étonnamment bien pour cet ensemble de données, nous croyons que la performance comparable du réseau FST pondéré et du réseau LSTM est prometteuse et nécessite un développement ultérieur de ces modèles, en particulier l'inclusion de règles linguistiques supplémentaires pour le FST pondéré et l'augmentation des données d'entraînement pour le réseau LSTM.
Limitations
Limites
This paper attempts to make a broader statements about the applicability of current NLP methods for text conversion by discussing the results of these models on Bàsàá. The case of Bàsàá is challenging as the representation of tones is difficult for many models. However, this study still benefits from the roman-based, alphabetic orthography of the language and the resources that are available to languages with a Latin-based, alphabetic orthography. Additionally, Bàsàá utilizes a transparent orthography that also facilitates automatic methods of conversion. Other results and challenges are likely to arise when applying these models to a language that utilizes a non-Latin-based, nonalphabetic, and/or opaque orthography.
Cet article tente de faire des déclarations plus larges sur l'applicabilité des méthodes actuelles de TAL pour la conversion de texte en discutant des résultats de ces modèles sur le Bàsàá. Le cas de Bàsàá est problématique car la représentation des tons est difficile pour de nombreux modèles. Cependant, cette étude bénéficie toujours de l'orthographe alphabétique romaine de la langue et des ressources disponibles pour les langues à orthographe alphabétique latine. De plus, Bàsàá utilise une orthographe transparente qui facilite également les méthodes automatiques de conversion. D'autres résultats et défis sont susceptibles de surgir lors de l'application de ces modèles à une langue qui utilise une orthographe non basée sur le latin, non alphabétique et/ou opaque.
As this project is intended to present a starting point for extended research on orthographic conversion, we have begun by providing an overall comparison and brief error analysis. However, we plan to implement a more systematic error analysis to guide future work. The current error analysis highlights some patterns that are observed in the data, but a more thorough review of the outputs will help in the development of the current system for Bàsàá.
Comme ce projet vise à présenter un point de départ pour des recherches approfondies sur la conversion orthographique, nous avons commencé par fournir une comparaison globale et une brève analyse des erreurs. Toutefois, nous prévoyons mettre en œuvre une analyse plus systématique des erreurs pour orienter les travaux futurs. L'analyse actuelle des erreurs met en évidence certains modèles observés dans les données, mais un examen plus approfondi des résultats aidera à l'élaboration du système actuel pour Bàsàá.
Ethics Statement
Déclaration éthique
The motivation of this work is to compare current NLP methods in a low-resource setting and discuss how the different systems might apply in different contexts based on the results, contributing overall to the discussion on how NLP methods can be used to benefit language communities and support the creation of more linguistic resources. While the hope is to support the language community, the integration of computational methods also poses the risk of language commodification and a dispossession of intellectual property of a community. This study is submitted with the belief that the current benefits associated with the application of this research outweigh this risk.
La motivation de ce travail est de comparer les méthodes actuelles de TAL dans un contexte peu doté et de discuter de la manière dont les différents systèmes pourraient s'appliquer dans différents contextes en fonction des résultats, contribuant globalement à la discussion sur la manière dont les méthodes de TAL peuvent être utilisées pour bénéficier aux communautés linguistiques et soutenir la création de davantage de ressources linguistiques. Bien que l'objectif soit de soutenir la communauté linguistique, l'intégration de méthodes computationnelles pose également le risque de marchandisation de la langue et d'une dépossession de la propriété intellectuelle d'une communauté. Cette étude est soumise avec la conviction que les avantages actuels associés à l'application de cette recherche l'emportent sur ce risque.
Acknowledgements
Remerciements
This research was supported in part by Lilly Endowment, Inc., through its support for the Indiana University Pervasive Technology Institute.
Cette recherche a été soutenue en partie par Lilly Endowment, Inc., grâce à son soutien pour l'Indiana University Pervasive Technology Institute.
References
Références
STAN Adriana. 2019. Input encoding for sequence-to-sequence learning of romanian grapheme-to-phoneme conversion. In 2019 International Conference on Speech Technology and Human-Computer Dialogue (SpeD), pages 1-6. IEEE.
Maha Alkhairy, Afshan Jafri, and David A Smith. 2020. Finite state machine pattern-root arabic morphological generator, analyzer and diacritizer. In Proceedings of the Twelfth Language Resources and Evaluation Conference, pages 3834-3841.
Jochen S Arndt. 2019. Engineered zuluness: Language, education, and ethnic identity in south africa, 1835-1990. The Journal of the Middle East and Africa, 10(3):211-235.
Mayce Al Azawi, Muhammad Zeshan Afzal, and Thomas M Breuel. 2013. Normalizing historical orthography for ocr historical documents using lstm. In Proceedings of the 2nd International Workshop on Historical Document Imaging and Processing, pages 80-85.
Yasser Mohseni Behbahani, Bagher Babaali, and Mussa Turdalyuly. 2016. Persian sentences to phoneme sequences conversion based on recurrent neural networks. Open Computer Science, 6(1):219-225.
Steven Bird. 2001. Orthography and identity in cameroon. Written Language & Literacy, 4(2):131-162.
David M. Eberhard, Gary F. Simons, and Charles D. Fennig. 2022. Ethnologue: Languages of the World, twenty-fifth edition. SIL International.
Fatima Hamlaoui, Emmanuel-Moselly Makasso, Markus Müller, Jonas Engelmann, Gilles Adda, Alex Waibel, and Sebastian Stüker. 2018. BUL-Basaa: A bilingual basaa-French speech corpus for the evaluation of language documentation tools. In Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC 2018), Miyazaki, Japan. European Language Resources Association (ELRA).
Rhonda L. Hartell. 1993. Alphabets of africa. SIL International.
Sepp Hochreiter and Jürgen Schmidhuber. 1997. Long short-term memory. Neural computation, 9(8):1735-1780.
Larry M Hyman. 2003. Basaá (a43). The Bantu languages, pages 257-282.
Carina Jahani. 1989. Standardization and orthography in the Balochi language. Ph.D. thesis, Acta Universitatis Upsaliensis.
Tanmai Khanna, Jonathan N Washington, Francis M Tyers, Sevilay Bayatlı, Daniel G Swanson, Tommi A Pirinen, Irene Tang, and Hèctor Alòs i Font. 2021. Recent advances in apertium, a free/open-source rule-based machine translation platform for low-resource languages. Machine Translation, 35(4):475-502.
Guillaume Klein, François Hernandez, Vincent Nguyen, and Jean Senellart. 2020. The opennmt neural machine translation toolkit: 2020 edition. In Proceedings of the 14th Conference of the Association for Machine Translation in the Americas (Volume 1: Research Track), pages 102-109.
Pierre Lemb and François de Gastines. 1973. Dictionnaire basaá-français, avec un préface par meinrad hebga edition. Collège Libermann, Douala.
Nicholas Limerick. 2018. Kichwa or quichua? competing alphabets, political histories, and complicated reading in indigenous languages. Comparative Education Review, 62(1):103-124.
Zhinan Liu, Feilong Bao, and Guanglai Gao. 2018. Mongolian grapheme to phoneme conversion by using hybrid approach. In Natural Language Processing and Chinese Computing: 7th CCF International Conference, NLPCC 2018, Hohhot, China, August 26-30, 2018, Proceedings, Part I 7, pages 40-50. Springer.
Minh-Thang Luong, Hieu Pham, and Christopher D Manning. 2015. Effective approaches to attention-based neural machine translation. arXiv preprint arXiv:1508.04025.
Emmanuel-Moselly Makasso and Seunghun J. Lee. 2015. Basaá. Journal of the International Phonetic Association, 45(1):7179.
Kavya Manohar, AR Jayan, and Rajeev Rajan. 2022. Mlphon: A multifunctional grapheme-phoneme conversion tool using finite state transducers. IEEE Access, 10:97555-97575.
Etienne Sadembouo Maurice Tadadjeu. 1979. Alphabet général des langues camerounaises / General Alphabet of Cameroon Languages. Université de Yaoundé, SIL Internationale, University of Yaoundé, SIL International.
Rebecca L Moreton et al. 1968. Cameroon basaa. Inspection copy available from Foreign Languages Program, Center for Applied Linguistics.
Ulrike Mosel. 2004. Dictionary making in endangered speech communities. Language documentation and description, 2:39-54.
Emmanuel Ngué Um, Émilie Eliette, Caroline Ngo Tjomb Assembe, and Francis Morton Tyers. 2022. Developing a rule-based machine-translation system, ewondo-french-ewondo. International Journal of Humanities and Arts Computing, 16(2):166-181.
Ilya Nikitin, Brian O'Connor, and Anastasia Safonova. 2022. Tone prediction and orthographic conversion for basaa. arXiv preprint arXiv:2210.06986.
Pierre Emmanuel. Njock. 2019. àsàa - French - English - German Dictionary. Dallas: Webonary.org.
Iroro Orife. 2018. Attentive sequence-to-sequence learning for diacritic restoration of yorùbá language text. In Interspeech.
Kirk R Person. 2009. Heritage scripts, technical transcriptions, and practical orthographies: a middle path towards educational excellence and cultural preservation for thailands ethnic minority languages. In Proceedings from the international conference on national language policy: Language diversity for national unity.
Mihaela Rosca and Thomas Breuel. 2016. Sequenceto-sequence neural network models for transliteration. arXiv preprint arXiv:1610.09565.
Fotini Simistira, Adnan Ul-Hassan, Vassilis Papavassiliou, Basilis Gatos, Vassilis Katsouros, and Marcus Liwicki. 2015. Recognition of historical greek polytonic scripts using lstm networks. In 2015 13th International Conference on Document Analysis and Recognition (ICDAR), pages 766-770. IEEE.
Daniel Swanson and Nick Howell. 2021. Lexd: A finite-state lexicon compiler for non-suffixational morphologies. In Mika Hämäläinen, Niko Partanen, and Khalid Alnajjar, editors, Multilingual Facilitation. University of Helsinki Library.
Scientific United Nations Educational and Cultural Organization. 1966. Meeting of a group of experts for the unification of alphabets of national languages. Bamako, Mali, 28 February 5 March 1966. Final report. United Nations Educational, Scientific and Cultural Organization, UNESCO.
Jonathan Washington, Felipe Lopez, and Brook Lillehaugen. 2021. Towards a morphological transducer and orthography converter for western tlacolula valley zapotec. In Proceedings of the First Workshop on Natural Language Processing for Indigenous Languages of the Americas, pages 185-193.
Comparing methods of orthographic conversion for Bàsàá, a language of Cameroon
Kulinganisha mbinu za ubadilishaji wa herufi kwa Bàsàá, lugha ya Kamerun
Affiliations
Alexandra O’Neil, Daniel Swanson
Emmanuel Ngué Um
Robert Pugh, Francis Tyers
University of Yaoundé
Indiana University
Yaoundé, Cameroon
Bloomington, IN USA
Taasisi
Alexandra O’Neil, Daniel Swanson
Emmanuel Ngué Um
Robert Pugh, Francis Tyers
University of Yaoundé
Indiana University
Yaoundé, Cameroon
Bloomington, IN USA
Abstract
Muhtasari
Orthographic standardization is a milestone in a language's documentation and the development of its resources. However, texts written in former orthographies remain relevant to the language's history and development and therefore must be converted to the standardized orthography. Ensuring a language has access to the orthographically standardized version of all of its recorded texts is important in the development of resources as it provides additional textual resources for training, supports contribution of authors using former writing systems, and provides information about the development of the language. This paper evaluates the performance of natural language processing methods, specifically Finite State Transducers and Long Short-term Memory networks, for the orthographical conversion of Bàsàá texts from the Protestant missionary orthography to the now-standard AGLC orthography, with the conclusion that LSTMs are somewhat more effective in the absence of explicit lexical information.
Usanifishaji wa tahajia ni hatua muhimu katika uhifadhi wa kumbukumbu za lugha na uendelezaji wa rasilimali zake. Hata hivyo, maandishi yaliyoandikwa kwa tahajia za zamani bado yana umuhimu kwa historia na maendeleo ya lugha na kwa hiyo lazima yabadilishwe kuwa tahajia sanifu. Kuhakikisha lugha inapata toleo la tahajia sanifu la maandishi yake yote yaliyorekodiwa ni muhimu katika uendelezaji wa rasilimali kwani hutoa rasilimali za ziada za kimaandishi kwa mafunzo, inasaidia mchango wa waandishi wanaotumia mifumo ya zamani ya uandishi, na hutoa taarifa kuhusu maendeleo ya lugha. Karatasi hii inatathmini utendaji wa mbinu za uchakataji wa lugha asilia, hasa Vigeuzi vya Hali ya Mwisho na mitandao ya LSTM, kwa ubadilishaji wa tahajia wa maandishi ya Kibàsàá kutoka tahajia ya kimisionari ya Kiprotestanti hadi tahajia sanifu ya sasa ya AGLC, kwa hitimisho kwamba LSTM zina ufanisi zaidi kwa kiasi fulani pale ambapo hakuna taarifa dhahiri za kileksika.
1 Introduction
1 Utangulizi
Orthographic standardization is a process that many languages of the world have undergone throughout history and many are still undergoing. Although there are numerous benefits to the standardization of a language's writing system, it can also present challenges for language communities. These challenges include contention between speakers that are used to using different representations, discomfort from speakers that relate to their language solely as an oral language, addressal and mitigation of the impact of colonialism on the language and community, debate about how to best represent sounds in the language, and hesitance in adoption of the writing system by all speakers (Limerick, 2018).
Usanifishaji wa tahajia ni mchakato ambao lugha nyingi za dunia zimepitia katika historia na nyingi bado zinaendelea kuupitia. Ingawa kuna faida nyingi za usanifishaji wa mfumo wa uandishi wa lugha, unaweza pia kuleta changamoto kwa jamii za lugha. Changamoto hizi ni pamoja na mabishano kati ya wazungumzaji ambao wamezoea kutumia uwakilishi tofauti, usumbufu kutoka kwa wazungumzaji wanaohusisha lugha yao kama lugha ya mazungumzo pekee, kushughulikia na kupunguza athari za ukoloni kwa lugha na jamii, mjadala kuhusu jinsi bora ya kuwakilisha sauti katika lugha, na kusitasita katika kupitishwa kwa mfumo wa uandishi na wazungumzaji wote (Limerick, 2018).
As referenced in the set of potential challenges above, communities often have differing means of representing their language prior to the coordinated effort to implement a uniform system (Mosel, 2004). While one of the goals of orthographic standardization is to create a consistent medium that speakers can use to understand one another and communicate their own thoughts, texts and data written in formerly used orthographies remain relevant in both the history and development of the language. To preserve this information it is necessary to convert former orthographies to the new standard. Furthermore, it is preferable to begin this process shortly following the standardization of the system, as this increases opportunity to work with speakers that are knowledgeable in the previously used systems.
Kama inavyorejelewa katika seti ya changamoto zinazowezekana hapo juu, jamii mara nyingi huwa na njia tofauti za kuwakilisha lugha yao kabla ya juhudi zilizoratibiwa za kutekeleza mfumo mmoja (Mosel, 2004). Ingawa moja ya malengo ya usanifishaji wa tahajia ni kuunda njia thabiti ambayo wazungumzaji wanaweza kutumia kuelewana na kuwasilisha mawazo yao wenyewe, maandiko na data yaliyoandikwa kwa tahajia zilizotumika awali yanabaki kuwa muhimu katika historia na maendeleo ya lugha. Ili kuhifadhi taarifa hii ni muhimu kubadilisha tahajia za zamani kuwa kiwango kipya. Zaidi ya hayo, ni vyema kuanza mchakato huu muda mfupi baada ya usanifishaji wa mfumo, kwani hii huongeza fursa ya kufanya kazi na wazungumzaji ambao wana ujuzi wa mifumo iliyotumika awali.
Additionally, conversion of former orthographies into the current standard is beneficial since some speakers may not be willing to switch to the new standard. For a period of time following the adoption of the new orthography, speakers may continue to use a variety of orthographies in their own writing, following whichever orthography they previously learned (Jahani, 1989). Some speakers may be compelled to continue to use a non-standard system due to an emotional attachment to an orthographic system. For example, reasons for maintaining an orthographic preference range from positive experience, such as associating a system with how one's grandparents taught them, to a reaction to a traumatic experience, such as psychologically and physically abusive school environments where one writing system was emphasized (Arndt, 2019). Regardless of a speaker's reason for continuing use of a different orthography, it is constructive to the community to ensure that users of the new orthography are still able to understand writings in other orthographies and develop a method to easily convert these texts (Person, 2009).
Vilevile, ubadilishaji wa tahajia za zamani kuwa kiwango cha sasa ni wa manufaa kwani baadhi ya wazungumzaji wanaweza kuwa hawako tayari kubadili kutumia kiwango kipya. Kwa kipindi fulani cha muda kufuatia kupitishwa kwa tahajia mpya, wazungumzaji wanaweza kuendelea kutumia aina mbalimbali za tahajia katika uandishi wao wenyewe, wakifuata tahajia yoyote waliyojifunza awali (Jahani, 1989). Baadhi ya wazungumzaji wanaweza kulazimika kuendelea kutumia mfumo usio wa kiwango kutokana na uhusiano wa kihisia na mfumo wa tahajia. Kwa mfano, sababu za kudumisha upendeleo wa tahajia huanzia uzoefu mzuri, kama vile kuhusisha mfumo na jinsi babu na nyanya walivyowafundisha, hadi mwitikio wa uzoefu wa kiwewe, kama vile mazingira ya shule yenye unyanyasaji wa kisaikolojia na kimwili ambapo mfumo mmoja wa uandishi ulisisitizwa (Arndt, 2019). Bila kujali sababu ya mzungumzaji kuendelea kutumia tahajia tofauti, ni jambo la kujenga kwa jamii kuhakikisha kwamba watumiaji wa tahajia mpya bado wanaweza kuelewa maandishi katika tahajia nyingine na kuendeleza mbinu ya kubadilisha maandiko haya kwa urahisi (Person, 2009).
In this paper, we investigate and compare the usefulness of finite-state transducers (FSTs) and long short-term memory neural networks (LSTMs) for the to the task of converting a prior orthography for the Bàsàá language to the current standard, with the conclusion that LSTMs slightly outperform FSTs in the absence of lexical information.
Katika makala haya, tunachunguza na kulinganisha umuhimu wa vipitishio vya hali ya kikomo (FSTs) na mitandao ya neva ya kumbukumbu fupi ndefu (LSTMs) kwa kazi ya kubadilisha tahajia ya awali ya lugha ya Bàsàá kuwa kiwango cha sasa, kwa hitimisho kwamba LSTMs hufanya vizuri kidogo kuliko FSTs pasipo taarifa za kileksika.
2 Bàsàá
2 Bàsàá
Bàsàá is a Bantu language spoken by approximately 300,000 speakers in Cameroon (Eberhard et al., 2022). While it has many characteristic features of a Bantu language, it is commonly perceived to have more syllable structure variation and flexibility in noun classes when compared with other Bantu languages, as discussed in Section 2.1. The history of Bàsàá also accounts for a variety of writing systems from different missionaries and different standardization efforts, as outlined in Section 2.2.
Bàsàá ni lugha ya Kibantu inayozungumzwa na takriban wazungumzaji 300,000 nchini Kamerun (Eberhard et al., 2022). Ingawa ina sifa nyingi bainifu za lugha ya Kibantu, kwa kawaida inachukuliwa kuwa na tofauti zaidi ya muundo wa silabi na unyumbufu katika ngeli ikilinganishwa na Lugha za Kibantu nyingine, kama inavyojadiliwa katika Sehemu ya 2.1. Historia ya Bàsàá pia inaelezea aina mbalimbali za mifumo ya uandishi kutoka kwa wamisionari tofauti na juhudi tofauti za usanifishaji, kama inavyoelezwa katika Sehemu ya 2.2.

Figure 1: Map depicting the primary regions where Bàsàá is spoken: southern, central and littoral Cameroon. (Njock, 2019)
Kielelezo 1: Ramani inayoonyesha maeneo ya msingi ambako Bàsàá inazungumzwa: kusini, kati na pwani ya Kamerun. (Njock, 2019)
2.1 Linguistic Profile
2.1 Maelezo ya lugha
A phonetic inventory of Bàsàá is laid out in Makasso and Lee (2015), which includes 7 phonemic vowels (see Figure 2) with short-long contrasts and 30 consonants (see Figure 3). Additionally, Bàsàá utilizes a high-low tone system. While it is a Bantu language, it atypically allows for closed syllable structure in addition to open syllable structure. Although it does have a noun class system, the surface distinctions between the classes are sometimes neutralized. Nouns are not required to start with a consonantal onset and verbs are not required to end in a vowel. These factors result in a higher diversity of permissible syllable structures in Bàsàá when compared with other Bantu languages (Hyman, 2003).
Orodha ya kifonetiki ya Bàsàá imewekwa wazi katika Makasso na Lee (2015), ambayo inajumuisha vokali 7 za kifonemiki (tazama Kielelezo 2) zenye utofautishaji wa kifupi-kirefu na konsonanti 30 (tazama Kielelezo 3). Zaidi ya hayo, Bàsàá hutumia mfumo wa toni ya juu-chini. Ingawa ni lugha ya Kibantu, inaruhusu kwa njia isiyo ya kawaida muundo wa silabi funge pamoja na muundo wa silabi wazi. Ingawa ina mfumo wa majina ya madarasa, tofauti za uso kati ya madarasa wakati mwingine hupuuzwa. Majina hayahitajiki kuanza na mwanzo wa konsonanti na vitenzi havihitajiki kuishia kwa vokali. Sababu hizi husababisha uanuwai mkubwa zaidi wa miundo ya silabi inayoruhusiwa katika Bàsàá ikilinganishwa na Lugha za Kibantu nyingine (Hyman, 2003).

Figure 2: Vowel inventory in Bàsàá (Makasso and Lee, 2015). [ɛ] and [ɔ] are contrasted with [o] and [e] by diacritics in the missionary orthographies
Kielelezo 2: Orodha ya vokali katika Bàsàá (Makasso na Lee, 2015). [ɛ] na [ɔ] hutofautishwa na [o] na [e] kwa alama za matamshi katika maandishi ya kimisionari.
2.2 Orthographic History
2.2 Historia ya Kiothografia
The orthographic history of Bàsàá contains multiple writing systems as English, German, and French colonialists who transcribed the language chose different methods of representation. The alphabets created for Bàsàá, and for many of the languages of Cameroon, were primarily influenced by the first languages of the transcriptionists, commonly French, English, or German, and often failed to properly mark important contrasts in the language (Bird, 2001). The two most prominent orthographies established prior to the current one are attributed to Protestant missionaries and Catholic missionaries and are referred to in this paper as the Protestant and Catholic orthographies, neither of which marked tone.
Historia ya tahajia ya Bàsàá ina mifumo mingi ya uandishi kwani wakoloni wa Kiingereza, Kijerumani, na Kifaransa walioandika lugha hiyo walichagua mbinu tofauti za uwasilishaji. Alfabeti zilizoundwa kwa ajili ya Bàsàá, na kwa lugha nyingi za Kameruni, ziliathiriwa kimsingi na lugha za kwanza za waandishi, kwa kawaida Kifaransa, Kiingereza, au Kijerumani, na mara nyingi zilishindwa kuashiria ipasavyo tofauti muhimu katika lugha (Bird, 2001). Tahajia mbili mashuhuri zaidi zilizoanzishwa kabla ya ile ya sasa zinahusishwa na wamisionari wa Kiprotestanti na wamisionari wa Kikatoliki na zinarejelewa katika karatasi hii kama tahajia za Kiprotestanti na Kikatoliki, ambazo hakuna hata moja iliyoashiria toni.
While the first attempt to implement a standard writing system, using an orthography developed for Western African language in Bamako (United Nations Educational and Organization, 1966), wasn't successful, a national committee was established to develop a writing system that would facilitate a pan-Cameroonian literacy in all the languages of the country. Central to this endeavor was the establishment of a system that could capture all of the contrasting sounds across Cameroonian languages. The inclusion of all contrasts would allow any literate speaker of a Cameroonian language to read and pronounce the words of a text in any of the languages of Cameroon, irrespective of comprehension (Hartell, 1993).
Ingawa jaribio la kwanza la kutekeleza mfumo sanifu wa uandishi, kwa kutumia tahajia iliyotengenezwa kwa lugha ya Afrika Magharibi huko Bamako (United Nations Educational and Organization, 1966), halikufanikiwa, kamati ya kitaifa ilianzishwa ili kuunda mfumo wa uandishi ambao ungewezesha ujuzi wa kusoma na kuandika wa pan-Kameruni katika lugha zote za nchi. Kiini cha juhudi hii kilikuwa uanzishwaji wa mfumo ambao ungeweza kunasa sauti zote zenye kutofautisha katika lugha za Kameruni. Ujumuishaji wa tofauti zote ungemwezesha mzungumzaji yeyote mwenye ujuzi wa kusoma na kuandika wa lugha ya Kameruni kusoma na kutamka maneno ya maandishi katika lugha yoyote ya Kameruni, bila kujali ufahamu (Hartell, 1993).
The national effort culminated in the establishment of the General Alphabet of the Cameroonian Languages (AGLC) by the National Committee for the Unification and Harmonisation of the Alphabets of Cameroon Languages in 1979 (Maurice Tadadjeu, 1979). The characters of this alphabet are predominately Latin, and thus similar to the English, German, and French alphabets, however the alphabet integrates symbols from the International Phonetic Alphabet to fully represent the phonetic inventory of Cameroonian languages. The symbols in the full AGLC are listed in Table 1.
Juhudi ya kitaifa ilifikia kilele chake katika uanzishwaji wa Alfabeti Kuu ya Lugha za Kameruni (AGLC) na Kamati ya Kitaifa ya Kuunganisha na Kuoanisha Alfabeti za Lugha za Kameruni mwaka 1979 (Maurice Tadadjeu, 1979). Herufi za alfabeti hii kwa kiasi kikubwa ni za Kilatini, na hivyo zinafanana na alfabeti za Kiingereza, Kijerumani, na Kifaransa, hata hivyo alfabeti hiyo inajumuisha alama kutoka Alfabeti ya Kifonetiki ya Kimataifa ili kuwakilisha kikamilifu orodha ya kifonetiki ya lugha za Kameruni. Alama katika AGLC kamili zimeorodheshwa katika Jedwali 1.

Figure 3: Consonant inventory in Bàsàá (Makasso and Lee, 2015).
Kielelezo 3: Orodha ya konsonanti katika Kibàsàá (Makasso na Lee, 2015).

Table 1: Alphabet of the Cameroonian Languages. The AGLC alphabet was designed to work as a unifying and intelligible alphabet for speakers of all Cameroonian language.
Jedwali 1: Alfabeti ya Lugha za Kameruni. Alfabeti ya AGLC iliundwa kufanya kazi kama alfabeti inayounganisha na inayoeleweka kwa wazungumzaji wa lugha zote za Kameruni.
Bàsàá utilizes a subset of this system in accordance with the language's phonetic contrasts. Latin letters are used alongside ɓ, ŋ, ɛ, and ɔ with acute, grave, and circumflex accents to denoting tone. While this orthography is supported by the Academy of Languages of Cameroon, the former missionary orthographies are still used by some speakers and are generally used in earlier texts written in Bàsàá, necessitating a method of conversion of missionary orthographies to the AGLC standard.
Kibàsàá kinatumia kikundi kidogo cha mfumo huu kwa mujibu wa tofauti za kifonetiki za lugha hiyo. Herufi za Kilatini zinatumika pamoja na ɓ, ŋ, ɛ, na ɔ zenye alama za mkazo kali, mkazo mzito, na mkazo wa kuzunguka ili kuashiria toni. Ingawa tahajia hii inaungwa mkono na Chuo cha Lugha za Kameruni, tahajia za awali za kimisionari bado zinatumiwa na baadhi ya wazungumzaji na kwa ujumla zinatumika katika maandiko ya awali yaliyoandikwa katika Kibàsàá, jambo linalohitaji mbinu ya kubadilisha tahajia za kimisionari kuwa kiwango cha AGLC.
Comparing the three writing systems, the first major discrepancy is found in tone marking and vowels. The Protestant and Catholic writing systems do not mark tone, but instead use acute, grave, and circumflex accents to mark different vowels. The Protestant system represents [e] by using an acute accent mark, é, while a [ɛ] is represented by a plain e. Likewise, the Protestant system uses the circumflexed ô, to mark [o], but a plain o in the orthography represents [ɔ]. On the other hand, the Catholic orthography marks [ɛ] and [ɔ] by è and ò, while the plain e and o represent [e] and [o]. However, in the AGLC orthography, acute, grave, and circumflex accents are used to represent tone and the ɛ and ɔ are already contrasted in the orthography by the addition of the symbols ɛ and ɔ. Tone is also marked on syllabic nasal consonants in the AGLC system.
Kwa kulinganisha mifumo hiyo mitatu ya uandishi, tofauti kuu ya kwanza inapatikana katika uwekaji alama wa toni na vokali. Mifumo ya uandishi ya Kiprotestanti na Kikatoliki haiweki alama ya toni, bali hutumia alama za mkazo kali, mkazo mzito, na mkazo wa kuzunguka kuashiria vokali tofauti. Mfumo wa Kiprotestanti unawakilisha [e] kwa kutumia alama ya mkazo kali, é, huku [ɛ] ikiwakilishwa na e ya kawaida. Vile vile, mfumo wa Kiprotestanti hutumia ô lenye mshale wa juu, ili kuashiria [o], lakini o ya kawaida katika imla inawakilisha [ɔ]. Kwa upande mwingine, tahajia ya Kikatoliki inaashiria [ɛ] na [ɔ] kwa è na ò, huku e na o za kawaida zikiwakilisha [e] na [o]. Hata hivyo, katika tahajia ya AGLC, mikazo kali, ya chini, na ya kofia hutumiwa kuwakilisha toni na ɛ na ɔ tayari zimetofautishwa katika tahajia kwa kuongezwa kwa alama ɛ na ɔ. Toni pia huwekwa alama kwenye konsonanti za nazali zenye silabi katika mfumo wa AGLC.
The consonants in the orthography also require consideration in the conversion process. The [ɓ] and [ŋ] sounds are represented by b and ñ in the missionary orthographies, while the AGLC orthography distinguishes [b] from [ɓ] with the characters b and ɓ. Instead of ñ, the [ŋ] is represented by ŋ in the AGLC orthography. In addition to these consonants, the missonary orthographies transcribe the sound tʃ as tj, the AGLC system uses c. One sentence is presented in the three orthographies below to exemplify some of the differences in the orthographies.
Konsonanti katika tahajia pia zinahitaji kuzingatiwa katika mchakato wa ubadilishaji. Sauti za [ɓ] na [ŋ] zinawakilishwa na b na ñ katika tahajia za kimisionari, huku tahajia ya AGLC ikitofautisha [b] na [ɓ] kwa herufi b na ɓ. Badala ya ñ, [ŋ] inawakilishwa na ŋ katika tahajia ya AGLC. Pamoja na konsonanti hizi, othografia za kimisionari hunakili sauti tʃ kama tj, mfumo wa AGLC hutumia c. Sentensi moja imewasilishwa katika othografia tatu hapa chini ili kutoa mfano wa baadhi ya tofauti katika othografia.
AGLC: Mɛ̀ yè lɛ mɛ ɓɔl nyɔɔ̄ nì màkòò.
Protestant: Me yé le me bol nyoo ni makôô.
Catholic: Mè ye lè mè bòl nyòò ni makoo.
3 Prior work
3 Kazi za Awali
Negotiation between orthographies is a common issue in many languages, and as such a number of previous studies have explored techniques to aid in orthographic conversion and/or normalization. This work builds on existing research describing the Bàsàá language and the use of natural language processing for low-resource languages. This section outlines existing work on Bàsàá in Section 3.1, Finite State Transducers (FST) in Section 3.2, and Long Short-term Memory (LSTM) networks in Section 3.3. While research concerning FSTs and LSTM networks in low-resource settings is extensive, this section focuses on examples that closely mirror the goals of this paper.
Mazungumzo kati ya othografia ni suala la kawaida katika lugha nyingi, na kwa hivyo idadi kadhaa ya tafiti za awali zimechunguza mbinu za kusaidia katika ubadilishaji na/au usawazishaji wa othografia. Kazi hii inajenga juu ya utafiti uliopo unaoelezea lugha ya Bàsàá na matumizi ya uchakataji wa lugha asilia kwa lugha yenye rasilimali chache. Sehemu hii inaelezea kazi iliyopo kuhusu Bàsàá katika Sehemu ya 3.1, Finite State Transducers (FST) katika Sehemu ya 3.2, na mitandao ya Long Short-term Memory (LSTM) katika Sehemu ya 3.3. Ingawa utafiti unaohusu FST na mitandao ya LSTM katika mazingira yenye rasilimali chache ni mkubwa, sehemu hii inazingatia mifano inayoakisi kwa karibu malengo ya karatasi hii.
3.1 Research on Bàsàá
3.1 Utafiti kuhusu Bàsàá
Existing work on Bàsàá has profiled the linguistic inventory of the language (Makasso and Lee, 2015; Hyman, 2003), generated dictionaries (Lemb and de Gastines, 1973), designed learning materials (Moreton et al., 1968), and, more recently, facilitated the development of resources that integrate computational and NLP methods with Bàsàá to enhance the resources available for documentation, such as the bilingual speech corpus developed to assist in automatic phonetic transcription (Hamlaoui et al., 2018).
Kazi iliyopo kuhusu Bàsàá imeelezea orodha ya kiisimu ya lugha (Makasso and Lee, 2015; Hyman, 2003), imetengeneza kamusi (Lemb and de Gastines, 1973), imebuni vifaa vya kujifunzia (Moreton et al., 1968), na, hivi karibuni zaidi, imewezesha ukuzaji wa rasilimali zinazounganisha mbinu za kikompyuta na NLP na Bàsàá ili kuongeza rasilimali zinazopatikana kwa ajili ya uhifadhi, kama vile mkusanyiko wa matamshi ya lugha mbili uliotengenezwa kusaidia katika unukuzi wa kifonetiki otomatiki (Hamlaoui et al., 2018).
Nikitin et al. (2022) approaches the task of orthography conversion in Bàsàá by using Bidirectional Encoder Representations from Transformers (BERT), which often performs well due to the large amount of resources and training that went into the model. However, for this task, BERT was only able to beat the baseline after extensive pre-processing of the text. The importance of extensive pre-processing the text and only marginally better performance than the baseline suggests that BERT is not well-suited to this task.
Nikitin et al. (2022) wanashughulikia kazi ya ubadilishaji wa tahajia katika Kibàsàá kwa kutumia Bidirectional Encoder Representations from Transformers (BERT), ambayo mara nyingi hufanya vizuri kutokana na kiasi kikubwa cha rasilimali na mafunzo yaliyowekwa kwenye modeli. Hata hivyo, kwa kazi hii, BERT iliweza tu kushinda msingi baada ya uchakataji wa awali wa kina wa maandishi. Umuhimu wa uchakataji wa awali wa kina wa maandishi na utendaji bora kidogo tu kuliko msingi unapendekeza kuwa BERT haifai vizuri kwa kazi hii.
3.2 Finite State Transducers
3.2 Finite Jimbo transducers
Finite State Transducers (FST) work as a translator between a set of input strings and a set of output strings. In the case of language, the input string can utilize linguistic rules and produce an output that adheres to those rules. As the input of the FST relies on linguistic rules, the model often performs well in low-resource environments, as the models do not rely on large amounts of training data or computational resources. While FST models require some amount of linguistic or computational efforts to build, various tools have been created which automate various parts of the process to help alleviate these boundaries (Khanna et al., 2021), although the performance of FST models benefits greatly from the generation of detailed, language-specific rules.
Finite State Transducers (FST) hufanya kazi kama mtafsiri kati ya seti ya mifuatano ya pembejeo na seti ya mifuatano ya matokeo. Katika kesi ya lugha, mfuatano wa pembejeo unaweza kutumia kanuni za kiisimu na kutoa matokeo yanayozingatia kanuni hizo. Kwa vile pembejeo ya FST inategemea kanuni za kiisimu, modeli mara nyingi hufanya vizuri katika mazingira yenye rasilimali chache, kwani modeli hazitegemei kiasi kikubwa cha data ya mafunzo au rasilimali za kikompyuta. Ingawa modeli za FST zinahitaji kiasi fulani cha juhudi za kiisimu au kikompyuta kujenga, zana mbalimbali zimeundwa ambazo huendesha kiotomatiki sehemu mbalimbali za mchakato ili kusaidia kupunguza mipaka hii (Khanna et al., 2021), ingawa utendaji wa modeli za FST hunufaika sana kutokana na uzalishaji wa kanuni za kina, mahususi kwa lugha.
In general, FSTs do not necessarily specify a unique mapping between input and output strings, which can cause problems for tasks like orthography conversion that generally need a single output. This can be addressed by adding additional rules to constrain the transducer. However, if determining appropriate rules is difficult and a corpus is available, it can also be addressed by adding weights, which are scores that can be applied either to a whole-word input-output pair or to a subword mapping. Then, for a given input, each output has a weight equal to the sum of all the applicable weights derived from the corpus, with only the form with the lowest total being output.
Kwa ujumla, FST hazibainishi lazima uwiano wa kipekee kati ya mifuatano ya pembejeo na pato, jambo ambalo linaweza kusababisha matatizo kwa kazi kama vile ubadilishaji wa tahajia ambazo kwa kawaida zinahitaji pato moja. Hili linaweza kushughulikiwa kwa kuongeza sheria za ziada ili kuzuia transducer. Hata hivyo, ikiwa kubainisha sheria zinazofaa ni vigumu na korpusi inapatikana, linaweza pia kushughulikiwa kwa kuongeza uzani, ambao ni alama zinazoweza kutumika ama kwa jozi ya neno zima la pembejeo na pato au kwa uwiano wa sehemu ndogo ya neno. Kisha, kwa pembejeo fulani, kila pato lina uzani sawa na jumla ya uzani wote unaotumika unaotokana na korpusi, huku umbo lenye jumla ya chini kabisa likitolewa.
FSTs have been implemented in many low-resource settings, as well as for the application of orthographic conversion, transliteration, and text normalization. Washington et al. (2021) developed a transducer to assist in orthographic conversion and morphological analysis of Zapotec and found that even an incomplete transducer could yield positive results. Similar efforts use an FST to develop a morphological generator and analyzer while simultaneously addressing the issue of missing diacritics (Alkhairy et al., 2020), demonstrating the easy expansion of an FST to create more resources for a language. Manohar et al. (2022) extend the use of FSTs to text-to-speech (TTS) applications in low-resource settings, generating a model that converts between Malayalam phonemes and graphemes.
FST zimetekelezwa katika mazingira mengi yenye rasilimali chache, na pia kwa matumizi ya ubadilishaji wa tahajia, transliteresheni, na usawazishaji wa maandishi. Washington et al. (2021) walitengeneza transducer kusaidia katika ubadilishaji wa tahajia na uchanganuzi wa kimofolojia wa Kizapotec na wakagundua kwamba hata transducer isiyokamilika inaweza kutoa matokeo chanya. Juhudi zinazofanana zinatumia FST kutengeneza jenereta na kichanganuzi cha kimofolojia huku zikishughulikia wakati huo huo suala la alama za matamshi zinazokosekana (Alkhairy et al., 2020), zikionyesha upanuzi rahisi wa FST kuunda rasilimali zaidi kwa lugha. Manohar et al. (2022) wanapanua matumizi ya FST kwa programu za ubadilishaji wa maandishi kuwa usemi (TTS) katika mazingira yenye rasilimali chache, wakitengeneza modeli inayobadilisha kati ya fonimu za Kimalayalam na grafimu.
While the use of FSTs in low-resource settings is well-attested, the inclusion of tones has proven difficult. Ngué Um et al. (2022) built an FST for Ewondo, a Cameroonian language. In this study, the ambiguous nature of combined versus combining tone markings produces difficulty for the analyzer. While both the combined and combining accents can be analyzed by the FST, it results in errors in the morphological generation. An expansion of the FST for Bàsàá would also need to address this issue.
Ingawa matumizi ya FST katika mazingira yenye rasilimali chache yamethibitishwa vizuri, ujumuishaji wa toni umeonekana kuwa mgumu. Ngué Um et al. (2022) walijenga FST kwa Ewondo, lugha ya Kameruni. Katika utafiti huu, hali ya utata ya alama za toni zilizounganishwa dhidi ya zinazounganisha inaleta ugumu kwa kichanganuzi. Ingawa alama zote zilizounganishwa na zinazochanganya zinaweza kuchambuliwa na FST, hii inasababisha makosa katika uundaji wa kimorfolojia. Upanuzi wa FST kwa Bàsàá pia ungehitaji kushughulikia suala hili.
3.3 Long Short-Term Memory Networks
3.3 Mitandao ya Kumbukumbu ya Muda Mrefu ya Muda Mfupi
The LSTM is a recurrent neural network architecture that allows information about long-term dependencies to be incorporated, providing additional context for the generation of the output. LSTM networks have been applied to many deep learning tasks, such as machine translation, optical character recognition (OCR), and speech recognition.
LSTM ni usanifu wa mtandao wa neva unaojirudia unaoruhusu taarifa kuhusu utegemezi wa muda mrefu kujumuishwa, ukitoa muktadha wa ziada kwa uzalishaji wa matokeo. Mitandao ya LSTM imetumika kwa kazi nyingi za kujifunza kwa kina, kama vile tafsiri ya mashine, utambuzi wa alama za macho (OCR), na utambuzi wa hotuba.
LSTMs have been combined with OCR tasks to assist languages in digitization and orthographic normalization of historic texts. Azawi et al. (2013) found that LSTMs perform well for the conversion of German historic texts as they are able to handle unseen examples. Similarly, Simistira et al. (2015) found using LSTMs for OCR produces a lower character error rate than leading methods of OCR for Greek polytonic script.
LSTM zimeunganishwa na kazi za OCR kusaidia lugha katika uwekaji kidijitali na usawazishaji wa tahajia wa maandishi ya kihistoria. Azawi et al. (2013) waligundua kuwa LSTM zinafanya vizuri kwa ubadilishaji wa maandishi ya kihistoria ya Kijerumani kwani zinaweza kushughulikia mifano isiyoonekana. Vivyo hivyo, Simistira et al. (2015) waligundua kutumia LSTM kwa OCR kunatoa kiwango cha makosa ya herufi cha chini kuliko mbinu zinazoongoza za OCR kwa hati ya Kigiriki ya polytonic.
Additionally, LSTMs have recently gained popularity for their utility in TTS tasks, such as grapheme-to-phoneme conversion. Adriana (2019), Liu et al. (2018), and Behbahani et al. (2016) successfully implemented LSTM models for grapheme-to-phoneme conversion in Romanian, Mongolian, and Persian.
Zaidi ya hayo, LSTM zimepata umaarufu hivi karibuni kwa manufaa yake katika kazi za TTS, kama vile ubadilishaji wa grafimu-hadi-fonimu. Adriana (2019), Liu et al. (2018), na Behbahani et al. (2016) walitekeleza kwa mafanikio mifano ya LSTM kwa ubadilishaji wa grafimu-hadi-fonimu katika Kiromania, Kimongolia, na Kiajemi.
4 Methodology
4 Mbinu
This paper compares the accuracy of a Finite State Transducer (FST), a weighted FST, and a Long Short-term Memory (LSTM) model for the task of orthographic conversion of Bàsàá. Section 4.1 describes the data the models trained on, Section 4.2 describes the simple baseline metric used for comparison, Section 4.3 explains the use of an unweighted FST, Section 4.4 details the implementation of the weighted FST, and Section 4.5 outlines the LSTM model.
Karatasi hii inalinganisha Usahihi wa Finite State Transducer (FST), FST yenye uzito, na mfano wa Long Short-term Memory (LSTM) kwa kazi ya ubadilishaji wa tahajia wa Bàsàá. Sehemu ya 4.1 inaelezea data ambayo mifano ilifunzwa, Sehemu ya 4.2 inaelezea kipimo rahisi cha msingi kilichotumika kwa ulinganisho, Sehemu ya 4.3 inaelezea matumizi ya FST isiyo na uzito, Sehemu ya 4.4 inaelezea kwa kina utekelezaji wa FST yenye uzito, na Sehemu ya 4.5 inatoa muhtasari wa mfano wa LSTM.
4.1 Data
4.1 Data
The methods in this study use a text corpus comprised of 12,000 sentences in the Protestant orthography together with transliterations into the AGLC orthography. Of these sentences, 10,000 are used for training, 1,000 for validation, and 1,000 for testing. Pre-processing of the text consisted of lower-casing the characters.
Mbinu katika utafiti huu zinatumia mkusanyiko wa maandishi unaojumuisha sentensi 12,000 katika tahajia ya Kiprotestanti pamoja na transliteresheni katika tahajia ya AGLC. Kati ya sentensi hizi, 10,000 zinatumika kwa mafunzo, 1,000 kwa uthibitishaji, na 1,000 kwa upimaji. Uchakataji wa awali wa maandishi ulihusisha kubadilisha herufi kuwa ndogo.
4.2 Baseline
4.2 Baseline
The baseline searches the target sentences for the most frequent translation of a source word and replaces the source word with that token. In the event that the source word does not appear in the data, the source word is output in its original form without conversion. The baseline here is a naïve approach to the problem, but is representative of the current lack of existing work on orthographic conversion in the language.
Msingi hutafuta sentensi lengwa kwa tafsiri inayotokea mara nyingi zaidi ya neno chanzi na kubadilisha neno chanzi na tokeni hiyo. Iwapo neno chanzi halionekani katika data, neno chanzi linatolewa katika umbo lake la asili bila ubadilishaji. Msingi hapa ni mkabala wa kijinga kwa tatizo, lakini unawakilisha ukosefu wa sasa wa kazi iliyopo kuhusu ubadilishaji wa othografia katika lugha.
4.3 Unweighted FST
4.3 Unweighted FST
The unweighted FST consists of a set of character mappings compiled using the lexicon compiler Lexd (Swanson and Howell, 2021) which includes every pair of source and target characters found in the training data. Mapping each character individually and without context creates a large number of output forms, which we resolve by selecting a single output form at random. Additionally, we added four rules which restrict the output in cases where the phonological context is unambiguous. Specifically, that nasals will never have a tone diacritic in the AGLC orthography if they precede a vowel (this is 3 rules, one each for m, n, and ŋ), and that where the missionary orthography has tj the AGLC orthography will always have c (as opposed to converting the t and the j separately as tj).
FST isiyo na uzito inajumuisha seti ya ramani za herufi zilizokusanywa kwa kutumia mkusanyaji wa leksimu Lexd (Swanson and Howell, 2021) ambayo inajumuisha kila jozi ya herufi chanzi na lengwa zilizopatikana katika data ya mafunzo. Kuweka ramani kila herufi kivyake na bila muktadha huunda idadi kubwa ya maumbo ya matokeo, ambayo tunayatatua kwa kuchagua umbo moja la matokeo kwa nasibu. Zaidi ya hayo, tuliongeza kanuni nne zinazozuia matokeo katika hali ambapo muktadha wa kifonolojia hauna utata. Hasa, kwamba nazali hazitawahi kuwa na alama ya toni katika tahajia ya AGLC ikiwa zinatangua vokali (hizi ni kanuni 3, moja kwa kila m, n, na ŋ), na kwamba pale ambapo tahajia ya kimisionari ina tj, tahajia ya AGLC daima itakuwa na c (tofauti na kubadilisha t na j kando kama tj).
4.4 Weighted FST
4.4 FST yenye Uzani
Where the unweighted FST treats every mapping as equally probable, the weighted FST sets a weight for each path which has been seen in the training data, with more frequent source-target pairs receiving lower (better) weights. Then, rather than selecting randomly, the output with the lowest weight is used.
Ambapo FST isiyo na uzani inachukulia kila uchoraji kuwa na uwezekano sawa, FST yenye uzani huweka uzani kwa kila njia ambayo imeonekana katika data ya mafunzo, huku jozi za chanzo-lengo zinazojitokeza mara nyingi zaidi zikipokea uzani wa chini (bora). Kisha, badala ya kuchagua kwa nasibu, matokeo yenye uzani wa chini kabisa hutumika.
4.5 Neural seq2seq model
4.5 Mfano wa neva wa seq2seq
Following previous work that has shown that character-based neural seq2seq architectures perform well for orthographic normalization and conversion (Rosca and Breuel, 2016; Orife, 2018), we trained an encoder-decoder model with global attention (Luong et al., 2015) to convert missionary orthographies into the AGLC orthography. Both the encoder and decoder are unidirectional Long short-term memory networks (Hochreiter and Schmidhuber, 1997) consisting of 2 layers of 1,000 hidden units each. We used the OpenNMTpy library (Klein et al., 2020) to train the model and generate predictions on the held-out datasets.
Kufuatia kazi za awali ambazo zimeonyesha kwamba usanifu wa neva wa seq2seq unaotegemea herufi hufanya vizuri kwa usawazishaji na ubadilishaji wa tahajia (Rosca na Breuel, 2016; Orife, 2018), tulifunza mfano wa encoder-decoder wenye uangalifu wa kimataifa (Luong et al., 2015) ili kubadilisha tahajia za kimisionari kuwa tahajia ya AGLC. Encoder na decoder zote ni mitandao ya kumbukumbu ya muda mfupi mrefu yenye mwelekeo mmoja (Hochreiter na Schmidhuber, 1997) inayojumuisha tabaka 2 za vitengo 1,000 vya siri kila moja. Tulitumia maktaba ya OpenNMTpy (Klein et al., 2020) kufunza modeli na kutoa utabiri kwenye seti za data zilizotengwa.
5 Results
5 Matokeo
We compare the four systems using word- and character-error rates (WER and CER). WER and CER are calculated automatically by comparing the outputs of each of the systems to the output of the target file. Following the presentation of WER and CER for each of the systems, we provide examples of the output from each model. Information on the differences in orthographical representation for the source and target texts can be found in Section 2.2.
Tunalinganisha mifumo minne kwa kutumia viwango vya makosa ya maneno na herufi (WER na CER). WER na CER hukokotolewa kiotomatiki kwa kulinganisha matokeo ya kila mfumo na matokeo ya faili lengwa. Kufuatia uwasilishaji wa WER na CER kwa kila mfumo, tunatoa mifano ya matokeo kutoka kwa kila modeli. Maelezo kuhusu tofauti za uwakilishi wa tahajia kwa maandishi ya chanzo na lengwa yanaweza kupatikana katika Sehemu ya 2.2.
5.1 Word- and Character-error Rates
5.1 Viwango vya Makosa ya Maneno na Herufi
Results of all systems apart from the unweighted FST were relatively similar, with baseline model performing better than both the FST systems and on par with the seq2seq model. The seq2seq model achieved the best character-error rate, while the baseline shows a marginally better word-error rate. This can be explained by the fact that the baseline operates at the word level. Thus, a mistake results in selecting the wrong word form, which likely has multiple characters that are different than the correct word form. The seq2seq model, on the other hand, predicts at a character level, and may make only a single character error in a word, such as a missed tonal diacritic.
Matokeo ya mifumo yote isipokuwa FST isiyo na uzani yalikuwa yanafanana kiasi, huku modeli ya msingi ikifanya vizuri zaidi kuliko mifumo yote miwili ya FST na sawa na modeli ya seq2seq. Modeli ya seq2seq ilipata kiwango bora cha makosa ya herufi, wakati msingi unaonyesha kiwango bora kidogo cha makosa ya maneno. Hili linaweza kuelezewa na ukweli kwamba msingi hufanya kazi katika kiwango cha neno. Kwa hivyo, kosa husababisha kuchagua umbo lisilo sahihi la neno, ambalo huenda likawa na herufi nyingi ambazo ni tofauti na umbo sahihi la neno. Mfano wa seq2seq, kwa upande mwingine, unatabiri katika kiwango cha herufi, na unaweza kufanya kosa la herufi moja tu katika neno, kama vile alama ya toni iliyokosekana.

Table 2: Comparison between the 4 models.
Jedwali la 2: Ulinganisho kati ya mifano 4.
5.2 Error Analysis
5.2 Uchambuzi wa Makosa
To better understand the performance of these models, we present examples of outputs of the models for three different sentences and discuss which errors are common for each of the models. The examples are taken from the development set output for each of the models.
Ili kuelewa vizuri utendaji wa mifano hii, tunawasilisha mifano ya matokeo ya mifano kwa sentensi tatu tofauti na kujadili ni makosa gani ni ya kawaida kwa kila moja ya mifano. Mifano hiyo imechukuliwa kutoka kwa matokeo ya seti ya maendeleo kwa kila moja ya mifano.

Table 3
Jedwali 3
In the sentences in Table 3, we see that the FSTs have a tendency to overgenerate the letter ŋ when the source orthography has an n. Additionally, it shows that the LSTM network is successful in generating the tone of a syllabic nasal. While the baseline often can predict tone on a syllabic nasal, this token is not in the training data, so the baseline just outputs the original token.
Katika sentensi katika Jedwali la 3, tunaona kwamba FST zina mwelekeo wa kuzalisha kupita kiasi herufi ŋ wakati tahajia ya chanzo ina n. Zaidi ya hayo, inaonyesha kwamba mtandao wa LSTM unafanikiwa katika kuzalisha toni ya nazali ya silabi. Ingawa msingi mara nyingi unaweza kutabiri toni kwenye nazali ya silabi, tokeni hii haipo katika data ya mafunzo, kwa hivyo msingi unatoa tu tokeni asilia.
The sentences in Table 4 show that the most systems are able to understand that the accents in the source orthography are not indicative of an accent on the target orthography. However, the unweighted FST tends towards adding accents even in the absence of accents in the target form. Overall, we see the LSTM perform well on the assignm nt of tone and characters in this example, with the baseline being almost perfect apart from the tone on the second token.
Sentensi katika Jedwali la 4 zinaonyesha kwamba mifumo mingi inaweza kuelewa kwamba alama za mkazo katika tahajia ya chanzo hazionyeshi mkazo kwenye tahajia lengwa. Hata hivyo, FST isiyo na uzani inaelekea kuongeza alama za mkazo hata kukiwa hakuna alama za mkazo katika umbo lengwa. Kwa ujumla, tunaona LSTM ikifanya vizuri katika ugawaji wa toni na herufi katika mfano huu, huku msingi ukiwa karibu mkamilifu isipokuwa toni kwenye tokeni ya pili.

Table 4
Jedwali 4

Table 5
Jedwali 5
In the sentences in Table 5, although the LSTM comes close, it is not able to identify the rising tone in the first token and marks the tone of the second token as mid. The weighted and unweighted FST correctly predict the characters, but otherwise are very inconsistent with tone diacritics, although it is evident that the weighted FST outperforms the unweighted FST.
Katika sentensi za Jedwali la 5, ingawa LSTM inakaribia, haiwezi kutambua toni inayopanda katika tokeni ya kwanza na inaashiria toni ya tokeni ya pili kama ya kati. FST zenye uzani na zisizo na uzani zinatabiri herufi kwa usahihi, lakini kwa njia nyingine hazilingani kabisa na alama za toni, ingawa ni dhahiri kwamba FST yenye uzani inazidi FST isiyo na uzani.
6 Conclusion
6 Hitimisho
The results of this paper contribute to the discussion concerning the relative benefits of NLP methods versus more simplistic baselines in low-resource settings. The baseline outperforms the unweighted and weighted FSTs and LSTM network in regards to WER. As Bàsàá is a tone language, changes in the tone of one character can create minimal pairs and thus WER is a more realistic metric for evaluating the utility of a model. However, the baseline simply outputs the original word for any out-of-vocabulary (OOV) tokens, meaning that the performance of the baseline is strongly impacted by OOV tokens. While this has a minimal impact on this dataset, a dataset with more OOV tokens would perform worse.
Matokeo ya karatasi hii yanachangia mjadala kuhusu faida linganishi za mbinu za NLP dhidi ya misingi rahisi zaidi katika mazingira yenye rasilimali chache. Msingi unazidi FST zisizo na uzani na zenye uzani na mtandao wa LSTM kuhusiana na WER. Kwa kuwa Kibàsàá ni lugha ya toni, mabadiliko katika toni ya herufi moja yanaweza kuunda jozi ndogo na hivyo WER ni kipimo halisi zaidi cha kutathmini manufaa ya modeli. Hata hivyo, msingi huo unatoa tu neno asilia kwa tokeni zozote zisizo za msamiati (OOV), ikimaanisha kuwa utendaji wa msingi huo unaathiriwa sana na tokeni za OOV. Ingawa hii ina athari ndogo kwenye seti hii ya data, seti ya data yenye tokeni zaidi za OOV ingefanya vibaya zaidi.
While the baseline performs well on the Protestant orthography, it would likely perform even better on the Catholic orthography as it uses grave accent marks instead of acute accent marks. Although the Catholic and AGLC orthography use the grave accents to mark different things, the presence of grave marks in the target is much more likely than acute accent marks, which only appear when deconstructing rising and falling tones on long vowels. The method of handling OOV tokens would therefore perform better for a source text written in the Catholic orthography, as the probability of coincidentally having an output that matches the input form is much higher when the source orthography uses grave accents.
Ingawa msingi huo unafanya vizuri kwenye tahajia ya Kiprotestanti, huenda ungefanya vizuri zaidi kwenye tahajia ya Kikatoliki kwani hutumia alama za mkazo wa kaburi badala ya alama za mkazo mkali. Ingawa tahajia ya Kikatoliki na AGLC hutumia mikazo ya kaburi kuashiria vitu tofauti, uwepo wa alama za kaburi katika lengwa una uwezekano mkubwa zaidi kuliko alama za mkazo mkali, ambazo huonekana tu wakati wa kuchanganua toni za kupanda na kushuka kwenye vokali ndefu. Mbinu ya kushughulikia tokeni za OOV kwa hivyo ingefanya vizuri zaidi kwa maandishi chanzi yaliyoandikwa katika tahajia ya Kikatoliki, kwani uwezekano wa kwa bahati kuwa na matokeo yanayolingana na umbo la ingizo ni mkubwa zaidi wakati tahajia chanzi inapotumia mikazo ya kaburi.
In this paper, the unweighted and weighted FST were written using very minimal linguistic rules, which is evidenced in their relatively poor performance. The weighted FST greatly reduced the impact of the lack of detailed rules, but would clearly still benefit from their addition.
Katika karatasi hii, FST zisizo na uzani na zenye uzani ziliandikwa kwa kutumia kanuni ndogo sana za kiisimu, jambo linalothibitishwa na utendaji wao duni kiasi. FST yenye uzani ilipunguza sana athari ya ukosefu wa kanuni za kina, lakini ingeweza bado kufaidika wazi kutokana na nyongeza yake.
This paper presents a preliminary investigation of the application of FSTs and LSTM networks to the topic of orthographic conversion. While the simplistic baseline performs surprisingly well for this dataset, we believe that the comparable performance of the weighted FST and LSTM network is promising and necessitates further development of these models, specifically the inclusion of more linguistic rules for the weighted FST and augmentation of the training data for the LSTM network.
Karatasi hii inawasilisha uchunguzi wa awali wa matumizi ya FST na mitandao ya LSTM kwenye mada ya ubadilishaji wa tahajia. Ingawa msingi rahisi unafanya vizuri kwa kushangaza kwa seti hii ya data, tunaamini kwamba utendaji unaolinganishwa wa FST yenye uzani na mtandao wa LSTM unatia matumaini na unahitaji maendeleo zaidi ya modeli hizi, hasa ujumuishaji wa sheria zaidi za kiisimu kwa FST yenye uzani na uongezaji wa data ya mafunzo kwa mtandao wa LSTM.
Limitations
Mapungufu
This paper attempts to make a broader statements about the applicability of current NLP methods for text conversion by discussing the results of these models on Bàsàá. The case of Bàsàá is challenging as the representation of tones is difficult for many models. However, this study still benefits from the roman-based, alphabetic orthography of the language and the resources that are available to languages with a Latin-based, alphabetic orthography. Additionally, Bàsàá utilizes a transparent orthography that also facilitates automatic methods of conversion. Other results and challenges are likely to arise when applying these models to a language that utilizes a non-Latin-based, nonalphabetic, and/or opaque orthography.
Karatasi hii inajaribu kutoa kauli pana zaidi kuhusu utumikaji wa mbinu za sasa za NLP kwa ubadilishaji wa maandishi kwa kujadili matokeo ya modeli hizi kwenye Bàsàá. Kesi ya Bàsàá ni changamoto kwani uwakilishaji wa toni ni mgumu kwa modeli nyingi. Hata hivyo, utafiti huu bado unanufaika kutokana na tahajia ya lugha yenye msingi wa kialfabeti wa Kirumi na rasilimali zinazopatikana kwa lugha zenye tahajia ya kialfabeti yenye msingi wa Kilatini. Zaidi ya hayo, Bàsàá hutumia tahajia angavu ambayo pia hurahisisha mbinu za kiotomatiki za ubadilishaji. Matokeo na changamoto nyingine huenda zikajitokeza wakati wa kutumia modeli hizi kwa lugha inayotumia tahajia isiyo na msingi wa Kilatini, isiyo ya kialfabeti, na/au isiyo angavu.
As this project is intended to present a starting point for extended research on orthographic conversion, we have begun by providing an overall comparison and brief error analysis. However, we plan to implement a more systematic error analysis to guide future work. The current error analysis highlights some patterns that are observed in the data, but a more thorough review of the outputs will help in the development of the current system for Bàsàá.
Kwa kuwa mradi huu unakusudiwa kuwasilisha hatua ya kuanzia kwa utafiti uliopanuliwa kuhusu ubadilishaji wa tahajia, tumeanza kwa kutoa ulinganisho wa jumla na uchambuzi mfupi wa makosa. Hata hivyo, tunapanga kutekeleza uchanganuzi wa makosa wenye utaratibu zaidi ili kuongoza kazi ya baadaye. Uchanganuzi wa sasa wa makosa unaangazia baadhi ya mifumo inayozingatiwa katika data, lakini mapitio ya kina zaidi ya matokeo yatasaidia katika uundaji wa mfumo wa sasa wa Bàsàá.
Ethics Statement
Taarifa ya Maadili
The motivation of this work is to compare current NLP methods in a low-resource setting and discuss how the different systems might apply in different contexts based on the results, contributing overall to the discussion on how NLP methods can be used to benefit language communities and support the creation of more linguistic resources. While the hope is to support the language community, the integration of computational methods also poses the risk of language commodification and a dispossession of intellectual property of a community. This study is submitted with the belief that the current benefits associated with the application of this research outweigh this risk.
Motisha ya kazi hii ni kulinganisha mbinu za sasa za NLP katika mazingira ya rasilimali chache na kujadili jinsi mifumo tofauti inavyoweza kutumika katika miktadha tofauti kulingana na matokeo, ikichangia kwa ujumla katika mjadala kuhusu jinsi mbinu za NLP zinavyoweza kutumika kunufaisha jamii za lugha na kusaidia uundaji wa rasilimali zaidi za kiisimu. Ingawa matumaini ni kuunga mkono jamii ya lugha, ujumuishaji wa mbinu za kikompyuta pia unaleta hatari ya ugeuzwaji lugha kuwa bidhaa na kunyang'anywa mali miliki ya jamii. Utafiti huu unawasilishwa kwa imani kwamba manufaa ya sasa yanayohusiana na matumizi ya utafiti huu yanazidi hatari hii.
Acknowledgements
Shukrani
This research was supported in part by Lilly Endowment, Inc., through its support for the Indiana University Pervasive Technology Institute.
Utafiti huu uliungwa mkono kwa sehemu na Lilly Endowment, Inc., kupitia msaada wake kwa Indiana University Pervasive Technology Institute.
References
Marejeo
STAN Adriana. 2019. Input encoding for sequence-to-sequence learning of romanian grapheme-to-phoneme conversion. In 2019 International Conference on Speech Technology and Human-Computer Dialogue (SpeD), pages 1-6. IEEE.
Maha Alkhairy, Afshan Jafri, and David A Smith. 2020. Finite state machine pattern-root arabic morphological generator, analyzer and diacritizer. In Proceedings of the Twelfth Language Resources and Evaluation Conference, pages 3834-3841.
Jochen S Arndt. 2019. Engineered zuluness: Language, education, and ethnic identity in south africa, 1835-1990. The Journal of the Middle East and Africa, 10(3):211-235.
Mayce Al Azawi, Muhammad Zeshan Afzal, and Thomas M Breuel. 2013. Normalizing historical orthography for ocr historical documents using lstm. In Proceedings of the 2nd International Workshop on Historical Document Imaging and Processing, pages 80-85.
Yasser Mohseni Behbahani, Bagher Babaali, and Mussa Turdalyuly. 2016. Persian sentences to phoneme sequences conversion based on recurrent neural networks. Open Computer Science, 6(1):219-225.
Steven Bird. 2001. Orthography and identity in cameroon. Written Language & Literacy, 4(2):131-162.
David M. Eberhard, Gary F. Simons, and Charles D. Fennig. 2022. Ethnologue: Languages of the World, twenty-fifth edition. SIL International.
Fatima Hamlaoui, Emmanuel-Moselly Makasso, Markus Müller, Jonas Engelmann, Gilles Adda, Alex Waibel, and Sebastian Stüker. 2018. BUL-Basaa: A bilingual basaa-French speech corpus for the evaluation of language documentation tools. In Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC 2018), Miyazaki, Japan. European Language Resources Association (ELRA).
Rhonda L. Hartell. 1993. Alphabets of africa. SIL International.
Sepp Hochreiter and Jürgen Schmidhuber. 1997. Long short-term memory. Neural computation, 9(8):1735-1780.
Larry M Hyman. 2003. Basaá (a43). The Bantu languages, pages 257-282.
Carina Jahani. 1989. Standardization and orthography in the Balochi language. Ph.D. thesis, Acta Universitatis Upsaliensis.
Tanmai Khanna, Jonathan N Washington, Francis M Tyers, Sevilay Bayatlı, Daniel G Swanson, Tommi A Pirinen, Irene Tang, and Hèctor Alòs i Font. 2021. Recent advances in apertium, a free/open-source rule-based machine translation platform for low-resource languages. Machine Translation, 35(4):475-502.
Guillaume Klein, François Hernandez, Vincent Nguyen, and Jean Senellart. 2020. The opennmt neural machine translation toolkit: 2020 edition. In Proceedings of the 14th Conference of the Association for Machine Translation in the Americas (Volume 1: Research Track), pages 102-109.
Pierre Lemb and François de Gastines. 1973. Dictionnaire basaá-français, avec un préface par meinrad hebga edition. Collège Libermann, Douala.
Nicholas Limerick. 2018. Kichwa or quichua? competing alphabets, political histories, and complicated reading in indigenous languages. Comparative Education Review, 62(1):103-124.
Zhinan Liu, Feilong Bao, and Guanglai Gao. 2018. Mongolian grapheme to phoneme conversion by using hybrid approach. In Natural Language Processing and Chinese Computing: 7th CCF International Conference, NLPCC 2018, Hohhot, China, August 26-30, 2018, Proceedings, Part I 7, pages 40-50. Springer.
Minh-Thang Luong, Hieu Pham, and Christopher D Manning. 2015. Effective approaches to attention-based neural machine translation. arXiv preprint arXiv:1508.04025.
Emmanuel-Moselly Makasso and Seunghun J. Lee. 2015. Basaá. Journal of the International Phonetic Association, 45(1):7179.
Kavya Manohar, AR Jayan, and Rajeev Rajan. 2022. Mlphon: A multifunctional grapheme-phoneme conversion tool using finite state transducers. IEEE Access, 10:97555-97575.
Etienne Sadembouo Maurice Tadadjeu. 1979. Alphabet général des langues camerounaises / General Alphabet of Cameroon Languages. Université de Yaoundé, SIL Internationale, University of Yaoundé, SIL International.
Rebecca L Moreton et al. 1968. Cameroon basaa. Inspection copy available from Foreign Languages Program, Center for Applied Linguistics.
Ulrike Mosel. 2004. Dictionary making in endangered speech communities. Language documentation and description, 2:39-54.
Emmanuel Ngué Um, Émilie Eliette, Caroline Ngo Tjomb Assembe, and Francis Morton Tyers. 2022. Developing a rule-based machine-translation system, ewondo-french-ewondo. International Journal of Humanities and Arts Computing, 16(2):166-181.
Ilya Nikitin, Brian O'Connor, and Anastasia Safonova. 2022. Tone prediction and orthographic conversion for basaa. arXiv preprint arXiv:2210.06986.
Pierre Emmanuel. Njock. 2019. àsàa - French - English - German Dictionary. Dallas: Webonary.org.
Iroro Orife. 2018. Attentive sequence-to-sequence learning for diacritic restoration of yorùbá language text. In Interspeech.
Kirk R Person. 2009. Heritage scripts, technical transcriptions, and practical orthographies: a middle path towards educational excellence and cultural preservation for thailands ethnic minority languages. In Proceedings from the international conference on national language policy: Language diversity for national unity.
Mihaela Rosca and Thomas Breuel. 2016. Sequenceto-sequence neural network models for transliteration. arXiv preprint arXiv:1610.09565.
Fotini Simistira, Adnan Ul-Hassan, Vassilis Papavassiliou, Basilis Gatos, Vassilis Katsouros, and Marcus Liwicki. 2015. Recognition of historical greek polytonic scripts using lstm networks. In 2015 13th International Conference on Document Analysis and Recognition (ICDAR), pages 766-770. IEEE.
Daniel Swanson and Nick Howell. 2021. Lexd: A finite-state lexicon compiler for non-suffixational morphologies. In Mika Hämäläinen, Niko Partanen, and Khalid Alnajjar, editors, Multilingual Facilitation. University of Helsinki Library.
Scientific United Nations Educational and Cultural Organization. 1966. Meeting of a group of experts for the unification of alphabets of national languages. Bamako, Mali, 28 February 5 March 1966. Final report. United Nations Educational, Scientific and Cultural Organization, UNESCO.
Jonathan Washington, Felipe Lopez, and Brook Lillehaugen. 2021. Towards a morphological transducer and orthography converter for western tlacolula valley zapotec. In Proceedings of the First Workshop on Natural Language Processing for Indigenous Languages of the Americas, pages 185-193.
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
O’neil, A., Swanson, D., Pugh, R., Tyers, F., & Um, E. N. (2023). Comparing methods of orthographic conversion for Bàsàá, a language of Cameroon. In Proceedings of the Fourth workshop on Resources for African Indigenous Languages (RAIL 2023) (pp. 97-105). https://doi.org/10.18653/v1/2023.rail-1.11
@inproceedings{oneil-etal-2023-comparing,
title = "Comparing methods of orthographic conversion for B{\`a}s{\`a}{\'a}, a language of {C}ameroon",
author = "O{'}neil, Alexandra and
Swanson, Daniel and
Pugh, Robert and
Tyers, Francis and
Ngue Um, Emmanuel",
editor = "Mabuya, Rooweither and
Mthobela, Don and
Setaka, Mmasibidi and
Van Zaanen, Menno",
booktitle = "Proceedings of the Fourth workshop on Resources for {A}frican Indigenous Languages ({RAIL} 2023)",
month = may,
year = "2023",
address = "Dubrovnik, Croatia",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2023.rail-1.11/",
doi = "10.18653/v1/2023.rail-1.11",
pages = "97--105"
}TY - CONF AU - O’neil, Alexandra AU - Swanson, Daniel AU - Pugh, Robert AU - Tyers, Francis AU - Um, Emmanuel Ngue TI - Comparing methods of orthographic conversion for Bàsàá, a language of Cameroon T2 - Proceedings of the Fourth workshop on Resources for African Indigenous Languages (RAIL 2023) PY - 2023 SP - 97 EP - 105 DO - 10.18653/v1/2023.rail-1.11 UR - https://aclanthology.org/2023.rail-1.11/ LA - en ER -
Translations have their own pages, each with a citation.