Arxiv:2105.12428V1 [Cs.CL] 26 May 2021

Arxiv:2105.12428V1 [Cs.CL] 26 May 2021

Neural Morphology Dataset and Models for Multiple Languages, from the Large to the Endangered Mika Hämäläinen, Niko Partanen, Jack Rueter and Khalid Alnajjar Faculty of Arts University of Helsinki [email protected] Abstract machine translation (Pirinen et al., 2017). The transducers are also in constant use in several We train neural models for morpholog- real world applications such as online dictionar- ical analysis, generation and lemmatiza- ies (Rueter and Hämäläinen, 2019), spell check- tion for morphologically rich languages. ers (Trosterud and Moshagen, 2021), online cre- We present a method for automatically ative writing tools (Hämäläinen, 2018), automated extracting substantially large amount of news generation (Alnajjar et al., 2019), language training data from FSTs for 22 languages, learning tools (Antonsen and Argese, 2018) and out of which 17 are endangered. The neu- documentation of endangered languages (Gersten- ral models follow the same tagset as the berger et al., 2017; Wilbur, 2018). As an ad- FSTs in order to make it possible to use ditional important application we can mention them as fallback systems together with the the wide use of FSTs in the creation of Uni- FSTs. The source code1, models2 and versal Dependencies treebanks for low-resource datasets3 have been released on Zenodo. languages, at least with Erzya (Rueter and Ty- 1 Introduction ers, 2018), Northern Saami (Tyers and Sheyanova, 2017) Karelian (Pirinen, 2019a) and Komi-Zyrian Morphology is a powerful tool for languages to (Partanen et al., 2018). form new words out of existing ones through in- Especially in the context of endangered lan- flection, derivation and compounding. It is also a guages, accuracy is a virtue. Rule-based meth- compact way of packing a whole lot of informa- ods not only serve as NLP tools but also as a tion into a single word such as in the case of the way of documenting languages in a machine- Finnish word hatussanikinko (in my hat as well?). readable fashion. Members of language commu- This complexity, however, poses challenges for nities do not benefit, for example, from a neural NLP systems, and in the work concerning endan- spell checker that works to a degree in a closed test gered languages, morphology is one of the first set, but fails miserably in real world usage. On the NLP problems people address. contrary, a rule based description of morphology The GiellaLT infrastructure (Moshagen et al., can only go so far. New words appear and dis- 2014) has HFST-based (Lindén et al., 2013) finite- appear all the time in a language, and keeping up state transducers (FSTs) for several morphologi- with that pace is a never ending job. This is where cally rich (and mostly Uralic) languages. These arXiv:2105.12428v1 [cs.CL] 26 May 2021 neural models come in as they can learn to gen- FSTs are capable of lemmatization, morphological eralize rules for out-of-vocabulary words as well. analysis and morphological generation of different Pirinen (2019b) also showed recently that at least words. with Finnish the neural models do outperform the These transducers are at the core of this infras- rule-based models. This said, Finnish is already tructure, and they are in use in many higher level a larger language, so the experience doesn’t nec- NLP tasks, such as rule-based (Trosterud, 2004) essarily translate into low-resource scenario (see and neural disambiguation (Ens et al., 2019), de- Hämäläinen 2021). pendency parsing (Antonsen et al., 2010) and The purpose of this paper is to propose neu- 1 https://github.com/mikahama/uralicNLP/wiki/Neural- ral models for the three different tasks the Giel- morphology 2http://doi.org/10.5281/zenodo.3926769 laLT FSTs can handle: morphological analysis 3http://doi.org/10.5281/zenodo.3928628 (i.e. given a form such as kissan, produce the morphological reading +N+Sg+Gen), morpho- Latvian (lav), Eastern Mari (mhr), Western Mari logical generation (i.e. given a lemma and a (mrj), Namonuito (nmt), Olonets-Karelian (olo), morphology, generate the desired form such as Pite Sami (sje), Northern Sami (sme), Inari Sami kissa+N+Sg+Gen to kissan) and lemmatization (smn) and Udmurt (udm). A vast majority of (i.e. given a form, produce the lemma such as these languages are greatly endangered (Moseley, kissan to kissa ‘a cat’). The goal is not to replace 2010). the FSTs, but to produce neural fallback models We use the FSTs and dictionaries from the Giel- that can be used for words an FST does not cover. laLT with the UralicNLP (Hämäläinen, 2019) li- This way, the mistakes of the neural models can brary to build the datasets for training the mod- easily be fixed by fixing the FST, while the overall els. We do this in a clever way by taking all open coverage of the system increases by the fact that a class part-of-speech words from the dictionaries neural model can cover for an FST. for each language and use the FSTs to produce all The main goal of this paper is not to propose a morphological readings for them. The number of state of the art solution in neural morphology. The words in the GiellaLT dictionaries is shown in Ta- goal is to first build the resources needed to train ble 1. The FSTs do not let us do this by default, so such neural models so that they will follow the we build a regular expression transducer that finds same morphological tags as the GiellaLT FSTs, all possibilities for an input word and its part-of- and secondly train models that can be used to- speech.In order to build the regular expression, we gether with the FSTs. All of the trained models query all alphabets in the transducer that contain will be made publicly available in a Python library one of the following strings for exclusion: #, Der, that supports the use of the neural models and the Cmp or Err. This will remove compounds, er- FSTs simultaneously. The dataset built in this pa- roneously spelled forms and derivations. Deriva- per and the exact train, validation and test splits tions need to be excluded because otherwise the used in this paper have been made publicly avail- transducers would produce derivations of deriva- able for others to use on the permanent archiving tions of derivations and so on. Once the regular platform Zenodo. expression transducer is composed with the FST analyzer, we can use HFST to extract the trans- 2 Constructing the Dataset ducer paths to get a list of all the possible mor- We are well aware of the existence of the popular phological forms of the input word. From these, UniMorph dataset (McCarthy et al., 2020). How- we filter out Clt and Foc tags because these multi- ever, it does not suit our needs of two reasons. One ply the number of possible morphological forms, reason is the incompatible morphological tagset. especially since multiple different clitics can be Our goal is to build models that can directly be appended after each other, and some times even used side-by-side with the existing FSTs, which in multiple different orders. We also remove tags means that the data has to follow the same for- indicating non-standard forms, Use and Dial, and malism. Conversion is not a possibility, as the Sem tags that are used in language learning tools main reason we are not interested in using the Uni- as well as contextual disambiguation to catego- Morph data is its limited scope; not only does it rize semantically similar words. Table 2 shows not cover all the languages we are dealing with how many unique inflectional forms each part-of- in this paper, but it does not cover any cases of speech category has per language. complex morphology. For example, the Finnish We use the method described above to produce dataset does not cover possessive suffixes, ques- the data with all the open class part-of-speech tion markers, comparative, superlative etc. Such a words in the GiellaLT dictionaries for each lan- data would not be on par with the output produced guage. For languages with bigger dictionaries, by the FSTs. the maximum number of lemmas used per part of We produce the data for the following lan- speech is set to 2100, in which case the lemmas are guages: German (deu), Kven (fkv), Komi-Zyrian also picked at random. We use the typical split ra- (kpv), Mokhsa (mdf), Mansi (mns), Erzya (myv), tio and split 70% of the data for training, 15% for Norwegian Bokmål (nob), Russian (rus), South validation and 15% for testing. The split is done Sami (sma), Lule Sami (smj), Skolt Sami (sms), on the lemma level and for each part-of-speech Võro (vro), Finnish (fin), Komi-Permyak (koi), separately. This means that the test and valida- deu fin fkv koi kpv lav mdf mhr mns mrj myv nob olo rus sje sma sme smj smn sms udm vro N 8741 51916 5936 558 20042 9738 17196 14079 2263 2529 10234 32009 5942 24691 2685 5946 37943 4331 13826 21158 10722 4703 Adv 588 6036 652 89 2942 953 1771 2346 - 444 743 1743 14 2546 - 543 1314 343 1146 1729 985 122 V 4021 27875 1445 532 12504 2601 11983 9954 4924 2456 3781 7432 2782 14348 1751 5208 7724 3130 5436 5033 3669 4129 A 2768 13056 917 128 5218 1652 4407 5116 - 1031 2926 3236 2134 11054 185 645 2927 468 2295 3898 1550 1019 Table 1: The sizes of the GiellaLT dictionaries per part-of-speech deu fin fkv koi kpv lav mdf mhr mns mrj myv nob olo rus sje sma sme smj smn sms udm vro N 24 850 50 788 183 24 83 208 151 162 19 17 98 75 16 50 727 297 496 339 744 26 Adv 1 16 1 2 4 - 4 3 - 2 2 2 - 1 - 3 8 3 2 3 1 6 V 254 6667 139 198 249 1245 894 59 - 40 10 21 726 693 38 58 302 144 382 177 156 119 A 150 1244 77 4 244 44 127 4 - 2 5 15 217 39 52 75 1347 187 100 627 54 100 Table 2: Number of unique inflectional forms per part-of-speech category tion sets will consist exclusively of out of vocab- (Bick and Didriksen, 2015).

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    12 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us