Elamur Research

IceParser: An Incremental Finite-State Parser for Icelandic

Paper · 2007 · Hrafn Loftsson and Eiríkur Rögnvaldsson

Summary

A parser can frequently identify a useful part of a sentence without settling the structure of the whole sentence. IceParser takes this approach to parsing Icelandic. It identifies groups of words, such as noun and verb phrases, and labels some of those groups with functions such as subject and object. The authors present it as the first published parser for Icelandic. The language poses a particular challenge because grammatical inflections help signal relationships between words, allowing major parts of a sentence to appear in several orders.

IceParser starts with text that has already undergone part-of-speech tagging. Each word is paired with a tag that describes its category and, where applicable, properties such as grammatical case. The parser runs a cascade of finite-state transducers, each of which scans the current text and inserts labels around spans it recognizes. The first module builds up phrases from smaller units. An adverb phrase can become part of an adjective phrase, which can then become part of a noun phrase. The second module uses those marked spans and their surroundings to assign grammatical functions. Some function labels also record whether the associated verb lies to the left or right.

The authors evaluated the parser against manually annotated versions of 509 sentences from the Icelandic Frequency Dictionary corpus. With the corpus part-of-speech tags supplied as correct input, IceParser achieved 96.7% F-measure for labelled constituents and 84.3% for syntactic functions. F-measure balances the proportion of predictions that are correct with the proportion of reference annotations that the parser recovers. When IceTagger supplied the input tags, constituent performance fell to 91.9% and function performance to 75.3%. The authors relate the greater sensitivity of function recognition to its heavier reliance on case, a feature the tagger frequently gets wrong.

The rules use word classes and subclasses, with case as their only grammatical inflection feature. The authors chose this restriction partly because they wanted the parser to support grammar checking. If a phrase rule required all its words to agree before grouping them, an agreement error could prevent the phrase from reaching a checker as a unit. The paper also shows where the design falls short. An adverb can be grouped with an adjective even though it belongs with a verb, and a subject can be found without its position relative to the verb being resolved. In the faster Java implementation, passing intermediate results through memory lets IceParser process about 11,300 word-tag pairs per second.

Deep dive: IceParser: An Incremental Finite-State Parser for Icelandic

IceParser uses finite-state rules to identify Icelandic phrases and grammatical functions, with tests on both corpus and automatic tags. · about 33 minutes to read

The problem and its context

How much structure does a parser need?

A full syntactic analysis aims to describe how the parts of a sentence fit into a single structure. A shallow analysis can recognize a noun phrase, identify a nearby verb phrase and mark the noun phrase as a subject while leaving other relationships open. The appropriate depth depends on what someone needs from the analysis. The paper gives information extraction, text summarization and some forms of grammatical error correction as examples of work for which identifying phrases can be enough. A grammar checker may need a phrase boundary to decide which words to compare for agreement. Much of the rest of the sentence can remain unanalyzed for that check.

The authors give a computational reason for limiting the task. A complete analysis can require considering many possible structures, and the space of alternatives can grow exponentially. They also point to a consequence of requiring a global result. A plausible analysis of a small constituent can be discarded because it fails to fit the overall structure available to the parser. A shallow system can preserve that local finding even when it has too little evidence to integrate every word. The paper also describes potential benefits for noisy input, including speech, where omissions and mistakes can interfere with a global analysis. That argument motivates the kind of parser the authors build.

Shallow analysis still involves choices about structure. A parser has to decide where a phrase begins and ends, what category it belongs to and which smaller phrases it contains. Adding grammatical functions introduces a further distinction. A noun phrase is a type of constituent. Subject is a function that a constituent can serve in context. The same phrase category can turn up in different functions, and a label for the category leaves those functions open. IceParser makes this distinction explicit in both its annotation and its implementation.

That separation also defines what the project needed as data. Text with word tags supplies evidence for recognizing structures, but the word tags alone cannot tell a developer how broadly to bracket a phrase or when to assign a function label. The authors designed a scheme for the structures they wanted and annotated examples to define the target. Their problem was therefore both linguistic and computational. They had to decide what a shallow analysis of Icelandic should record, then express enough of that analysis as rules that a program could apply to tagged text.

Why Icelandic presents this problem

Icelandic morphology supplies more grammatical information in word forms than the authors describe for the other Nordic languages. Nouns have a grammatical gender and inflect for case and number. A definite article can appear as a suffix. Adjectives carry information about properties such as case, gender and number, and have strong and weak forms. Verb inflection provides distinctions such as person, tense and voice. A single word can therefore offer several clues about its place in a sentence before a phrase rule examines its neighbors.

The Icelandic Frequency Dictionary corpus, called IFD in the paper, represents these distinctions in a tagset with about 660 tags. The first character of a tag gives the word class. The interpretation of what follows depends on that class. In the authors’ example, the Icelandic form hestarnir carries the tag nkfng. Reading the characters in order gives noun, masculine, plural, nominative and a suffixed definite article. A rule can inspect the relevant position to find out whether it is looking at a nominative noun without making every other property a condition for the match.

These inflections matter because position alone gives an incomplete account of Icelandic syntax. The authors describe variation in the order of major constituents, including subjects, objects, prepositional phrases and adverb phrases. The order of words within a phrase can vary too. A phrase type can remain recognizable when it moves, especially if its internal arrangement is familiar. Its role may be harder to establish because the surrounding sequence has changed. Variation inside a phrase poses a different problem. It can change the very sequence a rule needs to see before it will put the words inside the same brackets.

The authors treat these as reasons to keep the annotation relatively flat and to write rules for a variety of surface orders. Recognizing the core pieces lets the project set aside many of the decisions involved in constructing a full hierarchy. It still leaves the parser with concrete local decisions about order. If a particular arrangement has no corresponding rule, an inflected word can be correctly tagged and still be placed outside the constituent where it belongs. If the phrase is found but the verb occurs in an unexpected configuration, the parser may recover the function only in a less specific form.

Where the cascade came from

The paper situates IceParser within earlier finite-state approaches to shallow syntax. It describes a reductionist approach, influenced by Constraint Grammar, that begins with alternative readings of the sentence and uses elimination rules to narrow them down. The representation in this line of work associates syntactic tags with words. The objective is to remove incompatible readings until the intended one remains.

In the constructive approach, rules look for recognizable patterns and add structure where they match. A finite-state transducer can take a span of text and output that span with additional markings. In a cascade, a later transducer can look for the markings produced by an earlier one. The paper also describes a hybrid approach in which constraints define core phrases and which combines elements of construction and reduction. IceParser belongs to the constructive line. Its main action is to introduce new brackets and labels into a stream that subsequent rules can read.

The authors cite earlier work on shallow finite-state parsers for Spanish, Swedish, German and French. The Swedish cascade by Kokkinakis and Johansson-Kokkinakis is an especially close point of comparison because it also uses staged finite-state processing. The paper describes such parsers as pipelines of lexical analyzers. A lexical analyzer recognizes patterns in a stream and can trigger an action for each recognized span. The sequence of scanners is what allows those local actions to accumulate into a syntactic representation. A Cascaded Finite-State Parser for Syntactic Analysis of Swedish

The paper also discusses the Xerox Finite-State Tool, XFST. Its extensions to regular expressions help developers express the patterns needed for this kind of work. IceParser follows the broader finite-state approach while using JFlex to generate scanners for Java. The authors explain the choice through the parser’s place in a Java toolkit for Icelandic. The technique thus precedes IceParser. The particular contribution is to make it work with Icelandic word tags, an Icelandic annotation scheme and rules keyed to the language’s phrase patterns and variation in word order.

The method, step by step

From word tags to a marked sentence

The parser receives a sequence of words with tags already attached. A first set of scanners puts labelled square brackets around constituents. A second set reads the bracketed text and puts labelled braces around spans with recognized grammatical functions. The words and tags stay available throughout. At each stage the input is therefore a text stream containing the original evidence together with whatever structure earlier stages have added.

How IceParser adds syntax to tagged Icelandic text

The steps in order.

How IceParser adds syntax to tagged Icelandic textStep 1: Read Icelandic words with their part-of-speech tags1. Read Icelandic words with their part-of-speech tagsStep 2: Mark small phrases such as adverb phrases2. Mark small phrases such as adverb phrasesStep 3: Use existing brackets to recognize larger constituents3. Use existing brackets to recognize larger constituentsStep 4: Pass the bracketed text to function scanners4. Pass the bracketed text to function scannersStep 5: Match phrases against case and verb context5. Match phrases against case and verb contextStep 6: Add function labels and available direction indicators6. Add function labels and available direction indicators

The phrase structure module contains 14 transducers. The syntactic functions module contains 8. The output of each scanner goes to the next in its module, and the final phrase output becomes the first function input. This arrangement gives the stages different kinds of evidence to inspect. An early phrase rule may need little more than a word class. A later function rule can start from an entire noun phrase, check its case and examine its relation to a marked verb phrase.

The developers wrote each transducer in a separate JFlex specification. JFlex compiles the pattern descriptions into Java code for a deterministic finite-state automaton and the actions that accompany it. The automaton changes state as it reads the stream. When it recognizes a pattern, the action can insert the designated brackets or braces. Some actions also search within the match to find where a particular phrase begins or ends. That lets a rule recognize a stretch containing several phrases and mark the function of just one of them.

This division between recognition and annotation matters for interpreting a match. A subject rule can require a noun phrase and a verb phrase together as evidence. The new subject braces go around the noun phrase only. A complement rule can require the preceding subject and verb, then label the text that follows the verb. In each case, the span used to decide whether the rule applies can be larger than the span to which the new label belongs.

What the annotations record

The project's linguistic annotation scheme gives each constituent an opening and a closing marker bearing its category. Thus [NP … NP] denotes a noun phrase, with the ellipsis standing for the span inside it. The principal labels include AdvP for an adverb phrase, AP for an adjective phrase, PP for a prepositional phrase and VP for a verb phrase. The scheme also marks coordinating and subordinating conjunctions, interjections and multiword expressions. A bracket in this representation can mark a single word as readily as a group of words.

The labels APs and NPs represent sequences of adjective and noun phrases. In the annotation scheme, the adjective phrases in such a sequence agree in gender, number and case. The noun phrases in their corresponding sequence agree in case. This is a distinction between what a reference annotation represents and what the implementation checks. The transducer patterns use case among the inflectional features. The scheme's description of an adjective sequence can consequently refer to agreement properties beyond the inflectional cues that the parser's patterns use.

Verb phrases have several subtypes. The basic finite label VP covers a finite verb with optional material of the kinds specified by the scheme, including adverb phrases and supines. VPi is for an infinitival phrase, VPs for a supine, VPp for a past participial phrase and VPg for a present participial phrase. VPb marks the class that calls for a predicate nominative, with vera, meaning “be,” as the main example. These distinctions give a function scanner something more precise to look for than an undifferentiated verb label. A scanner can, for example, target the context in which vera occurs and recognize a particular class of complements after it.

Function labels use braces. *SUBJ marks a subject, *OBJ an object and *COMP a complement. The scheme also distinguishes indirect objects, nominative objects and objects of adjective phrases. *QUAL labels a genitive qualifier, and *TIMEX marks a temporal expression. In an example involving a sister and a possessive dependent, the noun meaning “sister” forms a noun phrase and the dependent receives a genitive qualifier label. The subject marking can enclose both. That example illustrates why the output needs both the brackets for constituent categories and the braces for functions. Their boundaries express different decisions about the same words.

For some functions, an arrow gives the verb’s direction relative to the marked phrase. *SUBJ> says the associated verb is to the right of the subject, and *SUBJ< says it is to the left. A bare *SUBJ leaves the direction unspecified when the verb is missing or its position is unclear. The paper explains that direction was included to assist later grammar checking. It tells a downstream procedure which way to look for the verb while leaving its exact position unencoded. A parser can therefore get a subject span and its basic role right while leaving out information that the reference annotation expects.

How the authors developed the rules

The authors built a grammar definition corpus of 214 sentences selected from IFD. They chose the sentences to represent the major syntactic constructions they wanted the scheme to cover. This collection serves both to make annotation decisions concrete and to guide development. A rule author can look at an annotated construction and see what should be grouped, where the markings should go and which function label the scheme assigns. The collection is purposive because the development task calls for examples of constructions, including ones that could be scarce in a random sample.

The scanner patterns were written by hand. The development corpus gives examples against which the authors could specify and refine the intended behavior. The paper describes regular expressions, actions and their ordering as the mechanisms that determine the parse. The separate evaluation procedure used randomly chosen IFD sentences and manual annotations made after development. Its purpose was to score the output against reference analyses rather than to define the rules.

In designing those rules, the authors chose to omit many available inflectional cues. A noun tag can give gender and number as well as case. An adjective tag can supply other information too. A rule that demanded agreement on all these properties could refuse to group a string precisely when a writer had made an agreement mistake. A grammar checker working from those groups could then miss the context in which the mistake occurred. IceParser therefore uses category and subclass information and takes case as its inflectional feature. This design keeps some phrase recognition tolerant of disagreement while preserving a cue that the authors rely on to distinguish several functions.

Building a phrase from smaller phrases

The phrase scanners work from smaller structures toward larger ones. Consider a word tagged as an adverb. The scanner can find a word, the spaces after it and a tag with the expected class. The following notation expresses the relevant pattern.

Adverb = WordWithSpace · AdverbTag

Adverb is the complete pattern for one tagged adverb. WordWithSpace matches the word as a sequence of non-whitespace characters followed by one or more spaces. AdverbTag matches an adverb tag. The equals sign defines a pattern, and · means that the pattern on the right follows the pattern on the left. When the scanner recognizes mjög with the tag aa, for example, it inserts the adverb phrase markers around the pair. The word means “very,” and the whole marked span is now available to later rules as an AdvP.

The adjective rule likewise needs to recognize an adjective word and its tag. It also needs a way to treat an already marked adverb phrase as a unit.

Adjective = WordWithSpace · AdjectiveTag

Adjective names the word-and-tag pattern. WordWithSpace matches the word and the space after it. AdjectiveTag recognizes a tag for an adjective. The equals sign introduces the definition, and · joins the two pieces in order. This part of the pattern asks whether the word has the relevant category. It can be reused in a larger description of what counts as an adjective phrase.

AdverbPhrase = OpenAdvP · ~CloseAdvP

AdverbPhrase is the pattern for the already bracketed unit. OpenAdvP matches its opening marker, and CloseAdvP matches its closing marker. The equals sign introduces the definition, and · requires the opening marker to come first. The JFlex operator ~ consumes text through the first match of the pattern it precedes, including that match. In this use it lets the adjective scanner take in the complete marked adverb phrase without describing its interior again.

AdjectivePhrase = AdverbPhrase? · Adjective

AdjectivePhrase is the simplified target for the adjective pass. AdverbPhrase is an already marked adverbial unit, and ? makes that element optional. Adjective is the tagged adjective that must be present. The equals sign defines the pattern, and · places the adjective after the optional adverb phrase. An occurrence of góður, meaning “good,” can form an adjective phrase on its own. When the scanner finds it after the marked mjög, it can include that span inside the adjective phrase.

The noun phrase scanner can then recognize a combination such as the adjective phrase meaning “very good” followed by kennari, “teacher.” It wraps the entire group in noun phrase brackets while preserving the brackets already inside it. At this point, a later rule can look at the noun phrase as a whole. The smaller phrases remain visible if a rule needs them. This is how finite-state passes build nesting in the output. Each pass recognizes a pattern over ordinary text and the marks that previous passes have written.

A noun phrase may also consist of a pronoun alone. At the other end of the range described in the paper, it can contain several kinds of modifiers before a noun. The authors illustrate that range with an Icelandic group corresponding to “all these three big boys.” The adjective has its own phrase marking inside the larger group. The noun phrase scanner needs rules for such arrangements, and its compiled automaton has about 50,000 states. That figure applies to the scanner for noun phrases. It gives an indication of how much pattern machinery can sit inside a single stage even though the cascade looks simple at the level of modules.

Finding a subject

By the time the function scanners run, they can inspect both phrase types and the surrounding order. The subject transducer has patterns for different configurations, including subjects on either side of the finite verb phrase. The paper illustrates a simplified case in which the subject comes first. The first part of the example defines a candidate in the nominative.

NomSubject = NomNP | NomNPSequence

NomSubject is a candidate subject in the nominative case. NomNP is a single nominative noun phrase. NomNPSequence is a marked sequence of noun phrases in that case. The equals sign defines the name on the left, and | separates alternatives. Either kind of span can supply the nominal part of the match.

FiniteOrBe = FiniteVP | BeVP

FiniteOrBe names the verbal context used with the nominative candidate in this simplified rule. FiniteVP is the ordinary finite verb phrase pattern, and BeVP is the pattern for a phrase containing vera. The equals sign defines the expression on the left. The bar | allows either verbal pattern to match.

SubjectBeforeVerb = NomSubject · Space+ · FiniteOrBe | DatSubject · Space+ · DatVP | AccSubject · Space+ · AccVP

SubjectBeforeVerb names the full matching context. NomSubject, DatSubject and AccSubject are candidate phrases or phrase sequences in nominative, dative and accusative case respectively. FiniteOrBe is the verbal alternative defined above. DatVP and AccVP match verbs from the authors’ lists of verbs that require a dative or accusative subject, respectively. Space means a whitespace character and + requires one or more occurrences. The equals sign assigns the pattern a name, · joins successive pieces, and | divides the full pattern into alternatives.

The dative and accusative branches show how lexical knowledge enters the rules. IceParser can recognize a subject in either of these cases when the verb licenses it. The lists of verbs are expressed as regular expressions, so the scanner can test the verbal context as part of the match. A case-marked noun phrase by itself gives less information. In the illustrated pattern the case and the kind of verb work together as evidence.

After finding a match, the action searches within the matched text for the beginning of the verb phrase. The noun phrase or noun phrase sequence before that point gets *SUBJ> markers. The verb phrase keeps its own constituent label. A separate configuration can yield *SUBJ< when the verb is on the other side. Recording those configurations in separate patterns makes the chosen direction a consequence of the match that supplied the subject evidence.

Finding a complement

The complement scanner mainly handles complements of vera. It can use a subject label already added by the subject scanner. In the simplified pattern, a candidate complement is one of several kinds of phrase sequence.

Complement = NomAPSequence | NomNPSequence | PastParticipleVPSequence

Complement names the candidate span. NomAPSequence and NomNPSequence are sequences of nominative adjective and noun phrases respectively. PastParticipleVPSequence represents a sequence of past participial verb phrases. The equals sign defines the pattern, and | offers alternative forms that the complement can take. This allows an adjectival description, a nominal description or the illustrated participial form to enter the same function rule.

SubjectAndBe = Subject · Space+ · BeVP · Space+

SubjectAndBe names the context before the complement. Subject matches an already labelled subject, and BeVP matches the verb phrase containing vera. Space stands for a whitespace character, and + requires one or more of these characters at each indicated point. The equals sign introduces the definition, and · puts its pieces in sequence. The final run of whitespace leads into the candidate complement.

SubjectBeComplement = SubjectAndBe · Complement

SubjectBeComplement is the complete match used in this example. SubjectAndBe is the opening context with the subject and verb, while Complement is the phrase sequence after it. The equals sign defines the pattern, and · puts the candidate complement immediately after that context. Once this match is found, the action locates the end of the verb phrase and adds *COMP< around the complement. The arrow points back toward the verb.

In the paper’s example about someone being a very good teacher, the noun phrase for “he” first receives the subject marking. The phrase containing the verb “is” is already marked as VPb. The complement scanner then recognizes the teacher phrase, including its nested adjective and adverb phrases, and wraps the whole noun phrase in complement braces. The final markings preserve the distinctions made along the way. “Very” is an adverbial unit within the description “very good,” the description is part of the noun phrase, and the noun phrase serves as the complement.

Experiments and results

The reference annotations and the input conditions

The authors randomly selected 509 sentences containing 8281 tokens from IFD. The corpus already supplied part-of-speech tags. Two annotators added phrase structure and syntactic functions after IceParser had been developed, using the project's annotation scheme. The resulting treebank gives the reference brackets and labels for automatic scoring. The development corpus serves a different purpose. Its selected constructions helped define what the parser should produce, while the random evaluation selection supplies a common set of sentences for comparing input conditions.

Each evaluation condition uses the same parser and the same reference syntax. In one condition, the parser receives the tags from IFD and the evaluation treats them as correct. In the other, IceTagger tags those sentences before IceParser receives them. IceTagger’s tagging accuracy on the test sentences is 91.1%, and the unknown word ratio is 7.8%. Those figures describe the input to the automatic-tag condition. They are separate from the scores that measure the syntactic annotations produced after that input passes through the cascade.

The corpus-tag condition shows how well the rules work with the word categories and features assumed by the design. The automatic-tag condition brings in the errors that arise when a tagger must supply that information. Holding the target annotations fixed gives the comparison a clear interpretation. A score change reflects the parser’s response to the substituted tag stream. The experiment also allows for an input change to affect several levels at once. A changed tag can alter a phrase boundary, which can in turn alter the function scanner's interpretation of the phrase.

The authors used Evalb for bracket scoring. Precision measures how many of the parser's predictions agree with the reference. Recall measures how many of the reference items the parser recovers. With labelled brackets, a parser must find the correct boundaries and give the resulting span the expected label. The paper reports their harmonic mean as F-measure.

F = (2 × P × R) / (P + R)

F is F-measure, P is precision and R is recall. The equals sign defines F. The constant 2 scales the product of precision and recall, × means multiplication and / means division. In the denominator, + adds the precision and recall values. The parentheses group the whole product above the division and the whole sum below it. The harmonic mean gives a lower score when either precision or recall is low, so recovering many reference items and avoiding spurious predictions both matter.

Constituents

Overall constituent F-measure on the IFD test sentences is 96.7% with corpus tags and 91.9% with IceTagger tags. This comparison uses the same set of constituent categories and the same scoring procedure for each input. Its result gives the aggregate effect of replacing the supplied tags with automatic predictions.

IceParser constituent F-measure on the IFD test sentences by source of tags

With corpus tags, IceParser matches more of the reference constituent annotation.

IceParser constituent F-measure on the IFD test sentences by source of tagsIceParser with IceTagger tags: 91.9IceParser with IceTagger tags91.9IceParser with corpus tags (this paper): 96.7IceParser with corpus tags (this paper)96.7
The numbers
System or settingF-measure %
IceParser with IceTagger tags91.9
IceParser with corpus tags (this paper)96.7

The aggregate includes phrase types of different frequencies and difficulty. In the corpus-tag condition, the VPx group achieves 99.2%, coordinating conjunctions 100.0%, subordinating conjunctions 99.6% and interjections 100.0%, all measured by F-measure on the IFD test sentences. The paper reports that these high-scoring types together make up 28.6% of reference phrases. The interjection label on its own represents 0.2% of test phrases. Its perfect score thus describes a much smaller part of the annotation than the score for noun phrases, which account for 37.6%.

The common adjective, noun and prepositional phrase categories do well with corpus tags too. Their respective IFD test F-measures are 95.1%, 96.8% and 96.7%. The authors report that these types together account for 58.7% of reference phrases. With IceTagger tags the corresponding scores are 86.3%, 93.0% and 91.3%. The difference in the conditions is especially visible for adjective phrases. At the same time, successful noun phrase recognition makes a substantial contribution to performance on the dataset because noun phrases are so frequent there.

Some labels are more demanding even with the supplied tags. Adverb phrases score 91.8% with corpus tags and 85.1% with IceTagger on the test set. Adjective phrase sequences score 87.0% and 68.6% in those same conditions, and noun phrase sequences score 80.4% and 74.3%. These sequence labels ask the parser to identify a relationship among phrases it has already recognized. Finding the individual phrases can therefore be compatible with getting the sequence annotation wrong. The authors’ error examples show how that happens for noun phrase sequences when neighboring phrases share a case but belong to different parts of a sentence.

Grammatical functions

The overall function F-measure is 84.3% with corpus tags and 75.3% with IceTagger tags. Function scoring includes the directional distinctions in the scheme. A label can therefore be too general for an exact match even when the span and base function have been identified.

IceParser syntactic function F-measure on the IFD test sentences by source of tags

The function cascade agrees more closely with the reference when it receives corpus tags.

IceParser syntactic function F-measure on the IFD test sentences by source of tagsIceParser with IceTagger tags: 75.3IceParser with IceTagger tags75.3IceParser with corpus tags (this paper): 84.3IceParser with corpus tags (this paper)84.3
The numbers
System or settingF-measure %
IceParser with IceTagger tags75.3
IceParser with corpus tags (this paper)84.3

The familiar subject–verb–object order helps explain the stronger subject and object results. In the corpus-tag condition the subject label with the verb to the right scores 92.7%, and the object label with the verb to the left scores 90.2%. These labels make up 30.3% and 19.7% of the reference functions, respectively. The subject label with the verb to the left scores 83.7%. When the verb lies to the right of the object, the object score is 43.5%. That label makes up 0.8% of the reference functions. The papers’ category scores thus describe different arrangements with different amounts of representation in the test set.

With IceTagger tags, the F-measures for subjects with verbs to their right and objects with verbs to their left are 89.4% and 78.2%, respectively. Bare subject marking reaches 47.6%, compared with 68.2% when the corpus tags are supplied. The nominative object label shown in the paper, with the verb to its left, reaches 16.7% with IceTagger and 30.8% with corpus tags. Its reference frequency is 0.6% of functions. A score on a category this infrequent answers a narrow question about that label on these test sentences. The overall score is more heavily influenced by the common directions for subject and object.

Other functions show different patterns across the same input conditions. Genitive qualifiers score 87.7% with IFD tags and 77.9% with IceTagger. Temporal expressions score 74.7% and 55.9%, respectively. The complement label for a verb on the right has an F-measure of 91.3% in both conditions, while the complement label for a verb on the left scores 75.1% with corpus tags and 70.0% with automatic tags. Identical scores for one direction establish equality on that reported measure. Two runs can still arrive at the same score from different individual decisions.

The paper also reports what happens when subject and object scores ignore the direction indicator. On the IFD test sentences with corpus tags, the resulting F-measures are 90.5% for subjects and 88.2% for objects. This scoring choice credits the base grammatical function wherever the annotation otherwise matches. It makes the subject score answer whether IceParser located the subject and called it a subject, with the direction of its verb left out of the criterion.

Comparisons and processing speed

The paper gives published figures from related languages as context because it has no other Icelandic parser evaluation to use as a direct baseline. For Swedish, the shallow rule-based system discussed by Knutsson and colleagues obtains 88.7% F-measure across phrases and 91.4% for noun phrases with automatic tagging. The Swedish finite-state cascade discussed by Kokkinakis and Johansson-Kokkinakis reports 93.3% and 96.2% for those respective measures. Its input tagger achieves 98.7% accuracy on its test data. The figures therefore place IceParser alongside related approaches whose evaluation conditions, especially tag quality, differ from its own.

For grammatical functions, the paper compares its results with those reported by Müller for German. That finite-state system uses part-of-speech tags from a corpus and achieves 82.5% F-measure across functions in its evaluation. Its reported scores are 90.8% for subjects, 64.5% for accusative objects and 81.9% for dative objects. The Icelandic test includes its own label inventory and directional distinctions. The German figures give a point of reference for the range of published results on function annotation, with each score tied to the categories and data of its own evaluation.

The engineering comparison concerns how scanners pass intermediate output. The first implementation writes each stage’s text to a file and has the next stage read it. On the Dell Optiplex GX620 Pentium 4 at 3. The version the paper lists at 20 GHz handles roughly 6,700 word-tag pairs each second. The implementation that uses Java’s StringReader and StringWriter to pass the text through memory annotates about 11,300 word-tag pairs per second. The measured unit begins with pairs of words and tags, which are the parser’s input.

Throughput of file and memory handoff in IceParser’s parser timing

Passing intermediate annotations through memory raises parser throughput.

Throughput of file and memory handoff in IceParser’s parser timingIntermediate files: 6,700Intermediate files6,700In-memory transfer (this paper): 11,300In-memory transfer (this paper)11,300
The numbers
System or settingword-tag pairs per second
Intermediate files6,700
In-memory transfer (this paper)11,300

The two implementations still pass an annotated stream down the cascade. Their difference in the timing comparison is the mechanism used to hand off that stream. The paper reports the throughput gain as about 75%. This measurement addresses the cost of moving intermediate results while leaving the linguistic analysis itself as described for the shared cascade.

What the ablations show

The paper reports no ablation that removes a transducer, feature or rule family from IceParser. It does offer controlled comparisons of tag input, scoring and interstage transfer, along with an analysis of individual errors. Those forms of evidence answer different questions. The input experiment shows sensitivity to the supplied tags. The rescoring experiment shows the effect of requiring directional detail. The error analysis traces how particular strings interact with the rules.

Changing the evidence available to the rules

Replacing corpus tags with IceTagger output changes the evidence available throughout the parser while leaving its pattern descriptions in place. The function score falls more sharply than the constituent score. The authors relate this to the importance of grammatical case for recognizing functions and to case errors in the tagger’s output. This explanation is consistent with the form of the subject rule. A candidate with the wrong case can miss the branch that would otherwise match the verb. It also fits the distinction between recognizing a noun phrase and deciding what role it has. Much of the phrase can be recoverable from its words and categories even when a case-sensitive function decision fails.

The comparison replaces the complete tag stream. A different tag can give a phrase scanner the wrong word class, give a function scanner the wrong case, or change how a verb is identified. A function error can arise directly from the evidence used by a function rule or indirectly from changed phrase boundaries. The experiment measures the combined effect of these possibilities. The claim about case gives a linguistic explanation for the observed sensitivity, and the paper leaves the individual contributions of different tagging errors unmeasured.

Direction-free scoring changes another part of the experiment. It changes the required annotation match while leaving the parser's analysis in place. The resulting subject and object scores show how well the system recovers the broader functions. A subject identified without the correct arrow illustrates the practical distinction. A consumer that needs a subject span can use that result, while a grammar check that expects the arrow to direct it toward a verb has received an incomplete analysis. The choice of score depends on which property the system is supposed to recover.

The throughput comparison works at a different level. Replacing intermediate files with strings in memory reduces the cost of handing text between stages. Both implementations perform the successive pattern-matching process. The reported rate shows the benefit of that implementation choice for this parser. It supplies no separate timing for the noun phrase scanner or another rule family, so a reader can attribute the reported comparison to the handoff strategy without using it to rank the cost of individual linguistic rules.

Where phrase recognition fails

The authors illustrate an adverb phrase error in which adjacent adverbs are grouped together. The Icelandic words ekki and þá appear next to one another in the example. The former contributes sentence negation, while the latter expresses time. The reference gives them separate adverb phrases because they serve separate purposes. IceParser's output puts them inside one span. Both words can be recognized as adverbs while their adjacency is interpreted incorrectly. An exact bracket score records the lost reference spans and the proposed combined span.

An adjective phrase error begins with a similar local opportunity to group words. In the authors’ example containing tóku fram, the particle fram belongs with the verb, whose meaning in context is “took out.” The next adjective means “own.” IceParser groups the particle with that adjective, then includes the resulting adjective phrase in the noun phrase for the cans. The local order fits an adverb-before-adjective pattern. The relevant relation runs back towards the verb. Once the adjective phrase includes the particle, a later noun phrase pattern can take the whole bracketed span as an available modifier.

The same example shows how a constituent error becomes a separate function error. The object transducer can see a noun phrase after the verb and assign it an object label in the expected direction. Its predicted object nevertheless includes fram. The function decision is plausible given the bracketed input it received, but the span mismatches the reference because of the earlier attachment. Looking only at the object score would hide which decision introduced the extra word. Tracing the intermediate brackets exposes the point at which the proposed object boundary became wrong.

Another noun phrase error comes from missing coverage of word order inside a phrase. In the example with árin gullnu, the adjective meaning “golden” follows the noun meaning “years” and modifies it. IceParser brackets the noun and the adjective separately. The reference places the adjective phrase inside the noun phrase. The authors attribute the result to the absence of a noun-followed-by-adjective pattern. The needed word categories are recognizable, and it is the order of those categories that falls outside the scanner’s coverage.

That gap can interact with an overinclusive grouping rule. In another example, a noun phrase containing the pronoun hann and a later noun phrase headed by íþróttamaður have the same case and are separated by a coordinator. The noun phrase sequence scanner groups them. In the reference, the conjunction stands apart from those groups and a following adjective belongs inside the noun phrase headed by íþróttamaður. Case agreement is real in the erroneous sequence. It is insufficient evidence that the two nominal pieces form the unit the parser proposes. This illustrates how an overly broad match and a missing phrase pattern can show up in the same short stretch of text.

Where a function is only partly recovered

The subject example in the error analysis shows a different outcome. The noun phrase headed by matur, meaning “food,” receives a subject label, but the label has no arrow. Its associated finite verb appears at the beginning of the question. The parser already has a pattern for a finite verb phrase followed by an adverb phrase and then a subject. In this instance an infinitival phrase intervenes between the adverb and the subject. The extra constituent keeps the existing directional pattern from matching.

IceParser still has a fallback for stand-alone nominative noun phrases, so the noun phrase is marked as a subject. The annotation of the words and the basic role survives, with the direction left unspecified. This gives an example of what the broader subject score can credit and the directional score can penalize. It also identifies a coverage issue at the function level with correctly recognizable constituents on either side. The problem is the sequence in which those constituents occur.

Taken together, the examples trace failures to several points in the cascade. The postnominal adjective points to a missing constituent pattern. The case-matched noun sequence points to an insufficient condition for grouping. The verb particle shows a boundary error inherited by a function rule. The subject example shows a fallback after a directional match fails. The paper uses individual cases to explain those mechanisms. It reports no counts showing how frequently the mechanisms occur across all function errors or how much the score would change after a repair.

Limitations

Limits the authors identify

IceParser deliberately delivers shallow syntax. The annotation captures core phrases, some nesting and selected grammatical functions. The authors frame full analysis as a different task with additional practical and theoretical difficulties for a language with variable word order. The results concern success at the level the scheme defines. They do not establish accuracy on complete parse trees or on relationships beyond those represented in the labels.

The paper explicitly identifies sensitivity to part-of-speech tagging. Accuracy under the corpus-tag condition assumes that the parser receives the relevant linguistic evidence in usable form. The automatic input experiment demonstrates how much the results on the same sentences depend on that assumption. The authors single out case as an important source of vulnerability for function rules, and their examples establish that coverage gaps remain even when a useful tag or constituent is available.

The authors also acknowledge the limits of their external comparisons. Published Swedish and German results come from languages with different grammatical properties and evaluations with different annotation schemes, test data and procedures. At the time of the paper there was no other published Icelandic parser evaluation for a matched comparison. The cited figures give historical context for the magnitude of the scores, with no experimental basis for a ranking on a common task.

The conclusion names improvement of individual components and more extensive use of the information in the tags as future work. This leaves an open design question created by the grammar-checking motivation. Additional agreement conditions might help the parser rule out some incorrect structures. They could also keep an ill-formed phrase from being available as a group for checking, which is precisely what the authors wanted to avoid. The evaluation does not test alternative cue sets or measure performance in a downstream grammar checker. The rationale explains the design decision, and the effectiveness of that tradeoff in use remains unmeasured.

Limits visible in the evaluation setup

The reference annotations apply the same scheme IceParser was built to produce. This is appropriate for assessing agreement with the intended output, and it makes the scope of the scores specific. A bracket mismatch is an error with respect to this scheme. Another representation could require different phrase boundaries, treat a construction through a different set of labels, or ask for word-to-word relations absent from the output. The reported F-measures alone cannot say how the same analysis would perform against such a target.

The development material and the randomly selected test sentences both come from IFD. The development selection represents major constructions, and the test selection supports an evaluation on that corpus. The paper's argument that shallow parsers can be useful for noisy text and speech concerns the general approach. The reported corpus results give no direct measurement for those conditions, for another source of written Icelandic or for text containing the agreement mistakes that motivated the feature restriction.

The account identifies two annotators but gives no agreement score between them or a breakdown of where their analyses differed. A reader can use the resulting annotation as the declared reference, while the ease with which humans reproduce every boundary and direction label remains unspecified. This matters particularly for fine distinctions whose scores are based on relatively infrequent labels. The paper provides frequencies that help put those categories in context, with no uncertainty estimates for their scores.

The two input conditions also leave the internal source of some errors unresolved. The syntactic functions module always starts with phrases produced by IceParser. Even corpus tags can lead to the wrong phrase boundaries, as the paper's examples show. A comparison using reference phrase boundaries as the input to the function module would address how that module performs when its constituent evidence is supplied. No such result is reported. The function scores therefore describe the delivered cascade, incorporating its phrase analysis as well as its function rules.

Finally, the timing results describe processing of already tagged input through a particular implementation. A complete application starting with raw text would also incur the cost of preparing that input. The paper gives no end-to-end time for tagging and parsing together, and it supplies no timing breakdown for individual stages. The measured rates are directly informative about the two versions of IceParser and about the impact of the handoff mechanism in that setting.

What came after

Subsequent work cited IceParser while pursuing different kinds of syntactic analysis for Icelandic. The later titles identify projects concerned with broader grammar coverage and with a parallel dependency treebank. Those projects extend the range of resources and parsing tasks addressed for the language. The citation links establish a connection to IceParser, while the titles support a comparison of the projects’ stated aims.

The 2019 paper presents a wide-coverage context-free grammar and a parsing system to accompany it. A context-free grammar describes how a category can be expanded into other categories or words. This gives the later project a different stated formal basis from IceParser’s sequence of scanners, where each stage acts on tagged words and previously marked spans. The title establishes the scope of the grammar project and the presence of a parser. It leaves rule reuse, compatibility with IceParser’s labels and comparative performance unspecified. Wide-Coverage Context-Free Grammar for Icelandic

The 2020 paper addresses the creation of a parallel Icelandic dependency treebank, taking raw text through to Universal Dependencies. In dependency parsing, the basic structural relation is between a word and its head, with a label describing that relation. IceParser’s output describes spans with constituent brackets and marks functions around some of those spans. The later title thus identifies both a different starting point for the overall workflow and a different target representation. It leaves open which components supplied the intermediate analyses and how any IceParser annotations were used. Parallel Icelandic Dependency Treebank

IceParser’s contribution to this line of work was to specify and evaluate a shallow annotation target for Icelandic, making phrase boundaries and grammatical functions explicit enough for repeatable scoring. The later projects concern what can be represented with a wide-coverage grammar and what can be organized as a dependency resource. The documented connection is citation. The extent to which either project reused IceParser’s implementation, rules or annotated data is unspecified.

Cite

Cite as Hrafn Loftsson and Eiríkur Rögnvaldsson. 2007. IceParser: An Incremental Finite-State Parser for Icelandic. Proceedings of the 16th Nordic Conference of Computational Linguistics (NODALIDA 2007).

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

@inproceedings{loftsson2007iceparser,
  title = {{IceParser: An Incremental Finite-State Parser for Icelandic}},
  author = {Hrafn Loftsson and Eiríkur Rögnvaldsson},
  booktitle = {Proceedings of the 16th Nordic Conference of Computational Linguistics (NODALIDA 2007)},
  year = {2007},
  url = {https://aclanthology.org/W07-2419/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/loftsson-2007-iceparser-incremental-finite-state-parser/