<?xml version="1.0"?><!DOCTYPE article SYSTEM "/project/take/software/searchbench_offline_processing/paperxml_generator/aclextractor/src/python/../resource/dtd/paperxml.dtd"><article><header><firstpageheader><page local="1" global="335"/><title>Complexity, Two-Level Morphology and Finnish</title><author surname="Koskenniemi" givenname="Kimmo"></author><author surname="Church" givenname="Kenneth Ward"></author></firstpageheader><frontmatter><p>Complexify, Two-Level Morphology and Fiiuiish Kimmo Koskenmemi Kenneth Ward Church 88</p></frontmatter><abstract>Although, Two-Level Morphology has been found in practice to be an extremely efficient method for processing Finnish words on very small machines, [Barton86] has recently shown the method to be NP-hard. This paper will discuss Barton's theoretical argument and explain why it has not been a problem for us in practice. </abstract></header><body><section number="1." title="The Two-Le vel Model"><p>The two-level model provides a language independent framework for describing phonological and morphological phenomena associated with word inflection, derivation and compounding. The model can be expressed in terms of finite-state machines, and it is easy to implement. The model has, in fact, two aspects: (1) it is a linguistic formalism for describing phonological phenomena, and (2) it is a computational apparatus which implements descriptions of particular languages as operational systems capable of recognizing and generating word-forms.</p><p>The model coasists of three représentions (morphological, lexical and surface forms) and two systems (the lexicon and phonological rules) relating them:</p><p>morphemes in word-form <b>I</b> lexical representation of word-form <b>I</b></p><doubt alpha="100.0" length="7" tooSmall="False" monospace="0.0">LEXICON</doubt><p>TWO-LEVEL RUI.ES surface representation of word-form</p><p>The surface representation is typically a phonemic representation of word-form, but sometimes graphic or written forms are used instead. The lexical representation is an underlying (postulated) morphophonemic representation of the word stem and affixes. These two representations need not be identical, and in case there are phonological alternations in the language, these representations are more or less different. The task of the two-level rule component is to account for any discrepancies between these representations.</p><p>The task of the lexicon component is two-fold. First, it specifies what kinds of lexical representations are possible according to the inventory of known words and their possible inflectional forms, plus derivations and compounds according to productive rules. The second task of the lexicon is to associate proper morphemes to lexical representations. The task of the lexicon component is considered to be universal.</p><p>Many languages can be quite well described with rather simple lexicon structures. The lexicon needed for Finnish is basically a set of sublexicons (for stems, case endings, possessive suffixes, clitic particles, tense of verbs, person, etc.). Each entry specifies all continuation lexicons which are possible after that morpheme. This scheme is equivalent to a (partly nondeterministic) finite slate transition network.</p><p>Two-level rules compare lexical and surface representations. The partitive plural of the Finnish word lasi 'glass' is laseja. This form might be represented as a stem lasi plus a plural ending I plus a partitive ending A. The correspondence would be then be:</p></section><section number="1" title="a s i I A lexical laseja surface"><p>There are three discrepancies here: the stem final i is realized as e (and not as i like in singuler forms), the plural Ï is realized as j instead of i, and the partitive A is realized as the back vowel a (and not as front vowel ä ).<page local="2" global="336"/> The first discrepancy is described with a two-level rule:</p><doubt alpha="25.0" length="12" tooSmall="False" monospace="0.0">i:e &lt;=&gt; _ I:</doubt><p>This states that lexical i is realized as surface e if and only if it is followed by a lexical I (the plural affix). The plural I itself is a bit different from other i's because it is realized as j if and only if it occurs between two surface vowels (let V denote the set of vowels):</p><doubt alpha="26.7" length="15" tooSmall="False" monospace="0.0">I:j &lt;=&gt; :V _ :V</doubt><p>The realization of partitive A is an instance of Finnish vowel harmony, which causes endings to agreee in frontness or backness with stem vowels. Thus A has two possible realizations: it must be a back vowel iff there are back vowels in the stem:</p><doubt alpha="54.1" length="37" tooSmall="False" monospace="0.0">[A:aI0:o | U:u] =&gt; :Vback :Vnonfront*</doubt><p>The set Vback contains the back vowels a, o, and u whereas Vnonfront contains anything that does not have one of ä ö ii on surface.</p><p>Phonological two-level descriptions have been made for about twenty different languages up to now. Only about a third of them can be considered to be comprehensive. Typically a description co ' • <b><i>M </i></b>of 7-40 rules (English and Classical Greek being the low and high externes).</p><p>A special compiler is used for converting these rules into finite state transducers (Karttunen, Koskenniemi, and Kaplan, 1987). The resulting machines are similar to the ones that were hand compiled, eg. in (Koskenniemi, 1983).</p></section><section number="2." title="Barton's Challenge"><p>[Barton86] poses a challenge to find the constraint that makes words of a natural language easy to process:</p><p>"The Kimmo algorithms contain the seeds of complexity, for local evidence does not always show how to construct a lexical-surface correspondence that will satisfy the constraints expressed in a set of two-level automata. These seeds can be exploited in mathematical <b>,336 ■</b> reductions to show that two-level automata can describe computationally difficult problems in a very natural way. It follows that the finite-state two-level framework itself cannot guarantee computational efficiency. If the words of natural languages are easy to analyze, the efficiency of processing must result from some additional property that natural languages have, beyond those that are captured in the two-level model. Otherwise, computationally difficult problems might tum up in the two-level automata for some natural language, just as they do in the artificially constructed languages here. In fact, the reductions are abstractly modeled on the Kimmo treatment of harmony processes and other long-distance dependencies in natural languages." [Barton86, p56]</p><p>We suggest that words of natural languages are easy to analyze because morphological grammars are small. As Barton shows, two-level complexity grows rapidly with the number of harmony processes. But, fortunately, natural languages don't have very many harmony processes.</p><p>Any single language seems to have at most two harmony processes:</p><doubt alpha="59.5" length="42" tooSmall="False" monospace="0.0">• zero (most, ie. some 88 % of languages),</doubt><p>• one (Uralic, Tungusic, Sahaptian) or</p><p>• two (most Altaic languages)</p><p>Even in principle, a three dimensional vowel harmony is rather improbable, because it would lead to a total (or almost total) collapse of distinctions between vowels. In most languages there are not enough distinctive features in vowels to make a four-way harmony even possible. We have not found any reliable accounts for more than two harmony-like processes in a single language.</p><p>Normally, most complexity results describe space/time costs as a function of the size of the input. Claims in support of the two-level model are generally of this form; speed is generally measured in terms of numbers of letters processed per second. Barton's result is somewhat non-standard; it describes costs as a function of the size of the grammar (or more precisely, the number of harmony processes). Complexity results generally don't discuss the "grammar constant"  because any particular grammar has just a fixed (and very small number) of rules (such as harmony processes), and thus it isn't very helpful to know how the algorithm would perform if there were more, because there aren't.<page local="3" global="337"/></p><p>If phonological grammars were large and complex, there could be efficiency problems because processing time does depend on the size and structure of the grammar. However, since phonological grammars tend to be relatively small (when compared with the size of the input), it is fairly safe to adopt the grammar constant assumption.</p></section><section number="3." title="Barton's Reduction"><p>Let us consider the satisfaction reduction in [Barton86]. Barton used a grammar like the one below to reduce two-level generation to the satisfaction problem.</p><p>In tliis artificial grammar, it is assumed that there are an arbitrary number of harmony processes over the letters: a, b, c, d, e, f, ....; each letter must correspond to either T (truth) or F (falsehood), consistently throughout the word. This reduction is a generalization of harmony processes which are common in certain families of natural languages. In these languages, stem (and affix) vowels must agree in one or more of the following distinctive features:</p><p>° Front/back vowels (palatal, velar harmony), eg. in Uralic and Turcic languages. (Replaced by coasonantal palatalization in Karaite, a Turcic language.)</p><p>» Rounded/unrounded vowels (labial harmony), eg. in Turcic languages• Tongue height, eg. Tungusic languages</p><p>• Nasalization, and</p><p>» Pharyngealization eg. emphatic consonants and vowels in Semitic languages</p><p>Some processes are classified as umlaut rather than vowel hannonies, but behave similarly. One, still different but relevant process, has been reported in Takelma (Sapir 1922). There, a suffixal /a/ is replaced with an /i/, if the following suffix contains /i/. This rule derives [ikuminininink] from underlying <b>/ikumanananink/.</b><b></b></p><p>It may be <b>a </b>mistake to classify <b>all </b>of these processes as vowel harmonies, and if so, it only strengthens the claim that languages don't have very many vowel harmony processes.</p><p><b>Barton's Satisfaction Grammar</b> d,e,f-consistency all follow the same pattern</p><doubt alpha="50.0" length="36" tooSmall="False" monospace="0.0">T F , - a b c d e f NULL 0 ANY = END</doubt><doubt alpha="62.9" length="35" tooSmall="False" monospace="0.0">"a-consistency (or a-harmony)"  3 3</doubt><doubt alpha="40.0" length="5" tooSmall="False" monospace="0.0">a a =</doubt><doubt alpha="8.7" length="23" tooSmall="False" monospace="0.0">TF=1: 2 3 1 2: 2023:033</doubt><doubt alpha="61.1" length="36" tooSmall="False" monospace="0.0">"b-consistency (or b-harmony)"   3 3</doubt><doubt alpha="66.7" length="3" tooSmall="False" monospace="0.0">bb=</doubt><doubt alpha="61.1" length="36" tooSmall="False" monospace="0.0">"c-consistency (or c-harmony)"   3 3</doubt><doubt alpha="40.0" length="5" tooSmall="False" monospace="0.0">c c =</doubt><doubt alpha="60.0" length="20" tooSmall="False" monospace="0.0">"satisfaction"   3 4</doubt><doubt alpha="6.2" length="32" tooSmall="False" monospace="0.0">TF-,1.   21302:   2 2 2 1 3.1200</doubt><p>Empirically, we observe that generation time is linear with the length of the word and exponential with the number of harmony processes. That is, given Barton's Satisfaction grammar, words of the form <i>aaa...* </i>are processed in time linear with the number of as, but words for the form <i>abc... </i>are processed in time exponential with the number of different characters.</p><page local="4" global="338"/><p><b>Linear with Input Length</b></p></section><section number="4." title="Experience With Finnish"><p><b>Input Steps </b><b>in</b><b> Generation</b> <b>Exponential with</b> <b>Number of Harmony Processes</b></p><doubt alpha="33.3" length="3" tooSmall="False" monospace="0.0">a 2</doubt><doubt alpha="50.0" length="4" tooSmall="False" monospace="0.0">aa 4</doubt><doubt alpha="60.0" length="5" tooSmall="False" monospace="0.0">aaa 6</doubt><doubt alpha="66.7" length="6" tooSmall="False" monospace="0.0">aaaa 8</doubt><doubt alpha="62.5" length="8" tooSmall="False" monospace="0.0">aaaaa 10</doubt><doubt alpha="12.5" length="8" tooSmall="False" monospace="0.0">ä ~~~~ 2</doubt><doubt alpha="50.0" length="4" tooSmall="False" monospace="0.0">ab 6</doubt><doubt alpha="50.0" length="6" tooSmall="False" monospace="0.0">abc 14</doubt><doubt alpha="57.1" length="7" tooSmall="False" monospace="0.0">abed 30</doubt><doubt alpha="62.5" length="8" tooSmall="False" monospace="0.0">abede 62</doubt><doubt alpha="60.0" length="10" tooSmall="False" monospace="0.0">abedef 126</doubt><p>Barton showed that generating words in the two-level model with <i>n </i>harmony processes can be reduced to a satisfaction problem with <i>n </i>variables. Thus, it is not surprising to find that the two-level model takes time exponential with the number of harmony processes.<footnote anchor="1"/></p><p><b>1. Most harmonies are progressive, ie. the harmony propagates from left to right. A few exceptions to this are mentioned in literature: Sahaptian (including Nez Perce), Luorawetlan (including Chuckchee), Dlola Fogny, and Kalenjin languges. These are said to have so called dominant and recessive vowels where an occurrence of a dominant vowel in the stem or even in affixes causes the whole word to contain only dominant variants of vowels. We have found no references to languages with more than one harmony process combined with (potentially) regressive, or right-to-left direction.</b></p><p><b>Left-to-right harmony seems to have a virtually unlimited scope because, in addition to inflectional affixes, also derivational suffixes that can be recursively attached to the stem.</b></p><p><b>Neither progressive nor regressive harmony-like processes cause any nondeterminism in recognition in the Two-Level Model. Even generation of word-forms with progressive harmonies is always quite deterministic. The only truly nondeterministic behavior with vowel harmonies occurs in the generation with regressive harmonies where there is no way to choose among possible realizations of prefix vowels until the word root is seen.</b></p><p><b>An artifical (and almost maximal) example of the unbounded character of Finnish vowel harmony is the following where back harmony propagates from the verbal root (havai- 'observe') all the way to the last</b></p><p>However, if there are only a fixed (and small) number of harmony processes, as there are in any natural language, then processing time is found to be linear with input length. This has been our experience as verified by the following experiment. We collected a word list and measured recognition time as a function of word length in characters. The word list is a combination of two samples from a Finnish newspaper corpus (seven issues of Heisingin Sanomat consisting of some 400,000 running words):</p><p>• all Finnish words with 17 or more letter's in the whole corpus, plus</p><p>• some 700 words of running text from the same corpus.</p><p>(This construction produces very few words with 16 characters.)</p><p>Figure 1 plots recognition time (in steps) as a function of word length. Note that the relationship is well modeled by the linear regression line with a slope of 2.43 steps/letter. The data show no hint of an exponential relationship between processing time and word length.</p><p>One of the two outliers is "lakiasiaintoimistoa," an 18 letter word that takes 206 steps (11.4 steps/letter). Part of the trouble can be attributed to ambiguity; this word happens to be two ways ambiguous. In addition, there is a false path "laki+asia+into+imis..." that consumes even more resources. The fit of the regression line can be improved considerably by removing these ambiguous words as illustrated in figure 2.</p></section><section number="5." title="Conclusion"><p>A  disclaimer  is  in  order.   The two-level</p><p><b>clitic particle (over seven derivational, one case ending and a possessive suffix):</b></p><p><b>haval-nTO-llks-tU-ttA-niAttOm-Ut'Te-HA nsA-kAAn</b> <b>havai nno His tu tta ma ttom uude lia nsa kaan</b><page local="5" global="339"/></p><p>formalism does not guarantee efficient implementations as such; the formalism may be inappropriate for some problems (such as processing an unnatural language with hundreds or mousands of phonological processes). Moreover, the choice of two-level rules and lexical representations may affect perfonnance. lire formalism permits several styles of description (corresponding roughly to abstract, concrete or natural phonology, etc). Some may be more suitable than others for a particular problem. More generally, finite state automata are not the solution to all problems; they are inadequate for some, and non-optimal for others.</p><p>However, the two-level model has made a significant contribution. It has enabled the construction of a comprehensive, efficient and compact morphological recognizer of Finnish with broad coverage, an important practical achievement that had not been accomplished before the introduction of the two-level model. To be tter understand why the two-level model is able 10 achieve broad coverage of Finnish with modest computing resources, and where the two-level model might break down, it is important to analyze time and space performance very carefully. In so doing, certain idealizations will need to be introduced. For instance, we have found it helpful to consider recognition time as a function of word length. Other idealizations are possible. Barton has discussed generation time as a function of the number of harmony processes, and by implication, the numlx;r of phonological processes in general. This idealization, in our opinion, is not helpful; it confuses the picture by considering a host of artificial languages that bear little resemblence to reality. Natural languages do not have very many phonological processes, but they do have a comparatively large number of words.</p><p>Karttunen, L., Koskenniemi, K., and Kaplan, R., 1987, "A Compiler for Two-level Phonological Rules," in Dalrymple, M., Kaplan, R., Karttunen, L., Koskenniemi, K., Shaio, S., and Wescoat, M., "Tools for Morphological Analysis," Report No. CSLJ-87-108, Center for the Study of Language and Information, Stanford University.</p><p>Koskenniemi, K., 1983, "Two-Level Morphology: A General Computational Model for Word-Form Recognition and Production," Publications No. 11, University of Helsinki, Dept of General Linguistics, Hallituskatu 11-33, SF-00100 Helsinki 10, Finland.</p><p>Sapir, E., 1922, "The Takelma language of southwestern Oregon," in F. Boas (ed.), "Handbook of American Indian Languages II," pp. 1-296, BAE Bulletin 40 (II), Washington.</p><p>Ultan, R., 1973, "Some Reflections on Vowel Harmony." In "Working Papers in Language Universals," Number 12, November 1973, pp. 37-67. (Language Universals Project, Committee on Linguistics, Stanford University, Stanford, California.)</p><doubt alpha="64.5" length="76" tooSmall="False" monospace="0.0">Vago, R., (ed.), 1980, Issues in Vowel Harmony. (John Benjamins, Amsterdam.)</doubt></section><references><p>Barton, E., 1986, "Computational Complexity in Two-Level Morphology, in 24th Annual Meeting of    the    Association    for Computational</p><p>Linguistics. ' '</p><p>Baton, E., 1987, Berwick, R. and Ristad, E., "The Complexity of Two-Level Morphology," chapter 5, in Computational Complexity and Natural Language, MTT Press, Cambridge, MA.</p><page local="6" global="340"/><p><b>All Words</b> <b>Word Length Figure 1</b> <b>Unambiguous Words Only</b></p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">250</doubt><doubt alpha="100.0" length="3" tooSmall="False" monospace="0.0">inn</doubt></references></body></article>