Code-Switching and Back-Transliteration Using a Bilingual Model
What it is about
The paper handles Judeo-Arabic, Arabic written in Hebrew letters with Hebrew and Aramaic borrowings, in two steps. First, a token classifier marks the non-Arabic words. It is fine-tuned from the bilingual HeArBERT model on the Friedberg Judeo-Arabic Project corpus (about 3.9 million words, 34% of the tokens non-Arabic); it reaches 98.46% accuracy and an F1 of 97.78% for the non-Arabic label. Second, a character-level classifier maps each Hebrew letter either to an Arabic letter or to an epsilon tag, the deletion of a letter. It is trained on parallel Judeo-Arabic and Arabic texts (Kuzari, Mishnah commentary, Beliefs), aligned by a new anchor-word algorithm (align rates 95.8%, 92.2% and 74.1%), and extended with synthetic Judeo-Arabic made from Arabic philosophy texts by a letter-mapping table. On the Kuzari test set the label error rate is 1.40%, against 2.48% for the best prior system and 9.51% for a simple letter mapping.
Ideas
- I1. Anchor-word alignment: a word that occurs once on each side, has at least the average word length, and matches within five word positions of its place in the other text is an anchor; cut both texts at anchors and match words inside each segment. Use it to align Targum Onkelos with the Hebrew text in
languages/arc-x-targum/, the waymaculalines up verses. - I2. Morpheme-level language tag: an Arabic clitic on a Hebrew stem (the paper's al- on maskilim) gets its own tag, and the stem gets the other, when the stem is rare in one lexicon and frequent in the other. This is a rule for
tools/langseg, which now cuts text only at word level, and would give mixed Hebrew and Aramaic words a split. - I3. Epsilon as deletion: a letter table with a deletion option is a small finite-state transducer, and its letter error rate is a clean measure. Use the same form for script-mapping tables in
languages/jpa/orlanguages/tmr/and for correction rules intools/ocrfix.
For Mova
I1 goes into languages/arc-x-targum/ as an alignment step. I2 goes into tools/langseg (the varieties hbo, arc, tmr, jpa). I3 goes into tools/ocrfix. Judeo-Arabic is not a Mova variety; these are ideas on contact-script problems only, and the ideas are not tied to any other part of this paper.
Cite
@inproceedings{mitelman2024code,
title = {{Code-Switching and Back-Transliteration Using a Bilingual Model}},
author = {Mitelman, Daniel Weisberg and Dershowitz, Nachum and Bar, Kfir},
booktitle = {Findings of the Association for Computational Linguistics: EACL 2024},
year = {2024},
doi = {10.18653/v1/2024.findings-eacl.102},
url = {https://doi.org/10.18653/v1/2024.findings-eacl.102}
}References
- Kfir Bar, Nachum Dershowitz, Lior Wolf, Yackov Lubarsky, and Yaacov Choueka. 2015. Processing JudeoArabic texts. In Proceedings of the First Inter national Conference on Arabic Computational Lin guistics (ACLing ’15, Cairo, Egypt), pages 138–144. find
- Alex Graves, Santiago Fernández, Faustino Gomez, and Jürgen Schmidhuber. 2006. Connectionist temporal classification: Labelling unsegmented sequence data with recurrent neural networks. In Proceedings of the 23rd International Conference on Machine Learning, pages 369–376. ACM. ↗
- Judah HaLevi. 2012. The Kuzari – The Book of Refu tation and Proof on the Despised Faith. AlKamel Verlag, Freiberg. Transliterated and edited by Nabih Bashir with assistance of ‘Abed ’lSalam Muosa. find
- Benjamin Hary. 2018. JudeoArabic in the Arabic speaking world. In B. Hary and S. Benor, editors, Languages in Jewish Communities, Past and Present, pages 35–69. de Gruyter, Boston. find
- Adina Hoffman and Peter Cole. 2011. Sacred Trash: The Lost and Found World of the Cairo Geniza. Schocken, New York. find
- Ashti Afasyaw Jaf and Sema Koç Kayhan. 2021. Machinebased transliterate of Ottoman to Latin based script. Scientific Programming, 2021:1–8. find
- Sarvnaz Karimi, Falk Scholer, and Andrew Turpin. 2011. Machine transliteration survey. ACM Comput. Surv., 43(3). *Table 4: Results per letter, sorted by F1 score.* behaviors. While this choice omitted some infor mative Arabic characters, future work will employ various language models that include these marks. ↗
- Lorenz Nigst, Maxim Romanov, Sarah Bowen Sa vant, Masoumeh Seydi, and Peter Verkinderen. 2023. OpenITI: A machinereadable corpus of Islamicate texts. Zenodo. We see no potential ethical issues in this work. find
- Yoav Phillips. 2020. Identifying the Islamic sources of baḥya ibn paqūda’s: “kitāb alhidāya ʾilā farāʾiḍ alqulūb”: Using automatic transliteration and text reuse processes. Master’s thesis, Haifa University, July. find
- Aviad Rom. 2024. Processing dialectal Arabic with Transformerbased language models: Challenges and potential solutions. Thesis, Reichman University, Israel. G. M. Shahariar Shibli, Md. Tanvir Rouf Shawon, Anik Hassan Nibir, Md. find
- Zabed Miandad, and Nibir Chandra Mandal. 2023. Automatic back transliteration of Romanized Bengali (Banglish) to Bengali. Iran Journal of Computer Science, 6(1):69–80. ا ا ب ت ث ج ح خ د ذ ر ز س ش ص ض ط ظ ع غ ف ق ك ل م ن ه و ي ء ة ؤ ئ ى ε ب ت ث ج ح خ د ذ ر ز س ش ص ض ط ظ ع غ ف ق ك ل م ن ه و ي ء ة ؤ ئ ى ε 103 111 35 17 6142 33 97 847 3798 70 148 1989 1691 88 117 1017 1138 35 33 517 1 628 7 20 4 11329 18 3 2 53 46 *Table 5: Confusion matrix for all Arabic letters. Rows are predicted labels; columns are true labels.* Transliterated Arabic (output) find
This page in Markdown → https://md.mova.elamur.ai/free/en/docs/papers/aclbulk-2024-mitelman-code-switching-back-transliteration-bilingual/