A Basic Language Technology Toolkit for Quechua
Total Page:16
File Type:pdf, Size:1020Kb
Zurich Open Repository and Archive University of Zurich Main Library Strickhofstrasse 39 CH-8057 Zurich www.zora.uzh.ch Year: 2015 A Basic Language Technology Toolkit for Quechua Rios, Annette Abstract: In this thesis, we describe the development of several natural language processing tools and resources for the Andean language Cuzco Quechua as part of the SQUOIA project at the University of Zurich. The main focus of this work lies on the implementation of a machine translation system for the language pair Spanish-Cuzco Quechua. Since the target language Quechua is not only a non-mainstream language in the field of computational linguistics, but also typologically quite different from thesource language Spanish, several rather unusual problems became evident, and we had to find solutions in order to deal with them. Therefore, the first part of this thesis presents monolingual tools and resources thatare not directly related to machine translation, but are nevertheless indispensable. The main contributions of this thesis are as follows: - We built a hybrid machine translation system that can translate Spanish text into Cuzco Quechua. The core system is a classical rule-based transfer engine, however, several statistical modules are included for tasks that cannot be resolved reliably with rules. - We implemented a text normalization pipeline that automatically rewrites Quechua texts in different orthographies or dialects to the official Peruvian standard orthography. This includes a tool for the morphological analysis of Quechua words that achieves high coverage. Furthermore, we also created a slightly adapted version that can be used as spell checker back-end, in combination with a plug-in for the open-source productivity suite LibreOffice/OpenOffice. - We built a Quechua dependency treebank of about 2000 annotated sentences, that provided not only training data for some of the translation modules, but also served as a source of verification, since it allows to observe the distribution of certain syntactic and morphological structures. Furthermore, we trained a statistical parser on the treebank and thus have now a complete pipeline to morphologically analyze, disambiguate and then parse Quechua texts. Apart from the scientific interest in developing tools and applications for a language that is typologically distant from the main stream languages in computational linguistics, we hope that the various resources presented in this thesis will be useful not only for language learners and linguists, but also to Quechua speakers who want to use modern technology in their native language. Posted at the Zurich Open Repository and Archive, University of Zurich ZORA URL: https://doi.org/10.5167/uzh-119943 Dissertation Published Version Originally published at: Rios, Annette. A Basic Language Technology Toolkit for Quechua. 2015, University of Zurich, Faculty of Arts. A Basic Language Technology Toolkit for Quechua A thesis submitted in fulfilment of the requirements for the degree of Doctor of Philosophy to the Faculty of Arts of the University of Zurich by Annette Rios Accepted in the Autumn Term 2015 on the Recommendation of the Doctoral Committee: Prof. Dr. Martin Volk (main advisor) Prof. Dr. Balthasar Bickel Zurich, 2015 ii Abstract In this thesis, we describe the development of several natural language processing tools and resources for the Andean language Cuzco Quechua as part of the SQUOIA project at the University of Zurich. The main focus of this work lies on the implementation of a machine translation system for the language pair Spanish-Cuzco Quechua. Since the target language Quechua is not only a non-mainstream language in the field of computational linguistics, but also typologically quite different from the source language Spanish, several rather unusual problems became evident, and we had to find solutions in order to deal with them. Therefore, the first part of this thesis presents monolingual tools and resources that are not directly related to machine translation, but are nevertheless indispensable. The main contributions of this thesis are as follows: • We built a hybrid machine translation system that can translate Spanish text into Cuzco Quechua. The core system is a classical rule-based transfer engine, however, several statistical modules are included for tasks that cannot be resolved reliably with rules. • We implemented a text normalization pipeline that automatically rewrites Quechua texts in different orthographies or dialects to the official Peruvian standard orthog- raphy. This includes a tool for the morphological analysis of Quechua words that achieves high coverage. Furthermore, we also created a slightly adapted version that can be used as spell checker back-end, in combination with a plug-in for the open-source productivity suite LibreOffice/OpenOffice. • We built a Quechua dependency treebank of about 2000 annotated sentences, that provided not only training data for some of the translation modules, but also served as a source of verification, since it allows to observe the distribution of cer- tain syntactic and morphological structures. Furthermore, we trained a statistical parser on the treebank and thus have now a complete pipeline to morphologically analyze, disambiguate and then parse Quechua texts. All resources and tools are freely available from the projects website.1 Apart from the scientific interest in developing tools and applications for a language that is typologically distant from the main stream languages in computational linguistics, we hope that the various resources presented in this thesis will be useful not only for language learners and linguists, but also to Quechua speakers who want to use modern technology in their native language. 1https://github.com/ariosquoia/squoia Acknowledgements Above all, I would like to thank my supervisor Martin Volk for his support and guidance during the four years of this project. I am also very grateful for the continued assis- tance, endless discussions and many laughs with my fellow researcher in the SQUOIA project, Anne G¨ohring. I would also like to thank the members of the doctoral com- mittee, Balthasar Bickel and Paul Heggarty, who provided a detailed review with many suggestions for improvement. Moreover, I wish to thank the people in Peru that made this work possible: • Richard Castro Mamani for the collaboration on the spell checkers, the manage- ment and organization of the evaluation of the MT system and the translations for the treebank • Roger Gonzalo Segura for the syntactic annotation and the numerous discussions about Quechua syntax • C´esar Morante Luna for translations, corrections and filling the gaps of the bilin- gual dictionary of the MT system • Virginia Mamani Mamani and Irma Alvarez´ Ccoscco for the contribution of the translations of the treebank texts • Juan Cruz Tello for providing contacts and general support of the project Furthermore, I would like to thank all my colleagues at the Institute of Computational Linguistics, especially Simon Clematide for the provided help with the finite-state tools and my fellow PhD students Magdalena Plamada, for general advice on MT related issues, Don Tuggener for ideas and discussions about coreference resolution to deal with Quechua switch-reference, Johannes Gra¨en for the technical support with the web- related parts of this thesis, and my former colleague Rico Sennrich for his valuable tips and tricks concerning the machine learning parts of the Spanish-Quechua translation system. I would also like to thank my family, especially Naira and my mother Susanne for their patience and support during these past four years. Most importantly, I am grateful for the financial support provided by the Swiss National Science Foundation under grants 100015 132219 and 100015 149841. iii Contents Abstract ii Acknowledgements iii Contents iv List of Figures ix List of Tables xi Abbreviations xiii 1 Introduction 1 1.1 Overview .................................... 1 1.2 The Quechua Language Family ........................ 2 1.2.1 Distribution of Quechua Languages .................. 3 1.3 NLP for Quechua ................................ 4 1.4 The SQUOIA Project ............................. 6 1.5 Research Questions ............................... 8 1.6 Thesis Outline ................................. 8 I Monolingual Quechua Resources 11 2 Quechua Morphology 13 2.1 Introduction ................................... 13 2.2 Orthographic Variation ............................ 16 2.3 Morphological Analysis ............................ 17 2.3.1 Finite-State Networks ......................... 18 2.3.2 Finite-State Analysis for Quechua . 22 2.4 Morphological Disambiguation and Text Normalization . 26 2.4.1 Model 1: Disambiguation of Ambiguous Roots . 26 2.4.2 Model 2: Disambiguation of Nominalizing and Verbalizing Suffixes 30 2.4.3 Model 3: Disambiguation of Verbal Morphology . 31 2.4.4 Model 4: Disambiguation of Independent Suffixes . 31 2.4.5 Performance of the Four Models ................... 32 2.4.6 Evaluation ............................... 36 v Contents vi 2.5 Spell Checking ................................. 39 2.6 Summary .................................... 41 3 Quechua Treebank 43 3.1 Introduction ................................... 43 3.2 Corpus ...................................... 45 3.3 Quechua Dependency Annotation Scheme . 47 3.3.1 Case Suffixes .............................. 48 3.3.2 Elision of Copula ............................ 48 3.3.3 Coordination .............................. 48 3.3.4 Focus .................................