Elamur Research

Dependency Parsing of Hungarian: Baseline Results and Challenges

Paper · 2012 · Richárd Farkas, Veronika Vincze and Helmut Schmid

Summary

A parser must decide which words in a sentence belong together and what grammatical relationship connects them. In English, position often helps identify a subject or an object. In Hungarian, those roles are more often signaled by the form of the word, and the order of the sentence can reflect which information the speaker wants to emphasize. Farkas, Vincze and Schmid ask how well established dependency parsing systems handle that difference. They test Malt, MST and Mate on the manually corrected Szeged Dependency Treebank, which contains 82,000 sentences from several domains, and run the same parsers on English shared-task data for comparison.

Mate led the comparison on the development and test sets of both languages. With automatically assigned grammatical tags, its Hungarian test score was 90.1 for finding the correct head word and 87.2 for finding both the head and the relationship label. Its corresponding English scores were 92.6 and 90.3. The totals are close enough to motivate a closer look at how the parsers succeed. When Mate was given only sequences of gold-standard main part-of-speech tags, with word identity and detailed morphology removed, its development-set scores fell much more in Hungarian, especially when the evaluation required the relationship label to be correct. The authors’ inspection of heavily weighted features also found that position and intervening words figured prominently in English and rarely ranked as highly in Hungarian.

The Hungarian results varied substantially within the treebank. Mate was more accurate on the short, formulaic business reports than on the broader newspaper material. Adding training examples from all the other domains gave mixed results. A separate comparison kept the Hungarian sentences from an earlier shared task and changed their annotation to the manually revised Szeged version. Mate’s scores rose under the revised annotation, showing how much a benchmark can change when its reference trees and label inventory change.

The authors also read parser errors in both languages with gold-standard grammatical input. The largest Hungarian category involved clauses whose linking verb, the copula, is absent from the written sentence. Other recurring problems included choosing the head of an article, attaching a noun to the right verb or participle, and finding what a negative word or conjunction modifies. English had its own concentrations of errors, including prepositional phrase attachment and the internal structure of names. The similar overall scores therefore leave open an important question about any particular construction. The error analysis answers part of that question by showing exactly where the systems’ difficulties diverge.

Deep dive: Dependency Parsing of Hungarian: Baseline Results and Challenges

Hungarian dependency parsing baselines on the Szeged Dependency Treebank show how morphology, domain and annotation shape accuracy and errors. · about 35 minutes to read

The problem and its context

What word order can tell a parser

A dependency analysis records a sentence as a tree. Each word that depends on another word has a head, also called its governor, and the connection carries a label for the grammatical relation. A parser might correctly link a noun to a verb and still mistake an object for a subject. It might instead recognize the likely kind of relation but choose the wrong verb. The distinction matters throughout the paper because finding a head and assigning a label place different demands on the parser.

The English–Hungarian comparison is motivated by how the two languages signal those relations. The authors place English towards the configurational end of a spectrum, meaning that the arrangement of words and phrases gives strong evidence about their grammatical functions. A noun phrase before the verb is commonly the subject. Hungarian has fewer fixed sentence-level positions of this kind. Its subject, object and verb can occur in different orders, and the positions surrounding the verb also convey information about what the sentence is presenting as familiar, new or emphatic. The paper treats the internal organization of noun phrases separately from this broad characterization of sentence order.

The Hungarian focus position illustrates why the distinction matters. Focus precedes the verb, and a topic precedes the focus. The constituent in focus can be a subject, an object or some other argument. A parser can learn that a position is significant and still need evidence from elsewhere to identify the grammatical relation. An English pattern associating a preverbal noun phrase with subjecthood would give the wrong answer whenever a Hungarian object or another argument occupies that position. The same piece of evidence, the location of a phrase, has a different use in the languages being compared.

Hungarian morphology supplies much of the evidence that position supplies in English. Hungarian is agglutinative, so affixes can combine with a stem to produce many forms. The dative form gyereknek, derived from gyerek, supplies information about the role of the child through a suffix. The authors describe Hungarian as having about 20 noun cases and explain that grammars and coding conventions differ on which rare endings count as case suffixes. These endings can mark both arguments, which participate in a relation licensed by a head, and adjuncts, which add information such as circumstances. Hungarian also has postpositions. Some relations that English expresses with a separate preposition can be conveyed by a Hungarian suffix.

Verb inflection affects what the parser sees as well as what it can infer. Hungarian conjugation marks person and number and supplies information about the definiteness of the object. In an example discussed by the authors, Várlak conveys that the speaker is waiting for the addressee without separate words for the subject and object. Omission of such pronouns is known as pro-drop. The grammatical participants are still understood, but an attachment evaluation over written tokens has fewer overt words to score. A comparison based on token-level accuracy therefore measures partly different work in the two languages.

The copula presents a related problem with different consequences for the tree. Under the present indicative conditions described in the paper, a third-person singular copula has no audible form. In A ház nagy, the adjective supplies the predicate and the sentence conveys that the house is big. In A ház nagy lesz, a form corresponding to will be appears. A treebank can represent the relation between these sentences by giving the first sentence an empty verb node. A parser that works with words present in the input needs a different way of representing that clause. The authors’ decision about the empty node becomes central to the experiments.

Why dependencies suit discontinuous phrases

A grammatical unit can contain words separated by material that belongs elsewhere. The paper illustrates this with Hungarian possession. In one construction, only the possessed noun carries an overt possessive marker. In another, the possessor has a dative-shaped ending and the possessed noun also shows the possessive relation. In that latter construction, the words can be separated, as in A fiúnak látta a kutyáját. The initial phrase identifies the boy as the possessor of the dog even though the verb intervenes. The form of the possessor resembles another grammatical use of the dative, so the suffix is evidence to interpret in context.

Dependency trees can link the possessor to the possessed noun across intervening material. The resulting arrangement can be non-projective. Projectivity concerns how a tree fits the sentence’s word order. In a projective tree, the words beneath a head form a continuous stretch. A discontinuous construction can violate that property while remaining a coherent set of grammatical relations. The Szeged study uses a definition based on the descendants reachable through dependency links. This is the transitive-closure definition associated with earlier work on pseudo-projective dependency parsing.

This representational flexibility is one reason the authors chose dependencies for the comparison. A corpus built around continuous phrase units can leave a discontinuous relation out of its annotation. Converting its trees automatically into dependencies can carry that omission forward. Manual revision gives annotators a chance to add the relation, so the resulting resource can ask parsers to recover structures that the original corpus did not represent. Where separated dependents are common, producing a valid tree and producing the annotated tree become meaningfully different requirements.

The authors also had a reason to be cautious about comparing scores per word. In the Hunglish parallel corpus, an English sentence contains 20.5% more words than its Hungarian counterpart by the counts they cite. They identify prepositions and overt pronominal subjects and objects as common examples of the extra material. They regard the heads and labels of such tokens as comparatively easy to predict. The parallel-corpus statistic motivates a caution about the units of measurement. It supplies no adjustment to the attachment scores on the separate treebanks used in the experiment.

The resources and parsers available before the study

The paper describes earlier work in terms of two established approaches. A graph-based parser considers the words and possible directed dependencies as a graph. Its search favors a tree that connects the sentence and receives a high score under the learned scoring function. A transition-based parser constructs an analysis through a succession of actions as it processes the sentence from left to right. A classifier uses evidence from the current state and parsing history to choose what happens next. The distinction is consequential because one approach scores larger candidate structures and the other commits to a sequence of actions. The paper situates these families in prior work on dependency parsing and in a comparative study of how the two approaches behave. Analyzing and Integrating Dependency Parsers

Hungarian already had the Szeged Constituency Treebank, a manually annotated collection that records phrase structure and word analyses. It preserves possible morphological readings and also identifies the selected reading in context. Its texts span short business news, newspapers, law, literature, school compositions and computer-related material. The authors describe relatively little published work using it to train and assess phrase-structure parsers. They also mention handwritten systems evaluated on smaller collections of their own. A substantial annotated resource and a limited record of parser comparisons could therefore coexist.

The Szeged Dependency Treebank started from an automatic conversion of the phrase-structure trees. Annotators then inspected and corrected the resulting dependency analyses. They supplied structures that the constituency annotation had left implicit, including discontinuous ones. To the authors’ knowledge, parser results on this manually revised dependency corpus had yet to be published. Establishing baselines on it was a distinct contribution from evaluating Hungarian in a multilingual competition.

Hungarian had already appeared in the CoNLL 2007 Shared Task on Dependency Parsing. Its shared-task trees came from an earlier automatic conversion of Szeged constituency analyses. The later manual revision changed the treatment of several constructions and reconsidered conversion decisions. This history creates a useful opportunity. Sentences from the older task can be matched to the newer annotation, permitting a comparison in which the words stay fixed while the reference syntax changes. It also makes the identity of the reference trees essential when interpreting any reported Hungarian score.

The method, step by step

From annotated sentences to parser input

The experimental procedure starts with a distinction between information available to a parser and information used to judge it. A treebank gives the researchers a sentence, a set of grammatical annotations for its words and a dependency tree. During training, the reference trees show the parsers which heads and labels to favor. For held-out sentences, the parser must predict those heads and labels. The researchers can give it grammatical tags produced by a separate tagger or substitute the gold-standard tags from the corpus. The dependency tree remains the target in either case.

From Szeged annotations to evaluated dependency parses

The steps in order.

From Szeged annotations to evaluated dependency parsesStep 1: Adapt treebank nodes to written tokens1. Adapt treebank nodes to written tokensStep 2: Divide the annotated corpus into evaluation splits2. Divide the annotated corpus into evaluation splitsStep 3: Generate candidate analyses for Hungarian words3. Generate candidate analyses for Hungarian wordsStep 4: Select grammatical readings with a sequential tagger4. Select grammatical readings with a sequential taggerStep 5: Train parsers on annotated dependency trees5. Train parsers on annotated dependency treesStep 6: Parse held-out sentences with predicted or gold tags6. Parse held-out sentences with predicted or gold tagsStep 7: Score heads and labels against the reference7. Score heads and labels against the reference

The Szeged Dependency Treebank contains 82,000 sentences, 1.2 million words and 250,000 punctuation marks. The annotation uses 16 coarse part-of-speech tags and distinguishes among 95 values for morphological features and 29 labels for dependencies. A part-of-speech tag describes a broad category such as noun or verb. A morphological feature records a more specific property, such as case for a noun. A dependency label belongs to the edge and describes a token’s relation to its head. These kinds of information have separate roles even when they overlap. A word can be identified as a noun with a certain case before the parser has decided what the noun modifies.

Under the paper’s counting convention, 19.6% of Szeged sentences contain a non-projective edge, while 1.8% of edges are non-projective. The sentence count asks how frequently a parser encounters at least some non-projective structure. The edge count asks what share of attachments have that property. The authors describe the edge rate as nearly 5 times the English rate and equal to the Czech rate reported in a multilingual shared task. A comparatively small share of the edges can thus affect a much larger share of complete sentences. CoNLL-X Shared Task on Multilingual Dependency Parsing

Before training, the authors adapt the Hungarian annotation in two places where the original treebank’s nodes differ from what the parsers can reasonably receive as input. In one case, the corpus combines several visible words into a node. In the other, it inserts a node for a word with no visible realization. The changes make the trees usable by the chosen parsers, and they also determine which predictions will count as correct.

Splitting names without adding an internal analysis

The original corpus represents a multiword named entity as a single token. To use those units unchanged, the experimental pipeline would need to know the boundaries of names before parsing ordinary whitespace-separated input. The authors considered perfect recognition of those boundaries unrealistic. They therefore split the multiword units into their component tokens. This is a change to tokenization and to the corresponding grammatical annotations.

For each split name, the last token inherits the morphological analysis originally assigned to the multiword unit. The preceding tokens receive proper-noun tags and default morphological features. The last word is the head of the full name. Every earlier word attaches to its immediate successor, producing a chain. This means that the word immediately before the head attaches straight to it, while words farther back reach it through the intervening chain.

The authors motivate the choice of final head by the placement of Hungarian inflection on the last word of such units. The chain addresses a separate issue. It provides a consistent representation of name membership without asking annotators to reconstruct the grammar internal to every name. In the paper’s company-name example, a word that functions as a conjunction outside the name receives a proper-noun tag in the Hungarian representation. The comparable example under Penn Treebank conventions preserves the conjunction category. The difference later matters because gold tags in Szeged carry strong clues about which tokens should form the chain.

The authors envisage a pipeline in which named entity recognition precedes parsing. They also question the downstream value of a detailed syntactic analysis inside names. The actual experiment uses the token-level conversion and its chain convention. The two decisions serve different purposes. Splitting the unit gives the parser individual words as input, while the reference chain specifies the result it should produce for those words.

Removing empty copulas and reconnecting their dependents

For predicative nouns and adjectives in clauses without an overt copula, the original Hungarian treebank supplies a virtual node. There are 16,000 such items in the corpus. The abstract node allows the corpus to use related analyses for sentences with the same basic predication in different forms, including forms in which the copula appears. It also gives the clause an explicit syntactic center even when the written sentence has no verb in that position.

The selected parsers cannot produce these invisible nodes. Following a solution used in the Prague Dependency Treebank, the authors remove them from the reference annotation. A former dependent of a virtual node is reattached to the virtual node’s original head. Its new edge receives the special label Exd. The resulting tree can be expressed entirely over the input tokens.

Consider what that changes for training. The parser sees words that could look like ordinary dependents elsewhere, yet the reference now asks it to predict a special edge indicating the effect of an absent node. Several original grammatical relations can receive that same label after reattachment. The transformation gives the system a scoreable target, and it removes some of the distinction between the original relations. That tradeoff helps explain why the authors examine virtual-node errors separately from general verb attachment.

Preserving document boundaries when making splits

The main Hungarian experiment uses training, development and test sets that each contain material from the treebank’s domains. The authors try to keep documents together. If parts of a document appeared in both training and test data, previously encountered vocabulary, style and recurring constructions could make the test less representative of parsing a new document. The target is separation at the level of texts even though the parser learns and predicts sentence by sentence.

Fiction and law make strict separation difficult because there are few source documents. Fiction consists of three books and law of two rules. The paper describes dividing material from an individual document in those cases to provide held-out data. For the domain cross-validation experiments, the authors again take document boundaries into account, with an exception for law. They use 3 folds for fiction and 10 for the other domains. They note that a document-based division can leave a training fold with just 3000 sentences. The split choices balance textual separation against the amount of training material available.

Cross-validation serves a different purpose from the main development and test comparison. In the domain experiments, repeated training and evaluation within a subcorpus provide results for that kind of text. The authors also repeat the domain comparison after supplying training parses from the other subcorpora. Because the evaluation remains on the target domain, the change shows how helpful the added material is for that particular target. The fold counts for these parsing experiments are distinct from the procedure used to generate the tagger’s predictions.

Resolving morphology before parsing

The Hungarian pipeline begins with a finite-state morphological analyser built from the morphdb.hu lexical resource. For a written word form, it returns possible pairs of a lemma, the word’s dictionary form, and a morphological analysis. The analysis uses the Szeged Treebank’s MSD-style coding. A word can have multiple analyses because an ending can perform several functions or because the letters permit more than one segmentation into meaningful parts.

The candidate readings constrain the tagger’s task. A general inventory of possible tags would include readings that make little sense for a given form. Here, the analyser first lists the readings it licenses, and the sequential tagger selects among them in sentence context. The decision at this stage determines which word categories and grammatical features will be available to the parser. The analyser proposes readings for individual forms, and the tagger supplies the contextual choice.

For part-of-speech tagging, the authors use a modified Stanford tagger, described in the paper as based on conditional random fields. They generate Hungarian predictions through 5-fold training and tagging within the subcorpora. English experiments with predicted tags use the tags supplied by the CoNLL-2009 Shared Task. Therefore, the parser comparison uses a common choice of parser systems across languages, while the source of the automatic grammatical analyses differs. Feature-Rich Part-of-Speech Tagging with a Cyclic Dependency Network

The paper names magyarlanc as the distribution containing the Java morphological analyser and the modified tagger, together with trained components. The distribution of the Szeged treebank includes the data splits for the main experiments and the domain cross-validation. The experiments also substitute gold-standard tags and analyses for the automatic ones. That comparison estimates what changes when this stage is supplied from the annotation. It leaves the later tasks of head selection and dependency labeling to the parser.

How the three parsers choose a tree

Malt is the transition-based system. It uses an arc-eager procedure, which builds dependency links through actions taken as the parser processes the sentence. A support vector machine learns to score the actions. During parsing, Malt chooses a single best action at each decision and proceeds deterministically from there. The resulting tree follows from those successive local choices. Training teaches the classifier to prefer actions compatible with the reference trees under that procedure.

MST is graph-based. It uses a second-order feature decoder and an approximate search to produce an unlabeled tree. An arc-label classifier then assigns a relation to each chosen edge. This ordering matters. The final label can depend on the proposed link, while the earlier search has already settled the heads before the separate labeling stage. The cited work on non-projective parsing with spanning trees supplies the background for this approach.

Mate is also graph-based and uses second-order information, including interactions between siblings, which share a head, and chains in which a node has a child and grandchild. Its decoder considers labeled edges during the search. Head choices and proposed relation labels are therefore part of the same decision about the tree. The paper describes a rich feature inventory and a hash kernel. Its experiments compare Mate as a complete parser, without separately measuring the contribution of the kernel or each feature family. The architectural background comes from the work introducing Mate and the cited work on higher-order dependency parsing.

A feature can encode a property of a candidate relation, such as the order of its ends, the grammatical categories of intervening words or the morphology available for the attached word. A learned weight affects how such a property contributes to the score when it occurs. A parser with access to both positions and grammatical forms can learn to favor different cues in different languages. The study probes that possibility by inspecting heavily weighted features and by training a version with less information. The paper describes the search and feature restrictions in prose, without giving a new scoring equation or training objective.

Experiments and results

What the scores count

Unlabeled attachment, abbreviated ULA in the paper, gives a token credit when its predicted head agrees with the reference. Labeled attachment, LAS, requires that head and the dependency label to agree. A grammatical category can help with either decision. For example, case can help identify a noun as a likely object, and that information can also help the parser choose which verb governs it. LAS records the joint outcome. In these experiments, punctuation is included in both attachment measures.

The authors use CPOS and DPOS to assess the tagging stage. CPOS is the accuracy of the main part-of-speech category. DPOS requires that category and every morphological feature in the token’s analysis to be correct. A word with the right broad category and the wrong case can therefore count toward CPOS and fail DPOS. These tagger scores measure agreement with the annotated word analyses. The attachment scores measure agreement with annotated relations between words.

The full-corpus comparison covers the Hungarian Szeged split and English CoNLL-2009 data. The authors report development and test scores under predicted and gold-standard tagging. Mate leads Malt and MST on both languages’ development and test sets, under both input conditions. The ranking below holds the language, test split and tag source fixed, so the three bars compare the parsers on the same labeled attachment task.

Labeled attachment on the Szeged test set with predicted tags

Mate leads Malt and MST on labeled attachment with automatic grammatical input.

Labeled attachment on the Szeged test set with predicted tagsMalt: 86.1Malt86.1MST: 81.6MST81.6Mate (this paper): 87.2Mate (this paper)87.2
The numbers
System or settingLAS
Malt86.1
MST81.6
Mate (this paper)87.2

Results on the full Hungarian and English datasets

On the Hungarian test set with predicted tags, ULA was 88.7 for Malt, 87.5 for MST and 90.1 for Mate. With gold tags, the same test set yielded ULA and LAS of 90.2 and 88.2 for Malt, 89.0 and 83.5 for MST, and 91.5 and 89.4 for Mate. The gold condition lifts the scores for each parser and preserves the ranking. MST’s test results are closer to the other parsers when only the head needs to be right than when the relation label is also required.

The Hungarian development results have the same ordering. With predicted tags, Malt achieved ULA 88.3 and LAS 85.7, MST achieved ULA 86.9 and LAS 80.9, and Mate achieved ULA 89.7 and LAS 86.8. With gold tags, Malt reached ULA 89.9 and LAS 87.9, MST reached ULA 88.5 and LAS 82.9, and Mate reached ULA 91.1 and LAS 89.0. These development results also provide the setting for the experiment that restricts Mate to main part-of-speech sequences.

On the English test set with predicted tags, Malt’s ULA and LAS were 88.8 and 86.2. MST reached 90.7 and 87.7, while Mate reached 92.6 and 90.3. The corresponding scores with gold tags were 89.9 and 87.6 for Malt, 91.8 and 89.2 for MST, and 93.4 and 91.5 for Mate. MST ranks ahead of Malt in these English comparisons. The different ordering on Hungarian is one reason to examine the head and label decisions independently.

On English development data with predicted tags, the ULA and LAS pairs were 87.8 and 84.5 for Malt, 89.4 and 86.1 for MST, and 91.6 and 88.5 for Mate. The gold-tag pairs were 89.1 and 86.1 for Malt, 91.2 and 87.7 for MST, and 92.7 and 90.0 for Mate. The authors report main part-of-speech accuracy of 97.2 for Hungarian and 97.3 for English in their discussion of the full-data results. They use this similarity to explain why the availability of predicted grammatical input does not create a large advantage for either language in the aggregate comparison.

The authors interpret Mate’s stronger labeled results as evidence in favor of joint head and label decisions for Hungarian. In particular, they describe the Mate–MST gap in Hungarian as about twice as large in LAS as in ULA. Joint decoding offers one plausible reason: the proposed labels of other arcs can contribute to an overall labeled analysis. The comparison also reflects differences in the parsers’ features and search. It establishes Mate as the strongest of the tested systems on these splits and provides the basis for using it in the rest of the study.

Variation across the Hungarian domains

The domain experiments train and assess Mate by cross-validation within each Szeged subcorpus. Newspaper and short business news make an instructive comparison. The reported average lengths are 21.6 and 23.6 words respectively, yet the short business material is easier for the tagger and the parser under the recorded conditions. The paper describes these business texts as short financial reports with a narrow vocabulary and recurring sentence patterns. The newspaper material comprises full articles on varied topics, with greater stylistic range. A broad category such as news conceals differences that matter during training and evaluation.

Mate labeled attachment by Szeged domain with predicted tags

Short business news leads the within-domain comparison, while fiction and newspapers have the lowest scores.

Mate labeled attachment by Szeged domain with predicted tagsNewspaper: 84.7Newspaper84.7Short business news (this paper): 91.9Short business news (this paper)91.9Fiction: 83.7Fiction83.7Law: 88.9Law88.9Computer material: 88.9Computer material88.9Compositions: 88.9Compositions88.9
The numbers
System or settingLAS
Newspaper84.7
Short business news (this paper)91.9
Fiction83.7
Law88.9
Computer material88.9
Compositions88.9

With predicted tags and within-domain training, Mate’s ULA was 88.0 for newspapers, 93.8 for short business news, 87.7 for fiction, 90.6 for law, 91.3 for computer material and 92.7 for compositions. The same order of subcorpora under gold tags gives ULA of 90.0, 94.8, 89.4, 90.7, 92.8 and 93.9. The gold-tag LAS values are 87.5 for newspapers, 93.4 for short business news, 86.2 for fiction, 89.0 for law, 91.2 for computer material and 91.0 for compositions. The contrast between the two kinds of news persists when the tagger’s mistakes are taken out of the input.

The law material has the longest reported mean sentence length among these subcorpora, 27.3 words. The tagger obtains CPOS 98.3 and DPOS 98.1 there, and Mate’s gold-tag domain results are close to its predicted-tag ones. Fiction averages 12.6 words and gives the lowest predicted-tag LAS in the domain comparison. These observations illustrate why average length alone is a weak account of how the genres behave. Texts that contain shorter sentences can still present grammatical patterns or vocabulary that are difficult to learn from the training sample.

Compositions average 13.7 words and have 22,248 sentences in the domain table. The authors account for their relatively strong parsing results by pointing to short, generally simple sentences and more training material than in the other subcorpora. The computer subcorpus offers a different case. English technical expressions are frequently assigned an unknown tag in the manual annotation. Their tags can be hard to reproduce, yet the parser can still identify some of their syntactic roles. Detailed tagger accuracy and accuracy of the resulting tree can respond differently to a domain’s vocabulary.

For newspaper text, CPOS is 97.2 and DPOS is 96.5. For short business reports, the corresponding figures are 98.0 and 97.7. In fiction they are 96.9 and 95.8, in computer material 96.4 and 95.8, and in compositions 96.7 and 95.6. The authors emphasize that the difference between the broad and detailed measures is usually less than 1 percent. Given the stricter success criterion for DPOS, they take the close scores as evidence that the analyser identifies much of the detailed morphology effectively. The remaining ambiguities can still matter disproportionately to parsing if they concern grammatical cues that help distinguish competing heads or labels.

An earlier Hungarian benchmark under revised annotation

The best participant in the earlier CoNLL-2007 Hungarian task reported ULA 83.6 and LAS 80.3. The paper gives the contemporary differences between the leading English and Hungarian systems as 8.14 ULA and 9.3 LAS. The later Szeged evaluation changes the parser, the available training material and the treebank conventions in different comparisons. To examine the part associated with annotation, the authors retrain and evaluate Mate on the earlier task sentences under their original trees and under the revised manual trees. Both runs use gold-standard tags, as the shared task did. Single Malt or Blended?

Mate labeled attachment on Hungarian CoNLL-2007 sentences under two annotations

The same sentence sets give Mate a higher LAS with the manually revised dependency annotation.

Mate labeled attachment on Hungarian CoNLL-2007 sentences under two annotationsOriginal shared-task annotation: 80.0Original shared-task annotation80.0Revised manual annotation (this paper): 85.5Revised manual annotation (this paper)85.5
The numbers
System or settingLAS
Original shared-task annotation80.0
Revised manual annotation (this paper)85.5

Under the original dependency annotation, Mate scores ULA 84.3 on the shared-task data. On those sentences with the revised dependency annotation, it scores ULA 88.6. The authors report gains of ULA 4.3 and LAS 5.5 for the comparison. These numbers refer to evaluation under the respective reference trees. They show how learnable the revised target is for this parser on the selected sentences. Several properties of that target changed at once, including its relation inventory, annotation consistency and treatment of some phrase structures.

The CoNLL-2007 Hungarian sentences come from the newspaper subcorpus. The paper therefore also compares the result with the gold-tag newspaper cross-validation scores of ULA 90.0 and LAS 87.5. It gives 9189 sentences on average for the larger training corpus in this comparison and 6390 for the CoNLL-2007 dataset. The authors interpret the further increase as an effect of more newspaper training material. The matched-sentence rerun isolates the reference annotation more closely than this final comparison, which brings in a different evaluation setup as well as a larger corpus.

What the ablations show

Restricting the evidence available to Mate

The study’s direct feature ablation trains Mate using only gold-standard main part-of-speech sequences. The parser still receives a sequence of grammatical categories in sentence order, so it can use properties such as whether one category precedes another and which categories intervene. The restriction removes lexicalization, meaning features that refer to particular words, and detailed morphology, including distinctions among forms that share the same broad grammatical category. Gold tags remove automatic tagging mistakes from this restricted input.

Relative to the full parser, the restricted parser’s Hungarian development results fall by 6.8 ULA and 20.3 LAS. On English development data, they fall by 2.9 ULA and 6.4 LAS. The larger Hungarian loss in labeled attachment is consistent with the idea that detailed word information helps identify grammatical functions. Broad category sequences leave the Hungarian parser with less evidence for deciding whether a noun fills a particular role in the clause.

The ablation removes word identity and fine morphological information together. It establishes the value of their combined availability, with a much larger effect for this Hungarian setup. The experiment does not yield independent estimates for lexicalization and morphology. The linguistic account makes morphology a plausible part of the explanation, particularly for case-marked arguments, while the controlled result belongs to the whole group of removed features.

The authors complement the ablation by inspecting highly weighted features that were active in Mate. English frequently had heavily weighted features describing edge direction or length and the words or tags between a dependent and its governor. Features carrying this kind of information were rare among the highest weights for Hungarian. In one English subject relation, the absence of any intervening word was an especially strong feature. It did not appear among the highest-weighted features in the corresponding Hungarian inspection.

A high weight gives information about what the parser learned to favor when a feature is present. Its impact on a sentence depends on the other active features and the competing tree analyses. The authors caution that assigning responsibility for an individual decoding decision to a feature is difficult. The inspection and the input restriction answer related questions. The former describes the kinds of cues the learned weights emphasize. The latter measures what happens when a whole class of evidence becomes unavailable.

Changing the training domains and the reference trees

In the domain experiment, the authors add all the other Hungarian subcorpora to the training material for each target domain. The paper reports the score changes directly. Newspapers gain +0.8 ULA and +1.0 LAS. Short business reports gain +0.3 ULA and +0.4 LAS. Law gains +0.2 on both measures, and compositions gain +0.3 on both. Fiction changes by -0.5 ULA and -0.3 LAS, while computer material changes by -1.2 ULA and -1.6 LAS.

The larger training pool therefore has different effects on different target domains. The short business reports already supply repeated structures within their own training data, and the additional material produces a modest gain in that setting. Fiction and computer text receive lower scores in the augmented condition. The experiment identifies the effect of adding the collection of other domains together. It gives no separate estimate for adding any particular contributing subcorpus to fiction, for example, or for retaining only material with similar constructions.

The matched CoNLL-2007 experiment varies the annotation on an existing set of Hungarian sentences. Some structures, including coordination, were manually corrected because the revised convention handles them differently. The newer annotation also marks the internal structure of adjectival and participial phrases where the original constituency trees lacked that detail. At the same time, the label inventory fell from 49 to 29. The revised trees thus add structural information in some places while consolidating distinctions in the edge labels.

The authors suggest that removal of redundant case labels helps explain the LAS gain. Under the earlier convention, a noun such as házzal, meaning with the house, could express instrumental case in its morphological analysis and also carry an instrumental dependency label. A parser in the revised setup can receive the case information without needing to reproduce that same distinction as a separate relation label. This is a plausible mechanism for the labeled improvement. The comparison changes reference structure and annotation quality along with the inventory, so the effect of reducing the label set remains unmeasured on its own.

How the error sample was read

The authors use manual analysis to identify error sources that a score by dependency label could miss. They randomly select 200 sentences with at least one error from Mate’s newspaper output in each language. The main analysis uses gold-standard grammatical tags. Humans then inspect mismatches and group them by the linguistic construction responsible. A mistake on a conjunction inside a name can thus be counted as a name error when identifying the name is the underlying difficulty.

The Hungarian sample contains 429 attachment errors and 319 labeling errors. The English sample contains 353 attachment errors and 330 labeling errors. The authors suggest that Hungarian’s greater non-projectivity and the datasets’ different label inventories could help explain the different balance. English has 36 labels in this comparison and Hungarian has 29. These explanations are hypotheses about the observed distribution. The samples themselves consist of sentences selected because the parser made an error, so their counts describe those sampled outputs.

The percentages in the error breakdown refer to shares of the relevant kind of error. A category accounting for a substantial share of attachment errors is not present in that share of all parsed sentences. Likewise, an attachment share and a labeling share use different denominators. This distinction matters most for categories that can cause several mismatches in one clause. The method is designed to find recurring causes among mistakes, rather than to estimate a construction’s overall probability of being parsed correctly.

Missing predicates and difficult head choices in Hungarian

Virtual nodes are the largest source of Hungarian errors in the manual analysis, accounting for 39.5% of attachment errors and 31.5% of labeling errors. The clause’s missing copula was originally represented by a syntactic node. After the conversion, the parser has to recognize the corresponding configuration and reproduce the reattached edges with Exd. The authors suggest that the features of these edges can resemble ordinary attachments even though the expected label is special. The prevalence of this category shows the difficulty of the transformed task. The paper does not compare it with a parser that can predict the invisible verb directly.

The authors also discuss the information retained for a downstream system. The Exd label signals the special treatment but gives little information about which original grammatical relation was involved. A parser could get better at predicting the converted edge without recovering the fuller relation represented through the virtual node. This makes the example relevant to two goals, improving attachment scores and producing an analysis informative enough for subsequent processing.

Noun attachment accounts for 9.6% of Hungarian attachment errors in the sample. A recurrent mistake is to link an argument of an infinitive or a participle to the main verb. In one example, the parser attaches módszerhez, meaning to the method, to the verb for trying, although the method is what the participants are trying to return to. The same sentence contains a phrase concerning the time of the Horn government. The reference makes it modify the participle describing the method as tried, while the parser attaches it to the main verb as well.

The paper relates this pattern to scrambling, in which arguments associated with different verbs can be interspersed in the sentence’s word order. Case can help a parser determine the kind of role a noun is likely to have, while leaving open the identity of the verb with which it has that role. The parser has to evaluate several candidate heads even after the word’s morphology is supplied correctly. The authors say scrambling was not a common source of the English errors.

Articles introduce a different head-selection problem. An article before a prenominal modifier can belong to that modifier or to the head noun. In a szoba ajtaja, the article belongs with the word for the room in the expression for the room’s door. In a februárban induló projekt, it belongs with the project, because the intervening modifier, which describes when the project starts, cannot take it. In each case, the first token is followed by words that precede the head of the larger noun phrase. The right attachment requires recognizing what kind of modifier intervenes. The authors describe the comparable English cases as more straightforward because the relevant modifier generally follows the head.

Words expressing conjunction, negation or emphasis are another recurrent problem. Conjunctions and negation account for 11.2% of Hungarian attachment errors in the sample. Items such as is, csak and nem can provide evidence about the sentence’s focus, and the paper records ambiguity between adverbial and conjunctive uses for words in this group. When there is a focus, the appropriate head can be the focused constituent. In its absence, the verb may be the head. Similar written word orders can have different stress, so the parser can attach the item to the verb when the intended stress would favor another head.

English difficulties and shared ambiguities

The English error sample includes non-canonical word order, at 6.5% of attachment errors and 6.4% of labeling errors. The paper’s reporting-clause example puts the speaker after a form of reply. A parser relying on the frequent association between postverbal position and objecthood can misread the speaker as an object even though it is the subject. The authors note that Hungarian case morphology can provide useful evidence in corresponding departures from ordinary position cues. This is a construction in which the same reliance on morphology that raises the value of detailed Hungarian tags can help avoid an English-type positional mistake.

Prepositional phrase attachment accounts for 15.9% of English attachment errors in the sample. A following phrase can describe a noun or modify the event expressed by a verb. In the paper’s dress example, the equivalent of in the shop window can locate the dress or the act of putting it on. In the Hungarian form where the location expression comes before the noun, a participle meaning roughly being makes the location part of the description of the dress. The authors also give a Hungarian version with the location after the noun whose preferred reading places the person in the window during the event. Their comparison concerns how particular constructions present the choice of heads.

Coordination repeatedly causes errors in both languages. In Hungarian it accounts for 16.5% of attachment errors and 13.5% of labeling errors in the sample. The English shares are 12.5% and 8.5%. A coordinated structure can be ambiguous even for a person who lacks the relevant context. Multiple modifiers before a noun offer a related problem. An earlier modifier can describe the noun or qualify a later modifier. These configurations account for 5.1% of Hungarian attachment errors and 4.2% of English attachment errors in the authors’ discussion. Linear proximity alone can leave both analyses available.

The analysis also finds clause labeling errors in both languages, particularly where no overt conjunction expresses the connection between clauses. Adverbial relations pose a different labeling challenge. The head can be correct while the label misstates the relation, for instance by assigning a manner label to a locative expression. Mislabeled adverbs make up 16.3% of Hungarian labeling errors and 40.1% of English labeling errors in the sample. The authors suggest that part of the contrast comes from the different distributions of adverbial labels in the corpora.

In the Hungarian corpus, MODE and TLOCY together account for 90% of the adverbial label occurrences discussed by the authors. For a separate diagnostic, assigning the most frequent training label to each adverb yields 93% accuracy in Hungarian and 82% in English. The diagnostic shows that a frequent-label strategy is more successful under the Hungarian distribution. The authors also note that the underlying distinctions are often semantic. In English, a form such as by can introduce a manner expression or the agent of a passive. The presence of that word supplies a cue, while choosing between those relations requires evidence about the construction and its interpretation.

Names, predicted tags and annotation disagreements

Multiword names account for 17.6% of English attachment errors and 15.2% of English labeling errors in the gold-tag error sample. The corresponding problem is much less visible in Hungarian under gold tagging. There, the proper-noun tags help distinguish the spans and the reference analysis is a chain. The English task asks for more of the internal structure. A comparison of the frequencies of name errors therefore reflects both what the parser sees and how much analysis the reference requires.

The authors revisit the sampled sentences using predicted tags for names. When tags are predicted for Hungarian, name errors account for roughly 5% of attachment errors and approximately 5% of labeling errors. English results worsen only slightly in the comparison described by the authors. They explain that conjunctions and prepositions that signal internal grammatical relations in English names often keep the same tags under either condition. The contrast gives a concrete example of why substituting gold tags can have a marked effect on one kind of error even when the overall attachment scores change relatively little.

Manual inspection also identifies cases in which the apparent parsing mistake arises from an error in the reference. Annotation errors account for 6.8% of Hungarian attachment errors and 10.7% of Hungarian labeling errors in the sample. In English the respective shares are 8.5% and 9.7%. According to the paper, the annotation errors identified amount to approximately 1% of all the dependencies covered in that discussion. The inspection targets disagreements, which makes the figures useful for interpreting apparent mistakes while limiting what they say about the rest of the annotation.

Limitations

Limits the authors identify

The authors caution that a comparison of attachment scores across English and Hungarian has several moving parts. The languages differ in how much grammatical information a written word carries. The corpora differ in domain, and their annotations call for different decisions about structures and labels. The Hungarian preprocessing of names and empty copulas makes some of these choices especially visible. The English and Hungarian scores measure how well the tested parsers reproduce their respective reference trees, given the supplied input. A broad claim about equal parsing difficulty depends on how that task is defined.

The paper’s discussion of sentence length illustrates one aspect of the problem. A language with more separate prepositions and overt pronouns can have more edges of types that the authors consider relatively easy to predict. The parallel-corpus length comparison establishes that the counts of written words can differ even when sentences convey corresponding content. It does not tell the reader how much of the observed parser accuracy comes from the extra words in the experimental corpora. The authors accordingly treat their similar headline scores as a comparison that needs linguistic and corpus context.

The authors also state a limit on their search for reference errors. They inspect sentences with at least one mismatch and examine the dependencies where parser and annotation disagree. A reference mistake can occur in a sentence deemed error-free, or the parser can agree with a reference mistake in an inspected sentence. Either case falls outside the inspection procedure. The errors found by reading disagreements therefore provide grounds for the authors’ view that they have probably missed some problems in the annotation. They do not establish a precise corpus-wide prevalence.

Some limitations are tied to the information that reaches the parser. Written inputs lack the stress information that the authors say can help identify the scope of Hungarian focus-sensitive words. The converted Exd edges provide only limited grammatical information to downstream applications. Adverbial labels may require semantic distinctions that the authors regard as a possible responsibility of a separate processor. The paper identifies more accurate handling of ambiguous morphology, virtual-node treatment and new feature templates for Hungarian constructions as future work. Its experiments diagnose those needs without evaluating the proposed changes.

Further limits visible in the setup

The strongest comparison across systems favors Mate as implemented. It does not isolate single-step labeled decoding. Mate and MST differ in feature representation, scoring and search as well as in when they assign labels. A controlled test of the contribution of joint decoding would need to hold the other properties fixed. The result supports the authors’ interpretation that access to proposed relation labels can help during search, especially in Hungarian, while the size of that architectural contribution is unresolved.

The same reasoning applies to morphology. The restricted Mate run turns off detailed morphology and lexicalization together. The observed losses are substantial for the Hungarian development split and motivate attention to both sources of evidence. A test that retained word identities while removing detailed morphology, or retained morphology while removing lexical cues, would address a different question. A ranking of individual cues also cannot be recovered from the list of highest weights, because the effects of features depend on where they occur and which alternative trees they distinguish.

Corpus revision is another bundled intervention. The matched-sentence comparison is stronger than comparing unrelated releases because the source sentences stay the same. Within that control, however, correction of mistakes, changed structures and a revised relation inventory all move together. Some previously absent distinctions are added and others are merged. The gain in LAS shows that the newer target is easier for Mate to reproduce under this setup. A measure of accuracy on downstream tasks, or a comparison of annotation policies one at a time, would be needed to determine the consequences of individual changes.

The domain results also have a specific scope. Training on a target domain and then adding the full set of other domains tests one way of using extra data. It leaves open what would happen with selective addition, with a different balance of sources or with training exclusively outside the target. Fiction and law have unavoidable constraints from their small numbers of source documents, and fiction uses a different fold count. Average sentence length, style, the quantity of data and the repetition of constructions all vary across the domains. The paper offers explanations for particular patterns, without estimating the independent effect of each property.

Finally, the main error analysis concerns Mate’s newspaper parses when supplied with gold tags. The sample is valuable for seeing mistakes that remain after the tagger is bypassed, but it covers a different condition from a fully automatic pipeline. The supplementary comparison for names illustrates how the distribution can move with predicted input. The error percentages also concern disagreements in sampled erroneous sentences. They cannot establish which construction has the highest error rate among all its occurrences, because the analysis does not enumerate the correctly parsed examples of each construction. They show where mistakes accumulate under the sampled conditions and give concrete reasons for investigating those constructions further.

What came after

The authors ended the study with a proposed direction for Hungarian parsing research. Empty copulas were a priority because they led to the largest concentration of errors in the manual analysis and because the converted edges conveyed limited information about the original grammatical relations. The authors also proposed new feature templates for the problematic Hungarian constructions and closer treatment of the morphological ambiguities that survive analysis at the word level. These were research plans at the close of the paper.

No later citing work is documented for this account. The results therefore establish the baseline and the remaining questions as the authors left them. Their experiments show that the same parser can reach similar attachment scores with different kinds of evidence, while the domain and annotation comparisons show how the reference task shapes those scores. The manual analysis supplies the construction-level detail needed to ask whether a subsequent change would improve the treatment of Hungarian syntax.

Cite

Cite as Richárd Farkas, Veronika Vincze and Helmut Schmid. 2012. Dependency Parsing of Hungarian: Baseline Results and Challenges. Proceedings of the 13th Conference of the European Chapter of the Association for Computational Linguistics.

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

@inproceedings{farkas2012dependency,
  title = {{Dependency Parsing of Hungarian: Baseline Results and Challenges}},
  author = {Richárd Farkas, Veronika Vincze and Helmut Schmid},
  booktitle = {Proceedings of the 13th Conference of the European Chapter of the Association for Computational Linguistics},
  year = {2012},
  url = {https://aclanthology.org/E12-1007/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/farkas-2012-dependency-parsing-hungarian-baseline-results/