Elamur Research

North-Sámi to Finnish rule-based machine translation system

Paper · 2017 · Ryan Johnson, Tommi A Pirinen, Tiina Puolakainen et al.

Summary

A Finnish reader can encounter a North Sámi sentence whose grammar follows a familiar pattern and still be unable to read it. The languages are related, but much of their vocabulary looks different, and the endings that express a grammatical relationship in one language may have to change in the other. The authors build an Apertium prototype for machine translation and evaluate it on the task of turning North Sámi text into Finnish. They envisage it helping readers in Finland understand North Sámi material. One example of the work involved is the direct object of a verb. A North Sámi accusative can correspond to a Finnish partitive, so identifying the word and finding its Finnish equivalent still leaves a decision about the form to write.

The translator makes these decisions in stages. It analyzes the North Sámi words, keeping several readings when a spelling is ambiguous, and then uses grammatical rules to narrow them down. A bilingual dictionary proposes Finnish equivalents, and contextual rules select among them. Local transfer rules can change features such as case before a generator builds the Finnish forms. The final stage restores the formatting set aside at the start. A worked example follows a relative pronoun through this sequence. The rules identify it as an object and request a different case in Finnish, yet the final line still shows the pronoun as unresolved.

The authors measure vocabulary coverage and the amount of editing needed in the Finnish output. The mean proportion of words receiving an analysis is 76,81 % in North Sámi Wikipedia and 92,45 % in the North Sámi New Testament. These are estimates of naïve coverage, which counts a word as covered whenever it receives an analysis. For translation, the authors compare the output with human corrections. They report word error rates of 34.24 on Redigering.se, 36.32 on Samediggi.fi and 19.94 on The Story, a text already used during development.

Every word in the development story was covered under the translation test's vocabulary count, and editors still had to correct its Finnish. Across the texts, the corrections include missing possessive endings, noun phrases that need a different case, inappropriate word choices and problems with specialized compounds. The authors describe the result as a working prototype whose output still falls short of production requirements. They propose expanding the vocabulary and making grammatical transfer rules a priority for further development.

Deep dive: North-Sámi to Finnish rule-based machine translation system

An Apertium prototype translates North Sámi into Finnish with dictionaries and grammar rules, and its evaluation shows where human edits are needed. · about 38 minutes to read

The problem and its context

Who would use the translation

The paper starts from a practical asymmetry. North Sámi and Finnish have enough grammar in common for the designers to reuse some features when moving between them. A reader gets much less help from that similarity alone. The authors describe the languages as mutually unintelligible. A Finnish reader needs the North Sámi words interpreted and rendered in recognizable Finnish, with enough of the relationships between those words preserved to follow the text.

Finnish and North Sámi belong to different branches of the Uralic family. Finnish is Finnic and is an official language of Finland alongside Swedish. North Sámi is a Sámi language spoken in northern parts of Finland, Norway and Sweden. The authors describe North Sámi speakers as bilingual in North Sámi and the national language of their country, and say many also know an official language of a neighboring country. The distribution of speakers across those countries gives the translation pair different possible uses depending on which language supplies the input.

For use within Finland, the authors envisage Finnish readers consulting a translation to understand a North Sámi text. For North Sámi speakers in Norway and Sweden, they suggest that a system going in the other direction could help with reading Finnish material. They also consider the possibility of using translation to help produce North Sámi text and place that use further along the development path. The direction examined in the paper addresses the first of these needs. Its input is North Sámi and its output is Finnish.

Reading assistance gives the authors a reason to look closely at the kinds of edits their translation requires. An ending can make a difference to whether the text follows a formal written convention. A word that expresses the wrong relationship between two parts of a sentence can also affect what the reader understands. The paper's goal is to account for both the words on the page and the grammatical work those words do. The design starts from the ways the languages express that work.

Familiar structures can have unfamiliar spellings

The authors trace part of the difficulty to sound patterns. Both languages have consonant gradation, in which a consonant or consonant group in a stem can change as the word takes different forms. The range of consonants involved is wider in North Sámi. The Finnish comparison in the paper concerns the stops p, t and k. A translator therefore needs descriptions of which stems change and what those changes look like in each language. A common name for the sound process supplies only the starting point.

Written conventions add another difference. In native vocabulary, Finnish uses p, t and k for stops where North Sámi uses b, d and g. The paper illustrates some of this distance with the words for book, Finnish kirja and North Sámi girji. These spellings are a reminder that an apparently straightforward equivalent still needs to be recognized on the source side and produced according to the conventions of the target language.

Finnish indicates vowel length by doubling a letter. The paper describes North Sámi as marking that distinction in writing for a with an acute accent. It also notes that the North Sámi spelling used in Finland had been closer to Finnish conventions until a unified North Sámi orthography was adopted in 1979. The authors nonetheless attribute much of the lack of directly reusable written forms to differences in the languages' sounds. A spelling convention can change the visible distance between corresponding words without removing the sound differences behind them.

North Sámi also lost some final vowels, and distinctions among certain stops disappeared in final position. The paper associates these developments with substantial homonymy in morphology, the system of word forms and how they express grammatical information. Distinct forms can end up written the same way. A program that recognizes the spelling may consequently recover several grammatical readings for it. The next task is to infer from the rest of the sentence which reading applies.

This matters especially when Finnish spells the corresponding forms differently. If the possible North Sámi readings include both a plural noun and a singular noun marked for possession, choosing a Finnish vocabulary entry will settle only part of the translation. The spelling to produce depends on which reading is chosen. The ambiguity lies in what the observed source word represents, and related vocabulary on its own cannot settle it.

The languages make different grammatical choices

North Sámi has a dual number for reference to a pair. Finnish lacks a separate dual category. In their comparison of finite verbs, which carry grammatical information such as person and tense, the authors otherwise find considerable similarity. They describe a larger difference among forms such as infinitives. Finnish has a wider range of them, and particular infinitives can take endings from different subsets of its case system. Correspondences that serve many familiar finite verbs thus leave work to do in less directly comparable constructions.

Case marks grammatical relationships on words such as nouns and pronouns. It can distinguish uses of a noun within a sentence and can be part of the expression of location or direction. In the paper's account of direct objects, North Sámi uses the accusative, while Finnish distinguishes accusative and partitive objects. The source case tells the translator something useful about the object. To generate Finnish, it still has to decide which of the target cases suits the use in that sentence.

The paper also compares the cases used for location. Its description of Finnish crosses an inner and an outer series with directions towards, at and away from a place. North Sámi divides this territory less finely. A source ending can therefore leave several possible Finnish endings open. More broadly, the two languages can distribute the meaning of a phrase differently between separate words and case endings. A relationship carried by an adposition in North Sámi can call for an ending on the associated Finnish noun phrase. An adposition is a word that expresses a relationship involving that phrase, such as where something is or what it is about.

Another contrast lies in agreement, where the grammatical form of one word depends on features of another. Finnish adjectives that modify a noun agree with it in number and case in the comparison given by the paper. North Sámi generally uses a fixed adjective form in that position. The authors identify buorre, meaning good, as the exception among adjectives, and describe a degree of agreement in determiners. A Finnish adjective may consequently need features that can be recovered from the noun even though the North Sámi adjective itself gives no evidence of those values.

The languages have broadly corresponding possessive suffixes, endings that can mark whose thing is being discussed. In North Sámi their use is more restricted. This illustrates a difference between having a form available and routinely using it in a particular construction. A Finnish word generator might know how to attach a possessive ending. It still needs the translation stage to request that ending in contexts where Finnish calls for it. A rule that keeps the source feature bundle as it stands can miss those contexts.

The paper's examples of possession and existence show how word order can be shared while agreement differs. Both languages can place an expression of the possessor or a location before a verb meaning be, with the possessed or existing entity after it. North Sámi gives that entity subject-like behavior, including agreement with the verb. The authors describe the comparable Finnish entity as behaving more like an object, with the corresponding agreement absent. Keeping the broad order of the sentence still leaves a verb-form decision.

Sentence patterns and variety

The grammatical comparison also has a geographic dimension. The authors distinguish the syntax of North Sámi used in Finland from that of the Scandinavian variety. They describe the former as closer to Finnish. For the latter, a noticeable difference concerns clauses that describe a noun. Scandinavian North Sámi can use a relative clause in contexts where written Finnish frequently uses a participial construction with the noun at the end. A participle is a verb form that can help describe the noun, so the choice affects how the description is packaged as well as where its parts occur.

The authors let much of this source variation carry through because both kinds of construction occur to some degree in Finnish. Consequently, the source variety can affect the style of the resulting Finnish. This is a design choice about the degree of rewriting to attempt. Some differences between the languages demand a change to get an acceptable form. In other places the authors see room to preserve a structure that Finnish readers may encounter in their own language.

The paper also points to differences in the passive. It treats the North Sámi passive as derivation, the formation of a verb from another lexical form, and the Finnish passive as inflection, a grammatical form of a verb. The authors connect that difference to how passive sentences are constructed. The comparison identifies an area where matching source and target features may require more than pairing similar-looking tags. It is part of the linguistic background to the system, alongside the particular transformations the paper shows operating in its worked sentence.

What earlier systems contributed

Apertium already provided a setting for several North Sámi translation projects. The authors describe previous work from North Sámi into Norwegian and into other Sámi languages. They also mention attempts to translate between other Uralic languages, while qualifying what they knew about public availability. Their review points to North Sámi-to-Norwegian translation and to translation involving Estonian, Finnish and Hungarian in Google Translate, where English acted as an intermediate language.

The present system uses direct bilingual correspondences between North Sámi and Finnish. Its general design draws on Apertium, which was originally directed at Romance languages of the Iberian peninsula and was subsequently adapted to other pairs. The paper refers to Apertium work on Turkic languages as another example of the shared design. These precedents supplied a way to divide a translation task into stages even when the languages required different dictionaries and grammatical rules.

For North Sámi and Finnish, the opportunity was to take a platform whose stages already had defined jobs and equip those stages with pair-specific resources. The designers could put a distinction in the North Sámi grammar when it concerned the interpretation of source forms, in the bilingual lexicon when it concerned lexical correspondences, and in the transfer rules when it concerned how a construction should be expressed in Finnish. That division is central to the explanation of the prototype.

The method, step by step

From a source spelling to a Finnish sentence

The translator represents a word differently at different points along the pipeline. At the beginning it has the characters typed or printed in North Sámi. During analysis it needs a representation that distinguishes the word's identity from its grammatical form. After looking up the word in the bilingual dictionary, it needs the same distinction for Finnish. Only after the target word and its grammatical features have been chosen does the system put them together to produce a written form.

The authors describe the method as shallow transfer. The transfer rules look for patterns in a sequence of analyzed words and operate on local matches. A rule can inspect grammatical information carried by a word or by the other words covered by the pattern. The example in the paper shows a case change on a pronoun within a sentence whose overall sequence remains recognizable. The method can make such changes with a relatively small amount of structural information.

The Apertium pipeline from North Sámi to Finnish

The steps in order.

The Apertium pipeline from North Sámi to FinnishStep 1: Set aside formatting as protected spacing1. Set aside formatting as protected spacingStep 2: Analyze North Sámi words and lexical units2. Analyze North Sámi words and lexical unitsStep 3: Resolve competing North Sámi readings3. Resolve competing North Sámi readingsStep 4: Retrieve Finnish candidates from the bilingual lexicon4. Retrieve Finnish candidates from the bilingual lexiconStep 5: Choose Finnish equivalents in context5. Choose Finnish equivalents in contextStep 6: Apply local rules for Finnish grammar6. Apply local rules for Finnish grammarStep 7: Generate Finnish word forms7. Generate Finnish word formsStep 8: Restore the original formatting8. Restore the original formatting

A useful way to follow the pipeline is to ask what kind of uncertainty each stage can resolve. The North Sámi analyzer supplies possibilities for interpreting an input form. A grammatical rule can eliminate an interpretation that fails to fit the surrounding sentence. The bilingual dictionary then introduces a fresh choice if that source reading has several Finnish equivalents. Even after the meaning has been selected, the structural rules may need to specify a Finnish case or some other feature before the word can be generated.

Formatting, word boundaries and readings

The deformatter protects formatting information before the language analysis begins. Apertium stores it in units called superblanks. To the intervening stages these behave like gaps between words. The formatting remains available to the reformatter at the other end of the pipeline. This allows the stages responsible for identifying and translating words to work primarily with the linguistic material between those gaps.

The analyzer determines the units over which to return readings. They can be individual written words or expressions that the analyzer recognizes as a lexical unit containing several words. The authors call the observed string the surface form. A lexical form combines a lemma, the base form used to identify the word, with its category and other features. A noun analysis can carry a number and a case. A verb analysis can carry such features as tense, mood, person and number.

The output at this point can represent different analyses of the same surface form explicitly. Consider gielat in the paper's worked sentence. The analyzer gives it a plural nominative reading of giella, meaning language. The same spelling also permits singular readings with a possessive suffix, including accusative and genitive forms. The common spelling is the datum the analyzer starts with. The separate readings embody different claims about what grammatical information that spelling conveys.

A similar issue arises when a spelling can belong to more than one word class. In the example, the analyzer offers adjective and noun readings for the first item, Sámegielat. Some readings differ in lexical category, while others identify different forms of the noun. This makes the initial representation richer than a lookup that returns a single dictionary entry for each written word. It gives the contextual rules alternatives to inspect and preserves a distinction between what the spelling permits and what the sentence supports.

Building analyzers and generators

For both languages the authors compile their word form descriptions using Helsinki Finite State Technology, or HFST. Its role is to build finite-state transducers. In this application, a transducer connects a written form to a representation containing a lemma and grammatical tags. A path through the description encodes a permitted correspondence. When several paths fit the spelling, the analysis can produce several lexical forms. In generation, the input is the lexical representation and the relevant paths lead to a written form.

The descriptions use lexc for the vocabulary and for which combinations of stems and endings are allowed. The paper distinguishes that job from describing the sound and spelling changes that accompany those combinations. The authors write the latter rules in twolc. This second part concerns morphophonology, the interaction between the composition of a word and the sounds that realize it. Consonant gradation is pertinent here because a stem can visibly change when used in an inflected form.

The division lets the author of a lexical entry express its grammatical possibilities while handling recurring alternations in the rules. An analyzer can recognize a spelling with an altered stem as an instance of the same lemma it would use for the base form. A generator can take a lemma with the appropriate tags and realize the spelling changes associated with that combination. The two stages use the same kind of description but draw on the resources for their respective languages.

HFST is open-source software that provides tools corresponding to those of the Xerox finite-state tool chain. The paper notes that it supports other scripting facilities as well, while identifying lexc and twolc as the descriptions used for the pair. The authors chose it partly because HFST or the equivalent Xerox tools had a history of use for Uralic languages. This is reuse at the level of representing and compiling the grammar, with the entries and alternations still supplied for each language.

Controlling which forms each direction accepts

Analysis and generation benefit from different treatment of some variants. A form may be worth recognizing when it occurs in an input text even though the generator should avoid choosing it for output. To control such behavior the authors keep a shared description and mark some of its paths for a particular direction. Their concern is overgeneration, the availability of alternatives beyond those intended for a given task.

LR marks an alternative for the analyzer alone. RL marks an alternative for the generator alone. Compiling the generator entails excluding LR paths, and compiling the analyzer entails excluding RL paths. The authors therefore build the transducers separately. A build procedure that compiled a single relation and inverted it would apply the same inventory of paths in both uses unless some other operation restricted them.

This distinction concerns paths through the grammatical description. It lets a developer keep the information about a variant near the rest of the vocabulary and inflection rules while controlling its use. For the translation direction in the experiments, the pathway of interest begins with the North Sámi analyzer and ends with the Finnish generator. The description of the Finnish analyzer elsewhere in the paper concerns the accompanying language resources and their behavior.

Resolving source ambiguity

The system performs morphological disambiguation with Constraint Grammar, using the vislcg3 implementation. Constraint Grammar rules use linguistic context to narrow the set of readings returned by an analyzer. The input to these rules is already rich enough to express competing lemmas, categories and inflections. The rules evaluate the readings in relation to their sentence environment, where one interpretation can fit the surrounding material better than another.

The form maid in the worked example makes the purpose concrete. It can be an adverb, or a form of the pronoun mii. For the latter, the analyzer proposes interrogative readings, which would concern a question, and relative readings, which can link a clause to a noun. The possible pronoun readings also vary in case and number. In the displayed sentence the disambiguator keeps the plural accusative relative reading and assigns the pronoun an object label. The spelling at that position is still maid. What advances through the pipeline is an interpretation of its function in that occurrence.

The syntactic labels in the worked trace also identify subjects and main verbs. These labels add information about what an analyzed item is doing in the sentence. Some of that information survives into the representation just after bilingual lookup. The trace lets the reader distinguish the source-side choice of a verb's person and number from the identification of its role, even when both pieces of information travel with the same lexical form.

The authors give particular weight to ambiguities within a single word's inflectional paradigm, the set of forms it can take. When several forms of that word share a spelling, the right target equivalent may still depend on selecting the correct source features. The authors suggest that ambiguity across parts of speech can sometimes carry over with little damage because of similarities between the languages. Their effort on North Sámi rules particularly addresses the cases where ambiguity inside a paradigm matters to subsequent generation.

The paper also discusses a Finnish Constraint Grammar created by converting rules originally written for CG1. The authors encountered difficulties both in changing versions of the rule formalism and in using the converted rules with their Finnish transducer. Reuse therefore involved matching the older grammatical rules to the representation produced by a different analyzer. The source of those Finnish rules is Constraint Grammar as a Framework for Parsing Running Text.

Constructing and looking up the bilingual lexicon

The bilingual lexicon contains 19,415 stem correspondences at the stage described, of which 8044 are proper nouns. The authors drew partly on an existing North Sámi–Finnish dictionary and also added translations by hand. They describe the manual work in terms of North Sámi stems associated with forms the analyzer had failed to recognize. The proper nouns came from existing lexical resources. The procedure builds up authored correspondences in response to available lexical material and observed gaps.

A stem correspondence is a pairing at the lexical level. It can serve several forms encountered in text, because the grammatical descriptions handle the inflection of the source and target words. The authors say that most entries pair individual stems and record a part of speech. They show examples in which the two sides of an entry carry noun tags. The dictionary is stored in XML and compiled to a finite-state transducer that the lexical transfer module can consult.

The dictionary example gives sámegiella two separate noun entries on the Finnish side, saame and saamekieli. A bilingual lookup of the source noun can therefore yield both alternatives. The category information is useful in specifying the correspondence, but both candidates in this case have the same category. Choosing an analysis of a source word as a noun cannot by itself select the Finnish noun to use in the resulting sentence.

In the pipeline, a North Sámi lexical form arrives at the dictionary lookup after disambiguation. Its Finnish counterpart can also be represented lexically, with grammatical tags that remain available for the later stages. This is important when an equivalent looks useful but its final case or other inflection still has to be determined. If the pipeline returned a finished Finnish spelling at lookup, it would have to recover or retain the associated features before a structural rule could change them. Passing lexical forms keeps those decisions accessible.

The lexical selection module uses contextual rules to choose among available Finnish expressions. For example, the worked trace shows kieli and ansa as Finnish candidates for giella. By the time that choice arises, the North Sámi word has already been read as a plural nominative noun. The ambiguity is now about which target word expresses its meaning. The representation after transfer contains kieli. The paper shows the alternatives and the result, leaving the particular selection conditions for that occurrence implicit.

This resource construction is how the system acquires much of its vocabulary and behavior. The paper describes dictionary compilation, grammar conversion and the development of rules, with the story used as initial development material. One can inspect the entries and the feature changes as authored data. The lexicon gives the system possible correspondences, while the rules govern when the information from a correspondence can be used directly and when it needs adjustment.

Transferring local grammatical structure

The structural transfer stage associates patterns of lexical forms with actions. Its rules are written in XML and compiled. The matcher proceeds from left to right. Where several patterns match, the longest matching pattern determines the action. A rule covering a multiword sequence can therefore take precedence over a rule whose pattern covers a shorter sequence at the same point. This allows the grammar to express conditions on neighboring material without treating every change as an isolated modification to an individual word.

A rule's action can alter the grammatical information supplied to the Finnish generator. The paper's worked sentence shows a change from accusative to partitive on a relative pronoun. The bilingual dictionary has already identified a Finnish lemma for the pronoun by that point. The transfer step supplies a feature required on the Finnish side. The separation is useful because case choice concerns how the pronoun participates in the construction, while the dictionary records the correspondence between the pronouns.

The linguistic comparison gives a compact description of what other choices may involve. Its matrix for Finnish adverbial cases is written as follows.

2x3

2 represents the inner and outer series. 3 represents the directional meanings of motion towards a place, position at it and motion away. The x indicates that the two dimensions are crossed. The authors give a total of 6 Finnish cases in this comparison and say they correspond to 2 North Sámi cases. The matrix summarizes a difference in the grammatical systems. Determining the Finnish form for a token requires interpreting the relationship expressed in the surrounding phrase.

Possession provides another example from the linguistic comparison. The paper's word-order sketch can be written with labels for the constituents.

P[LOC] → V → H

P is the possessor, and [LOC] indicates that this constituent takes a local case. The brackets attach that information to P. V is the copula, the verb meaning be. H is the entity possessed. Each → shows which item follows the preceding item in the sketch. The comparison applies to both languages, with agreement between V and H in North Sámi and the corresponding agreement absent in Finnish.

The existential pattern has a related arrangement.

A → V → E

A is an adverbial, which can specify the place in which something exists. V is the copula. E denotes the entity whose existence is asserted. Each → again indicates succession in the schematic order. The authors give the North Sámi entity subject-like behavior and relate that behavior to its agreement with the copula. The Finnish construction uses the general arrangement with different agreement. These sketches describe the grammatical comparison. They show the kind of information a transfer rule may need even where the position of the corresponding constituents is preserved.

The local rules also have to coexist with the authors' stylistic choice about relative and participial constructions. Where the source pattern already has a viable counterpart in Finnish, the paper describes carrying much of that pattern through. A rule changing the case of a pronoun is compatible with retaining a relative clause. A rule replacing the whole clause with a participial expression would be a different operation involving a larger change. The worked sentence makes the first kind of change visible.

Completing the worked translation

The example is a sentence saying that the Sámi languages are those spoken by Sámi people. After the analyzer has proposed adjective and noun readings for Sámegielat, the disambiguated sequence shows the nominative plural noun sámegiella functioning as the subject. The next word, leat, initially has several readings. The surviving one is a present indicative verb in the plural with third-person agreement. The following gielat is analyzed as another plural nominative noun, this time functioning as the expression that tells what the subject is.

The analyzer also supplies alternatives for the verb in the relative clause, hállet. The disambiguated trace chooses the present plural reading over possibilities that include a command and a past form. By this stage maid has been identified as the relative object and sámit as the subject of that clause. The sequence illustrates how feature choices are coordinated within a sentence. A form that might be a command in another context has a different reading here, with a compatible subject visible in the same clause.

After bilingual lookup, the choice for the first verb includes Finnish olla and sijaita. The trace continues with olla, which serves in the statement identifying what the languages are. For the final verb, the trace displays alternatives including puhua and mekastaa, then continues with puhua, the verb for speaking. The selections preserve distinctions needed for the sentence even though the original North Sámi forms have already been replaced by Finnish lexical material.

The relative pronoun is especially informative about the remaining steps. After lexical transfer it is represented as Finnish mikä, with the plural accusative features from the prior analysis. The representation after structural transfer specifies plural partitive. Thus the trace shows a Finnish lemma and a request for an inflected form with the revised case. The Finnish output printed by the authors nevertheless contains #mikä at that position. The rest of the trace gives the reader grounds for locating the unresolved item after those earlier choices. The paper leaves the exact reason for the unresolved form open.

Generation ordinarily turns a Finnish lexical form into the spelling that expresses its features. In the example, the displayed output includes ovat for the finite form of olla and puhuvat for the form of puhua. The different stages bear on what reaches the generator. Its input includes the lexical equivalents selected for those items and the grammatical features carried through transfer. The reformatter then draws on the protected information from the beginning of the pipeline to restore the original formatting around the result.

The authors made the translator and its data available as free and open-source software under the GNU GPL. They name SourceForge and the Giellatekno repository as distribution locations. The resources described in the paper include the pair-specific bilingual and transfer data alongside the language descriptions used for analysis and generation. The evaluation identifies the particular revisions on which its figures depend.

Experiments and results

How much of the input receives an analysis

The experiments use Apertium revision 76,019 for the translation pair and Giellatekno revision 147,464 for the North Sámi resources. The authors use separate collections for asking about recognition of North Sámi words and for asking about edits to Finnish translations. The recognition results describe one early operation of the system on substantial bodies of text. The editing results concern the output of the full pipeline on shorter samples.

For lexical coverage, the authors use North Sámi Wikipedia, with 190,894 tokens, and a North Sámi translation of the New Testament, with 162,718 tokens. A token is an occurrence in the text. A recurring word can contribute repeatedly to these measurements, while the vocabulary count in the system description concerns entries in a dictionary. Tokenization

The authors divide each corpus into 10 parts. For each part they measure the percentage of words analyzed, then report the mean of those percentages for the corpus. They also report the standard deviation, which describes how far the percentages tend to vary across the parts. On Wikipedia the reported standard deviation is ±10. For the New Testament it is ±0.06. Coverage is both higher and more uniform across the parts of the New Testament in this evaluation.

Mean naïve lexical coverage on North Sámi Wikipedia and the New Testament

The prototype analyzes a greater share of the New Testament than of Wikipedia.

Mean naïve lexical coverage on North Sámi Wikipedia and the New TestamentNorth Sámi Wikipedia: 76,81North Sámi Wikipedia76,81New Testament (this paper): 92,45New Testament (this paper)92,45
The numbers
System or settingcoverage %
North Sámi Wikipedia76,81
New Testament (this paper)92,45

The coverage is called naïve because the criterion is the availability of an analysis. Morphological rules can produce an analysis by accident when they break down a spelling in a way that does not fit its use in the text. That occurrence still contributes to the measured coverage. The authors explain that checking whether such analyses are right would require manual evaluation. Their figures indicate how often the material can be assigned a reading automatically under the tested resources.

The Wikipedia dump presents several challenges. The authors mention misspellings, residual wiki notation, repeated material, English passages and proper nouns. They attempted to clean the markup and say that broken data and changes to wiki conventions can leave some material behind. The comparatively wide variation across parts is consistent with a corpus whose contents differ from one portion to the next. The paper offers those characteristics as explanations for the observed coverage and variation.

The New Testament results describe a much steadier level of recognition within that corpus. The mean coverage gives the level, and the smaller standard deviation shows that the outcome is similar across the portions used in the test. The two figures are complementary. A mean alone could conceal portions of the corpus that were unusually easy or difficult for the analyzer, while variation alone would give little idea of how much text the analyzer can process.

The Wikipedia and New Testament figures are useful partly because they come from different material. The effect measured includes the kinds of tokens the texts contain, along with the analyzer's ability to recognize them. The comparison is about these collections. A broader estimate of coverage for a particular publication genre would depend on how representative the collection was of the material actually encountered by its readers.

How much the Finnish output changes in editing

The translation evaluation uses texts available in parallel form. The source identified as Redigering.se concerns a Swedish regulation on minorities and languages. The Samediggi.fi material comes from the website of the Finnish Sámi Parliament. The Story is Where is James?, which the paper describes as initial development material used for Apertium language pairs. This history makes the story's score a result on familiar material. The paper describes the other texts as testing material in its comparison with development.

Redigering.se has 1,070 tokens, with 95 recorded as out of vocabulary. Samediggi.fi has 570 tokens, with 33 out of vocabulary. The Story has 361 tokens and an out-of-vocabulary count of 0. Out of vocabulary refers to words recorded as unknown by the system. These counts identify the scale of one source of difficulty in each text. They accompany the edit scores because some corrections concern unknown items, while many edits are possible on fully recognized material.

The comparison text for each translation is a manually post-edited version. A post-editor starts from the output and revises it into the intended Finnish. The study then computes word error rate, abbreviated WER, using a measure based on Levenshtein distance. At the word level, the distance concerns the insertions, deletions and substitutions required to go from one sequence to the other. WER expresses the required edits relative to the length of the corrected text. Lower rates therefore indicate a smaller proportionate editing distance under the measure.

Word error rate against manual Finnish post-edits on the translation evaluation texts

The development story has the lowest word error rate.

Word error rate against manual Finnish post-edits on the translation evaluation textsRedigering.se: 34.24Redigering.se34.24Samediggi.fi: 36.32Samediggi.fi36.32The Story, development text (this paper): 19.94The Story, development text (this paper)19.94
The numbers
System or settingWER %
Redigering.se34.24
Samediggi.fi36.32
The Story, development text (this paper)19.94

The scores describe one translator applied to different inputs. On Redigering.se, WER is 34.24, and on Samediggi.fi it is 36.32. The Story's WER is 19.94. The regulatory material has more unknown tokens in absolute terms than the Sámi Parliament material, and its word error rate is slightly lower. Each token count describes a text of a different length, and WER also reflects grammatical and lexical edits to known words. The figures thus give different views of the translation task.

The Story offers the clearest example of how these measurements can diverge. Its out-of-vocabulary count is 0, so the evaluation finds no unknown words there. Yet the revised Finnish still differs from the original output. The authors particularly notice possessive endings in the story. Such an ending can be missing even when both the possessor and the possessed noun are recognized and translated. Coverage in this case clears an early obstacle and leaves a grammatical requirement for the system to handle.

The reference for the WER computation is the edited output. The authors report no competing translator's scores, so there is no system baseline in the results. Earlier North Sámi and Apertium projects are precedents for the design. The experiment instead supplies a comparison among texts for this particular prototype and uses the changes made by a person to assess the work still required on its output.

The choice of WER reflects the intended use of the translations. The authors consider automatic comparisons such as the BLEU score less suitable for their purpose and use post-edits as the basis of measurement. This procedure creates material for a grammatical analysis of the changes as well as a numerical result. For example, a noun replacement can reveal a missing possessive suffix when the editor retains the same stem. Inspection of the revision can identify that change even though the distance treats the whole word as a unit.

The authors associate the stronger score on the development story with the early state of the rule inventory. The difference between the story and the testing material provides a reason to look for constructions and words the developers encountered less often. The study also varies the subject matter and the distribution of unknown words across those texts. The WER results characterize the combined outcome of these differences. The post-editing examples show the particular kinds of changes involved.

What the ablations show

The paper reports no ablation that removes or replaces a translation component and reruns the evaluation, and instead examines remaining morphological ambiguity, differences across corpora and the changes made during editing.

How many readings survive the grammar rules

The authors describe the analyzers as returning around 2.6 analyses per form for North Sámi and 2.4 for Finnish. A visible word carries this kind of ambiguity when the morphological descriptions license several readings for it. Some differences concern which lemma the form belongs to. Others concern which inflection of the same lemma appears in the sentence. The initial figures describe the average breadth of the information available before the disambiguator narrows it.

For North Sámi, the authors report 1.08 surviving analyses per form after applying the translation system's disambiguator to a newspaper corpus of 675,534 words. For Finnish they report 1.36 on a Wikipedia subcorpus of 770,999 words. The result for North Sámi shows that the system frequently passes a narrow choice to later stages. The Finnish result comes from different material and a different implementation history. The authors associate its greater remaining ambiguity with difficulties adapting the earlier Finnish rule set and matching it to their analyzer.

A reading count answers a question about the number of alternatives retained. It leaves the correctness of those alternatives to be checked separately. A system could leave a single interpretation in a context where a human would choose another. The trace gives a concrete example of the narrowing, with the grammar selecting a relative pronoun and a present plural verb where the analyzer had supplied alternatives. An evaluation against human grammatical judgments would test the accuracy of selections at corpus scale.

This is also why the ambiguity report has a different function from WER. The disambiguator acts on North Sámi forms early in the pipeline, and the later score counts changes to written Finnish. Even a sound choice of a source reading can be followed by problems in Finnish word selection, transfer or generation. The reported reading counts describe a mechanism the authors intended to be useful. Its effect on WER would require a comparison holding the rest of the translator and the inputs fixed.

When a Finnish ending should replace a separate word

The authors find cases in the post-edits where the system uses a separate Finnish expression and the correction uses a case ending on the associated noun phrase. They report that North Sámi birra was translated with Finnish ympäri, meaning around, in a context requiring the elative. They also give seassa, meaning among, as output in a context where the inessive was appropriate. The inessive expresses an interior location, and the elative is its counterpart associated with movement out of an interior. The cases can also express relationships in constructions where the sense is less literally spatial.

What the editor changes here is how the relationship is expressed. The original output assigns that work to a separate Finnish word. The revision assigns it to the grammatical form of the dependent phrase. This explains why a Finnish item that looks like a dictionary equivalent can be inappropriate in context. Selecting it as an isolated word can leave the structure of the North Sámi phrase visible where Finnish has a different established way to convey the relation.

The corrections also illustrate the role of the local transfer stage. To generate a corresponding case form, the pipeline would have to identify the relevant noun phrase and convey the requested case to generation. The fact that editors supplied an ending tells the authors something about the kind of transformation the output needed. The paper does not provide a separate run with further adposition rules or give a frequency for each corrected pattern. The examples identify an error mechanism at the level of the translated construction.

Possession and the written standard

A recurring problem, particularly in the story, concerns possessive suffixes. The paper gives heidän äiti and its correction heidän äitinsä. Both express their mother. The correction keeps an overt possessor and adds the possessive ending to the noun. The authors say that the version without the suffix is accepted in standard spoken Finnish. Their post-edit follows formal written usage, for which they treat the suffixed version as the expected form.

This makes the nature of part of the remaining edit burden clear. The output can convey who possesses something and still differ from the version suitable for formal writing. A count of unknown words will miss that distinction because the relevant lexical items are present. The word-level distance can register the substitution, and examining the spelling shows that the change concerns the ending. That information gives a more precise account of the needed correction than a raw edit count.

The error fits the broader observation that the two languages use comparable possessive suffixes with different frequency and restrictions. Finnish generation needs a request for the suffix in a construction where the North Sámi input may lack a corresponding overt marking. Solving the case illustrated in the paper entails deciding what features the Finnish noun should carry in relation to its possessor. The story shows that such decisions remain relevant after the authors have covered the vocabulary of a familiar text.

Choosing the expression and covering specialized terms

Other edits affect lexical choice or the form of an adverb. The authors show Finnish mukana, in the sense of with, revised to mukaan, in the sense of according to. The two spellings are similar. In context the correction changes what the phrase says about its connection to the surrounding material. The authors suggest that the recurrence of such uses may partly reflect the legal content in the evaluation. The examples describe what editors found in those texts, leaving the distribution in other genres open.

Specialized terms create another type of problem. The paper names hallintoalue, a governmental area, seurantavastuu, a responsibility for monitoring, and itsehallinto, autonomy. It reports missing or partly incorrect expressions involving terms of this kind and their compounds. Here the issue can be the availability of the intended equivalent or the choice among available correspondences. A compound whose parts can be processed can still require a correction to the resulting term.

The differences between these errors matter for interpreting the system's performance. A missing specialized expression leaves the translator with a lexical gap. An inappropriate adverb can arise when there are familiar words but the system selects an expression that fails to fit. A case edit can require a phrase-level transformation, and a possessive suffix can depend on the conventions of the written register. The post-edits locate these difficulties in observed output. The paper leaves the share attributable to each error class unquantified.

Limitations

Limits identified by the authors

The authors treat the translator as a prototype in both the size of its rule inventory and the quality of the resulting Finnish. Their conclusion discusses WER above 30% in characterizing the distance from production use. Both testing texts give rates consistent with that assessment. The story gives a lower rate under development conditions and still exhibits repeated grammatical problems. The conclusion presents the system as a basis for continuing work, with improvements in coverage and in grammatical transfer both planned.

The authors explicitly qualify lexical coverage as naïve. Finding a path to an analysis is evidence that an item can be processed, while a manual check would be needed to establish that the path leads to the right interpretation. The possibility of accidental matches matters for a system with productive rules for forming words. It also means that the coverage results characterize what the analyzer accepts under the evaluation procedure. Correct Finnish output requires further successful decisions downstream.

The paper also explains what the Wikipedia preparation left unresolved. The corpus contains material such as remaining markup and English passages as well as proper nouns and spelling problems. These contents are part of the sample on which the authors report recognition. Accordingly, the coverage figure describes the behavior of the analyzer on a mixed dump. The authors give reasons for expecting a different result on more consistently North Sámi input, as illustrated by the other corpus, without measuring the contribution of each source of difficulty.

The paper treats some stylistic variation as a consequence of allowing Scandinavian constructions to pass through where related constructions are available in Finnish. The measured results leave the consequences of that choice open. The authors describe how the source variety can leave a stylistic trace, and the paper contains no comparison of readability or editing needs for the varieties. Likewise, the suggested use for producing North Sámi text is identified as an application that would need further development.

Limits of the experimental comparisons

The performance results apply to translation from North Sámi into Finnish. The worked example, the description of the evaluation and the language of the post-edits all specify that direction. A sentence in the conclusion reverses it. The results themselves characterize Finnish output from North Sámi inputs. The discussion of Finnish analysis and the potential for later North Sámi output should therefore be read in the context of the paper's broader plans for the pair.

The translation samples are short and differ in both subject matter and their role in development. The story is familiar material, while the other samples bring in terms and constructions from institutional or regulatory texts. The study reports a rate for each text. It leaves open how much the rates would vary among unseen stories or among further texts on similar public matters. The comparison also leaves the influence of development exposure, vocabulary and text type entangled.

The paper provides useful information on how much text there is and how many tokens are unknown. Those details make each result interpretable under its own conditions. They give less leverage for comparing genres or for making a general estimate of future translation quality. A large coverage corpus also cannot supply that estimate on its own. The material used to assess recognition and the material used to assess editing answer different questions.

There is no comparison with another translator for the same pair on the same inputs. The paper establishes that this combination of analyzers, dictionaries and rules can generate Finnish and documents its behavior on the reported corpora. A direct claim about how it ranks against other approaches would need a common evaluation. The precedents discussed in the introduction concern different pairs or different translation arrangements and serve as context for the design.

What editing distance leaves open

WER measures edits needed to reach a corrected text. Its unit is the word. A missing possessive suffix may count as a substitution of the same scale as the replacement of a wrong content word. These two edits can matter differently to a reader. In the possessive example, the original can be acceptable in speech and still call for correction as formal prose. In an adverb example, the changed form can express a different connection to a rule or situation. The number records the distance and the examples help interpret the consequences.

Post-edits also embody decisions about how to phrase the Finnish. The paper gives examples that identify a grammatical or lexical reason for revision. It does not report the variation that would result from several people independently editing the same outputs. The measured rates are consequently tied to the corrected versions used in the experiments. Further information from editors could help distinguish a stable requirement from a choice among acceptable phrasings.

The practical goal of helping readers understand North Sámi text would also admit a separate kind of assessment. The paper records revisions to the Finnish. It leaves actual reader comprehension unmeasured. A reader might understand a sentence whose form needs several corrections, and a single lexical error might impede comprehension in a sentence that otherwise needs little editing. WER is evidence about how far the output is from its post-edit and has that particular scope.

The component analyses have a parallel limit. Remaining ambiguity measures how many analyses survive, and the worked trace shows the features selected for a particular sentence. The authors can use those observations to see where the system makes a decision and where an item remains unresolved. The test does not measure the change in translation quality caused by each module. It also gives no basis for treating the North Sámi and Finnish ambiguity figures as an intrinsic comparison of how difficult the languages are to analyze, since the tests use different corpora and grammars.

The conclusion sees the results as encouraging for translation between morphologically rich languages that express much of their grammar through affixes. The experiment demonstrates a working instance of the approach and offers a detailed account of errors still present. The quality attainable after adding vocabulary and transfer rules remains a forecast. The paper's strongest evidence concerns the behavior of the prototype under the conditions it reports.

What came after

The paper records the authors' development plans. It establishes no subsequent study that extended the North Sámi–Finnish system or measured the results of those plans. The authors identify the next work on the tested direction and describe how they hoped to connect it to efforts on other Uralic language pairs.

For their existing corpora, they set a lexical coverage target of 95 %. By their estimate, it would take about 5,000 new stems and one to two months to get there. The target gives a sense of how the authors understood the scale of the remaining vocabulary work. The measured coverage comes from the Wikipedia and New Testament experiments. The larger inventory and its expected effect are projections in the paper.

The authors also planned to add grammatical rules, starting with transfer. Their reported errors explain the choice. A phrase can consist of entirely recognizable words and still need a different Finnish construction. A new lexical correspondence could make a missing equivalent available, while a transfer rule could supply an ending or change how a relation is expressed. The development plan addresses both routes by which the output can require correction.

Their longer-term aim was to combine the new data with other open-source resources for Uralic languages and support transfer systems for more pairs. The paper mentions work already in progress from North Sámi into South, Lule and Inari Sámi, as well as work involving North Sámi and Norwegian and a Finnish–Estonian effort. These projects describe the research setting at the time. The paper supplies no later evaluation linking their outcomes to this prototype.

The architecture makes the scope of that plan concrete. A language-specific description can support recognition or generation wherever that language appears in another pair. A bilingual correspondence has a narrower role, and transfer rules address the particular grammatical choices between two languages. Combining resources could therefore supply part of the work for a new pair while leaving its word equivalents and its construction-specific decisions to be developed. The paper ends with that prospect alongside the immediate task of making its Finnish translations require less editing.

Cite

Cite as Ryan Johnson, Tommi A Pirinen, Tiina Puolakainen, Francis Tyers, Trond Trosterud and Kevin Unhammer. 2017. North-Sámi to Finnish rule-based machine translation system. Proceedings of the 21st Nordic Conference on Computational Linguistics.

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{johnson2017north,
  title = {{North-Sámi to Finnish rule-based machine translation system}},
  author = {Ryan Johnson, Tommi A Pirinen, Tiina Puolakainen, Francis Tyers, Trond Trosterud and Kevin Unhammer},
  booktitle = {Proceedings of the 21st Nordic Conference on Computational Linguistics},
  year = {2017},
  url = {https://aclanthology.org/W17-0214/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/johnson-2017-north-sami-finnish-rule-based/