Elamur Research

Using Machine-Learning to Assign Function Labels to Parser Output for Spanish

Paper · 2006 · Grzegorz Chrupała and Josef van Genabith

Summary

A Spanish parser can identify a noun phrase and still leave open whether it is the subject or the direct object. Position helps, but Spanish allows enough flexibility that phrases on the same side of a verb can serve different functions. The Spanish treebank Cast3LB records those functions explicitly. Grzegorz Chrupała and Josef van Genabith ask how to recover the labels when a parser supplies only the constituent tree. Their answer is to train a separate machine-learning classifier to read the tree and label its phrases. The enriched tree can then be used to construct a functional analysis in Lexical-Functional Grammar, or LFG.

The authors compare memory-based learning, maximum entropy and a support vector machine. All use the same evidence about a phrase, including its category, its head word, its features of agreement with the verb and its neighboring phrases. The baseline asks the parser itself to recover functions by learning combined labels for phrase category and grammatical function. The separate classifier can learn from phrases that share a function across different categories, using the surrounding words and tree structure to decide which label fits.

The support vector machine performed best. On the original Cast3LB test trees, it reached 89.34% accuracy across candidate nodes and an F-score of 86.87% for function tagging. On automatically parsed test sentences, where misplaced or missing phrase boundaries can also affect the result, it reached an F-score of 66.67% across all constituents, compared with 59.93% for the baseline. The improvement was statistically significant in the authors’ sentence-level test. The parser received manually annotated part-of-speech tags, so the experiment measures how the method handles automatically built trees under that input condition.

The authors also tested whether better tags produced better LFG analyses. Using the support vector machine’s tags raised F-score from 72.27% to 75.67% on grammatical relations extracted from those analyses, another statistically significant improvement. The error analysis explains why some distinctions remain difficult even with a correct tree. Subject and object can be genuinely ambiguous in relative clauses, and deciding whether a prepositional phrase is selected by a particular verb can require lexical evidence that is scarce in the training data. The design also makes each decision separately, leaving constraints on which functions can occur together outside the classifier.

Deep dive: Using Machine-Learning to Assign Function Labels to Parser Output for Spanish

Grzegorz Chrupała and Josef van Genabith test how adding grammatical function labels after Spanish parsing improves functional analyses. · about 33 minutes to read

The problem and its context

Why the constituent tree leaves work to do

A constituent tree describes how words group into phrases and how those phrases fit together. A category label tells the reader what kind of phrase a node represents. A function label tells the reader what that phrase does in its local grammatical context. For instance, a noun phrase may serve as the subject in one clause and as a direct object in another. The category can stay the same while the function changes. Recovering this second layer is the problem the authors take on. Parsing

The distinction matters for Cast3LB because of how the treebank represents Spanish clauses. Its sentence node, S, can have several daughters. A verb appears inside a verb group labeled gv, and complements and adjuncts of the verb appear beside that group under the same parent. An adjunct contributes a circumstance or other modifier to the construction. A complement stands in a closer grammatical relation to the head. In a flat clause, each can be a sister of the verb group. The fact that phrases occupy this structural position gives a clue about where to look for functions while leaving several functions possible.

In the English treebank practice described by the paper, a subject can be recognized by its position as a noun phrase to the left of a verb phrase. A direct object can be recognized as a noun phrase to the right of a verb inside that phrase. Cast3LB has no corresponding verb phrase node. Its flat layout and the flexibility of Spanish constituent order make those particular cues much less applicable. A Cast3LB label such as SUJ for subject or CD for direct object carries information that, in the English examples, can be recovered more readily from the shape of the tree. English

Cast3LB marks a wider range of distinctions than subject and object. Its labels include CI for indirect object, CREG for prepositional object and CC for a circumstantial complement. It also distinguishes an attribute of a copular verb, the agent of a passive verb, and predicative complements associated with particular arguments. Other labels identify such elements as negation or a vocative. For the classifier, these are possible values in a single annotation scheme. For the grammar construction procedure, they are evidence that can be interpreted together with the categories and heads in the tree. Linguistic annotation

This creates a difficulty for anyone using parser output. The original annotated treebank has both kinds of information, but the basic output of the parser describes phrasal structure and omits the function labels. Training the parser to recover them is one option. Reading the basic tree afterward and making a separate function decision is another. The choice affects the number of categories the parser must learn and determines which part of the system can be adjusted when a function is often mislabeled.

The functional analysis behind the tagging task

The authors’ larger project is to acquire broad-coverage LFG resources from treebanks. An LFG analysis distinguishes the constituent structure, or c-structure, from a functional structure, or f-structure. The c-structure records how phrases are arranged. The f-structure encodes grammatical functions such as subject, object, oblique and adjunct, relating a predicate to the parts of the sentence that fill those roles. The authors describe f-structures as more abstract and more uniform across languages than constituent trees. Syntax & grammar formalisms

The difference is easiest to see when phrase order varies. A constituent tree must describe the actual arrangement in the sentence. A functional analysis can identify the same kind of relation between a verb and its subject across different arrangements. The authors also point to information that f-structures can encode explicitly, such as constructions where a subject is unspoken or where a dependency spans a greater distance in the tree. These characteristics are part of the motivation for using f-structures in applications such as machine translation and question answering.

Producing these analyses by hand across a broad range of sentences would take substantial effort. The approach in the paper starts with an annotated treebank and uses its categories, configurations and labels to supply functional analyses automatically. The function tagger deals with a specific missing input to that process. It predicts Cast3LB labels on constituent nodes. An existing Spanish LFG annotation procedure then determines how those labels and the other tree information should be interpreted in the f-structure.

A function tag and an f-structure relation therefore belong to different levels of description. A tag may give the annotation procedure enough information to select a relation, or it may only narrow the choice. Several tags may converge on the same relation. The procedure can also derive some LFG relations from the categories and configuration of nodes that carry no Cast3LB function label. These distinctions motivate measuring both the immediate quality of the tagging and the downstream quality of the functional representation.

What earlier work established

The paper traces the treebank-to-LFG procedure to work by Cahill and colleagues on Penn-II English trees. Their approach uses evidence such as the phrase category, the parent category and the phrase’s position in relation to a local head. Function tags and traces are also available in that treebank. A trace records a position relevant to a syntactic relation even when the words associated with it appear elsewhere. The paper describes the approach as having been adapted across treebanks, including for Chinese and Spanish. Treebank-Based Acquisition of a Chinese Lexical-Functional Grammar

For Spanish, O’Donovan and colleagues trained Bikel’s parser on compound labels. In this setup, sn-SUJ represents a noun phrase that is also a subject, and the parser treats the whole string as a category. The training corpus contains that exact combined category wherever the two annotations occur together. When the parser emits the category, the function is available to the LFG procedure. This gives a direct route from parsing to functional annotation, using the ordinary machinery of the parser for both decisions.

The authors identify a cost to this approach. A category that appears with several functions is divided into separate categories during parser training, each with fewer examples than the underlying phrase category has. Learning the compound categories can therefore make the training evidence sparser. The design also gives the researchers limited direct control over what evidence determines a function label. A separate classifier makes it possible to specify that evidence explicitly and to compare alternative learning algorithms while keeping the same representation of a phrase.

Previous English work had already treated enrichment as a separate operation. Blaheta and Charniak used feature trees to capture dependencies among cues when labeling constituents in a parser’s output. Jijkoun and de Rijke first represented parsed sentences as dependency graphs and used memory-based transformations to restore treebank information. Relabeling graph nodes with functions was one transformation in an approach that also addressed empty nodes and coindexation, which connects positions belonging to the same syntactic relation. Dependency parsing

Those studies gave the authors a reason to try postprocessing on Cast3LB. Spanish offered a setting in which success mattered for a different structural reason. The treebank encodes important grammatical distinctions in labels whose equivalents in the English examples are more readily inferred from constituent position. The question was whether a classifier using several kinds of local evidence could supply those labels accurately enough to help the existing LFG procedure.

The method, step by step

Keep the two decisions separate

The authors begin with annotated Cast3LB trees. They use the trees to train Bikel’s parser to produce constituent analyses and to teach a separate classifier which functions occur on eligible phrases. When the parser analyzes a test sentence, the classifier examines the resulting tree, selects targets and predicts a label for each target. The LFG procedure receives the tree with its new tags attached.

The baseline does the first part differently. Its parser learns the compound category-function labels and supplies the functions in the course of building the tree. Both routes can therefore provide the kind of labeled tree the LFG procedure expects. The point of comparison is how they obtain that tree and the functions it carries. Because the compound labels participate in parsing itself, the routes can also produce different constituent analyses.

From Cast3LB trees to Spanish functional analyses

The steps in order.

From Cast3LB trees to Spanish functional analysesStep 1: Split treebank files into training, development and test sets1. Split treebank files into training, development and test setsStep 2: Prepare reduced categories and part-of-speech tags2. Prepare reduced categories and part-of-speech tagsStep 3: Train the parser and the function classifier3. Train the parser and the function classifierStep 4: Parse sentences and restore the Cast3LB tree format4. Parse sentences and restore the Cast3LB tree formatStep 5: Select eligible nodes and extract their features5. Select eligible nodes and extract their featuresStep 6: Predict a function or null label for each6. Predict a function or null label for eachStep 7: Convert the enriched trees to LFG functional structures7. Convert the enriched trees to LFG functional structures

Prepare the corpus and parser input

Cast3LB contains around 3,500 trees and 100,000 words. The texts span several genres and represent both European and Latin American varieties of Spanish. Of all the trees, the authors assigned 80% to training, 10% to development, and the final 10% to testing. They randomly assigned treebank files to the splits, with the aim of keeping the genres approximately balanced. The grouping by file is part of how the evaluation was constructed.

The authors developed a Spanish language package for Bikel’s parser adapted to Cast3LB. As part of preparing trees for parsing, they applied a transformation from Cowan and Collins that adds nodes labeled CP and SBAR in subordinate and relative clauses. The transformation is reversed in parser output. That reversal matters because the tagger and the Spanish LFG annotation procedure work with the Cast3LB-style trees, including their organization of verbal and neighboring constituents.

The authors also simplified the inventory of constituent labels. Some of the original category labels distinguish nominal groups according to gender and number. Information of this kind can already be present in the part-of-speech tag on the noun that heads the group. The preprocessing retains distinctions judged useful and consolidates some more specific categories. The baseline’s category inventory is enlarged in a different way by the requirement to represent category-function combinations.

Part-of-speech tags are also reduced for parsing. In Cast3LB they carry grammatical information in addition to the word’s category. The reduced inventory keeps type and number for determiners, nouns and adjectives. Pronoun tags retain type, number and person. Verb tags retain type, number and mood, while adverb and conjunction tags retain type. The paper uses type for subclasses within a part of speech, including common and proper nouns and different kinds of verbs. Part-of-speech tagging, morphology

For the development and test sentences, the authors supplied the parser with the gold-standard part-of-speech tags, meaning the human-annotated tags from the treebank, in the representation used for parsing. As a consequence, the evaluation on parser output begins with authoritative word tags and asks the parser to recover the constituent tree. Errors in those trees can still affect the function tagger. Errors from a separate automatic part-of-speech tagging stage lie outside the experiment.

Define which nodes can receive tags

The tagger operates on eligible nodes. A node is a candidate if it is a sister of a node labeled gv, infinitiu or gerundi, representing a verb group, an infinitive or a gerund. Sisters share the same immediate parent. In a main clause with a gv daughter, for example, phrases immediately beside the verb group qualify because of their shared parent. In an infinitival or gerundial context, the corresponding category provides the anchor.

This step encodes part of the annotation scheme directly. It narrows the search to the contexts where Cast3LB uses the relevant function labels. The classifier’s remaining task is to choose among the labels that can appear on a candidate. It also learns a special null label. A phrase can be eligible because of its location in the tree and carry no Cast3LB function tag in the annotated data. The null option lets the classifier express that outcome.

The same selection rule is used when reading gold trees and parser trees. What changes is the evidence it sees. If parsing changes the parent of a phrase, the phrase may lose or acquire a verbal sister. If a phrase is divided or attached differently, some candidate nodes can represent different stretches of words. Thus part of the work of finding taggable phrases depends on the preceding parse. The classifier receives the candidates that the tree makes available.

Gold-tree training provides the desired function directly from the original annotation. For each eligible node, the authors build a description of its context and pair that description with its original label or the null label. When the classifier later sees a parser tree, it builds the same kinds of descriptions without knowing the reference functions. This alignment between training and use makes the interface simple. Its crucial assumption is that the cues found in manually annotated trees remain informative when extracted from automatically produced ones.

Describe each candidate and its surroundings

The first group of features concerns the target node itself. It includes its category, where it stands relative to the head, the part of speech of its own head, and the head’s lemma. A head is the central word that characterizes the phrase. A lemma is a lexical form that groups inflected forms of a word under a common identity. The category of a phrase and the lemma of its head give different information. The category can identify a structural type, while the lemma can distinguish particular words that pattern differently within that type. Lemma

For a prepositional phrase, the features also include an alternative head lemma drawn from the noun phrase inside it. This gives the classifier access to the lexical identity of the noun as well as the ordinary head information. It is useful to distinguish the construction from the content of the phrase. For example, the form of a prepositional phrase and the kind of entity it refers to may each bear on a decision about its function.

Other target features cover definiteness, agreement with the head verb, the yield of the node and a human or nonhuman distinction. The yield is the sequence of words dominated by the node. Definiteness provides a property of the expression, while agreement characterizes how it fits the verb. The human or nonhuman feature supplies a limited semantic cue. Taken together, these features allow the representation to include both the shape of the constituent and evidence from the words it contains. The paper names the features at this level and gives the comparative results for the representation as a whole.

Position relative to the head remains in the representation because it can provide evidence even in a language with flexible order. The method gives the classifier the opportunity to weigh it alongside other properties. A noun phrase and a verb may show agreement, for example, and the identity or features of the surrounding phrases may also help. The learner is free to use these cues differently in different contexts. The paper evaluates the combination, so the results establish the performance of the combined description.

The local features describe the clause surrounding the target. They include the head verb, its person and number, and the category of the target’s parent. This gives the classifier information about the verb with which the candidate is associated. It also distinguishes structural environments such as a relative clause from other contexts when the parent category encodes that difference. The target’s relationship to the verb and the properties of the verb itself are distinct inputs to the decision.

The final group describes nearby sister nodes. The authors use node features from the two preceding sisters and the two following sisters when those nodes exist. They omit the position feature from these neighboring descriptions. This lets the classifier inspect the phrase category, head and other properties of several local constituents while making a prediction for the target. A neighboring phrase can be informative even when the target’s own features admit several possible functions.

There is an important difference between observing the neighboring phrases and assigning functions jointly. The classifier observes the available tree evidence about those phrases. It makes its decision for each target separately, using the same procedure for another target when that node is considered. The features can help it recognize a likely configuration of subject and object. The decoding procedure itself has no rule requiring the resulting assignments to form a permissible combination.

The authors used cross-validation to refine the feature set and tune the learning algorithms. In cross-validation, portions of the available data serve in turn as material for checking a configuration developed on other portions. The authors describe this as a way of refining their choices and report no additional automated feature-selection procedure. The comparison among methods starts from the same set of cues, allowing the choice of classifier to be examined against a common representation.

Compare learners using the same evidence

The memory-based learner uses TiMBL. It classifies a candidate by comparing its feature description with descriptions from training and using nearby examples to inform the decision. The authors used 7 nearest neighbors. They weighted features by gain ratio, so that the contribution of a match depends on how informative the feature is in the training data. Similarity in this method refers to the candidate’s representation, which draws on the target, verb and sisters together.

The maximum entropy classifier uses the MaxEnt Toolkit. It learns weights for evidence associated with possible labels and uses these to evaluate the alternatives for a given candidate. The authors used L-BFGS, an optimization procedure for estimating the weights, with 110 iterations. They regularized the estimates with a Gaussian prior, which constrains how freely the weights can grow in response to the training observations. The paper specifies its variance as follows. A Maximum Entropy Approach to Natural Language Processing

σ² = 1

Here σ is the standard deviation of the Gaussian prior and σ² is its variance. The equality gives the variance setting used for the maximum entropy classifier.

The support vector machine, abbreviated SVM, uses LIBSVM and a radial basis function kernel. A kernel supplies a way of comparing feature descriptions in learning a decision boundary. This choice allows a boundary that can depend on combinations of cues, instead of treating all decisions as a direct consequence of any single feature. The paper gives two settings for this classifier.

γ = 2⁻⁷

Here γ is the parameter governing how quickly similarity falls away in the radial basis function kernel. The expression on the right is the setting, with base 2 raised to the power −7.

C = 32

Here C is the cost parameter. It controls how strongly the classifier penalizes violations of the desired separation on its training examples. The right-hand side gives the setting for this experiment.

The paper’s comparison is between these configured learners. Each has access to the same candidate descriptions, and each uses its own training procedure to turn the descriptions into function decisions. This makes it possible to compare differences attributable to the learning methods as deployed, while leaving open how different feature designs or parameter choices would change their relative performance.

Hand the result to the functional annotation procedure

Once the classifier has labeled the candidates, the result is a Cast3LB-style constituent tree enriched with grammatical functions. The Spanish LFG annotation procedure reads it and uses the function tags alongside category and head information. This stage is where the grammatical distinctions of the treebank are translated into the relations used in an LFG f-structure.

The relationship between the two tagsets has consequences for both processing and evaluation. An LFG adjunct can arise from more than one Cast3LB label, while a Cast3LB direct-object label can lead to different LFG relations according to the category of the phrase. The conversion procedure can also assign functions to certain nodes that were left untagged in Cast3LB. The unit of work for the tagger is an eligible constituent, whereas the end product describes relations among predicates. The downstream evaluation tests the decisions that survive or emerge from that conversion.

Experiments and results

Check the trees that go into the tagger

All the main comparisons use Cast3LB, and the reported test conditions distinguish original trees from automatically parsed versions of the test sentences. The authors first measure the constituent parser itself. They use labeled bracketing, which checks whether a predicted constituent covers the same words and has the same category as a reference constituent. Precision asks how many predicted brackets match, recall asks how many reference brackets are recovered, and F-score combines the two. The scores ignore punctuation. Evaluation & benchmarks

Across all test sentences, labeled bracketing precision is 84.18, recall is 83.74 and F-score is 83.96. For test sentences of length ≤ 70, those scores are 84.82, 84.35 and 84.58, respectively. These are scores for constituent parsing. A correct bracket at this stage gives the function tagger a correctly bounded and categorized phrase, while the function itself remains to be determined.

For context, the paper reports that the Spanish parser of Cowan and Collins reached an F-score of 85.1% on sentences of length ≤ 70. That work used reranking to choose among candidate parses. It also used a different split and a more reduced inventory of categories. The comparison gives a scale for the parser scores, with the common treatment of punctuation, while the differences in experimental setup limit direct ranking.

Measure function tags on original trees

On the original Cast3LB test trees, the candidate set comes from the reference structure. The authors can calculate accuracy by asking what proportion of all candidates receives its correct label, including candidates whose correct label is null. Accuracy therefore measures the combined ability to decide whether a tag is present and which tag it should be.

The authors also report precision, recall and F-score for function tagging. The representation for this evaluation uses function tags paired with spans. After punctuation is removed from a tree, each function-bearing node contributes a tuple.

⟨GF, i, j⟩

The angle brackets group the fields of the tuple. GF is the Cast3LB grammatical function label, while i and j give the token positions at the beginning and end of the node’s span. The positions refer to the sentence after punctuation removal. The tuple matches a reference entry when the function and both boundary positions agree.

This measure rewards the recovery of the annotated functions themselves. Assigning the null label to a candidate can count as correct for accuracy. In the span-based comparison, there is no function tuple to add for that decision. Precision and recall thus reveal something that candidate accuracy alone can hide. A learner must assign the functions where they occur and avoid putting them on spans that lack the corresponding annotation.

Cast3LB gold-standard test trees, function-tagging F-score

The support vector machine leads the comparison on the reference trees.

Cast3LB gold-standard test trees, function-tagging F-scoreMemory-based learning: 84.94Memory-based learning84.94Maximum entropy: 85.52Maximum entropy85.52Support vector machine (this paper): 86.87Support vector machine (this paper)86.87
The numbers
System or settingF-score %
Memory-based learning84.94
Maximum entropy85.52
Support vector machine (this paper)86.87

Accuracy on the gold-standard test candidates was 87.55% for memory-based learning, 88.06% for maximum entropy and 89.34% for the support vector machine. The same order appears in the F-scores. The paper’s running discussion identifies 86.87% as the SVM’s gold-tree F-score, consistent with the F-score row in the table. The printed maximum entropy recall entry is inconsistent with its precision and F-score under the usual relation among those metrics. The F-score comparison can be read directly without using that recall entry.

This condition gives the clearest view of the tagger’s performance when it receives the structure found in its training material. The original tree gives each eligible phrase a reliable span and places it beside the corresponding sisters. The tagger can still confuse functions whose local cues overlap. The authors use this condition again in their error analysis to examine which confusions remain when the tree is held correct.

Measure function tags on parser output

A parser can change the number, boundaries and categories of the candidate phrases. Candidate accuracy becomes difficult to interpret because there is no longer a single common list of nodes to classify. The span-based comparison supplies a common unit. The prediction and the reference are reduced to sets of tuples using the same token positions. A system receives credit for finding the right function on the right sequence of words, even when the complete trees differ elsewhere.

The baseline is Bikel’s parser trained to emit compound category-function labels. The other systems apply a separate classifier to trees represented with simple categories. The authors report results for all constituents and for a restricted condition that counts only correctly parsed constituents. The all-constituent condition evaluates the practical pipeline under the experiment’s part-of-speech input setup. The restricted condition shows how function assignment fares on the constituents that survived parsing correctly.

Cast3LB parser output, function-tagging F-score across all test constituents

All postprocessing classifiers improve on the compound-label baseline, with the support vector machine highest.

Cast3LB parser output, function-tagging F-score across all test constituentsCompound-label parser baseline: 59.93Compound-label parser baseline59.93Memory-based learning: 64.46Memory-based learning64.46Maximum entropy: 65.01Maximum entropy65.01Support vector machine (this paper): 66.67Support vector machine (this paper)66.67
The numbers
System or settingF-score %
Compound-label parser baseline59.93
Memory-based learning64.46
Maximum entropy65.01
Support vector machine (this paper)66.67

Across all test constituents, the compound-label baseline has precision of 59.26 and recall of 60.61. For memory-based learning, precision is 64.74 and recall is 64.18. Maximum entropy reaches precision of 65.48 and recall of 64.55. The SVM reaches precision of 66.96 and recall of 66.38. Gains are visible on both metrics for each classifier relative to the baseline. The authors report the SVM’s F-score improvement over the baseline as 6.74%.

With scoring restricted to correctly parsed constituents, baseline F-score is 73.96. Memory-based learning reaches 78.42, maximum entropy reaches 79.17 and the SVM reaches 80.92. In this condition, the SVM’s precision is 80.58 and its recall is 81.27. These are scores on constituents selected from automatically parsed trees. The surrounding nodes consulted by the classifier can still differ from their counterparts in the original tree.

Test how consistently methods improve across sentences

The authors use a sign test for comparisons on the full set of parser-output constituents. For a pair of methods, they compute an F-score for each test sentence. The test retains sentences on which the scores differ. A trial counts as a success when the second method scores higher. It therefore measures how consistently the second method wins across the differing sentences. The size of each individual win is outside the statistic.

p = 0.5

Here p is the probability that the second method wins on a sentence where the scores differ. The equality expresses the null hypothesis used for the sign test. 0.5 gives equal chances of a win for either method under that hypothesis.

p > 0.5

Here p denotes the same probability of a win for the second method on a differing sentence. The greater-than sign expresses the one-sided alternative tested in the paper.

The authors make 4 pairwise comparisons and use a Bonferroni correction to set the threshold for an individual comparison.

αᵦ = α / 4

Here α is the original significance threshold and αᵦ is the adjusted threshold. The slash denotes division by 4, the number of comparisons. For the reported 95% confidence level, the adjusted threshold is 0.0125.

The comparison of the baseline with the SVM gives a p-value of 1.169 × 10⁻⁹. The comparison of the baseline with memory-based learning gives 2.117 × 10⁻⁶. Maximum entropy versus SVM gives 0.0005, which also meets the adjusted threshold. Memory-based learning versus maximum entropy gives 0.0799 and falls outside it. The table of aggregate scores gives maximum entropy a higher F-score than memory-based learning, while the sentence-level test leaves that pair’s ordering uncertain.

Evaluate the resulting grammatical relations

The downstream comparison asks whether the better Cast3LB labels lead to better f-structures. The authors establish a reference for every test sentence. They run the LFG annotation procedure on the original trees, including their original function tags, and manually correct the resulting f-structures. They then compare outputs from the compound-label baseline and from parser trees enriched by the SVM against that corrected reference.

The comparison follows the representation used by Crouch and colleagues. Each relation is expressed as a triple connecting the predicate of one f-structure to the predicate of an embedded f-structure.

⟨GF, Pᵢ, Pⱼ⟩

The angle brackets collect the fields of the triple. GF is the LFG grammatical function attribute connecting the structures. Pᵢ is the value of the containing structure’s PRED attribute, which identifies its predicate. Pⱼ is the PRED value of the structure reached through GF. The subscripts i and j distinguish the predicate at the source of the relation from the predicate reached by following it. They play a different role from the token positions in the tagging measure.

The extraction recurses through embedded structures, so relations inside subordinate parts of an analysis can also contribute triples. Attributes with atomic values, meaning values without a further f-structure to traverse, are excluded. Precision measures how many predicted triples match the corrected reference, recall measures how many reference triples the output recovers, and F-score combines them.

Cast3LB test sentences, LFG relation F-score on parser output

Enriching the parsed trees with support vector machine tags improves the recovery of functional relations.

Cast3LB test sentences, LFG relation F-score on parser outputCompound-label parser baseline: 72.27Compound-label parser baseline72.27Support vector machine postprocessing (this paper): 75.67Support vector machine postprocessing(this paper)75.67
The numbers
System or settingF-score %
Compound-label parser baseline72.27
Support vector machine postprocessing (this paper)75.67

For the baseline, LFG relation precision is 73.95 and recall is 70.67. With SVM postprocessing, precision is 76.90 and recall is 74.48. The authors give the F-score improvement as 3.4%. The downstream sign test gives a p-value of 2.118 × 10⁻⁵, below the stated threshold of 1%. The test supports the claim that the enrichment benefits the intended grammatical analysis as well as improving agreement with Cast3LB tags.

What the ablations show

What the shared-feature comparison isolates

The paper reports no ablation that removes individual features or feature groups, and instead examines classifier choice, training-set size, input tree quality, tagging errors and the transition from tags to functional structures.

The classifier comparison is controlled by the shared description of a candidate. All learners receive evidence about the target, the local verb and neighboring sister nodes. The SVM leads on reference trees and on parser output under both scoring conditions. The sentence-level test establishes a significant difference between the SVM and maximum entropy on all parser-output constituents. Memory-based learning and maximum entropy produce more similar results, with the sign test leaving their ordering unresolved at the adjusted threshold.

The comparison with the compound-label parser concerns the architecture as a whole. Every separate classifier improves the aggregate tagging scores, suggesting that the gain is available across the learning approaches tried. The paper’s explanation is that predicting functions after parsing avoids some sparsity associated with dividing phrase categories into atomic category-function combinations. The experiment changes how the parser represents categories as well as how the labels are assigned. The scores establish the benefit of the combined change and leave the shares attributable to those mechanisms open.

What changes as training data increase

The learning curves compare the classifiers at different training-set sizes. The SVM leads throughout the sizes shown. Toward the end of the curves, the authors report that the SVM comes close to the performance of memory-based learning with half as much training material. This adds a dimension to the comparison at the full training size. The ordering persists when the amount of available training evidence varies within the range studied.

The curves also continue to rise through the range shown. The authors take that shape as evidence that additional training data could improve performance. It is especially relevant to cues that depend on particular words. When an infrequent verb licenses a particular prepositional object, the learner needs opportunities to observe that relation. Extra observations could help it distinguish a recurring pattern associated with the verb from other prepositional phrases that happen to occur in a comparable position. How far that improvement extends remains a question for larger training sets.

Why a correct constituent still presents a harder test

Restricting evaluation to correctly parsed constituents considerably raises every system’s tagging F-score. A tagger loses opportunities when a constituent is missing, has the wrong boundaries or falls outside the candidate contexts because of another structural decision. Correct constituent recovery removes some of these sources of error from the restricted comparison. The SVM still has the best score there, so its advantage over the baseline appears on correctly parsed targets as well as in the full pipeline.

There is a further gap between those results and the SVM’s score on gold trees. A target can have the correct category and boundaries while surrounding phrases are grouped or attached differently. The target’s head, parent or verbal context can also be affected by errors in the local analysis. Since the classifier uses features from neighboring nodes, a correct target can arrive with a feature description that differs from the one the gold tree would produce.

The authors note that their gap between gold trees and correctly parsed targets is larger than the gap reported by Blaheta and Charniak. They suggest that the Spanish setup may combine heavier use of context with a higher rate of parse errors. They also point to the decision to train and tune on gold trees. The learner may rely on patterns that are dependable in those trees but that the parser reproduces less faithfully. These are explanations for the observed gap. The reported comparisons leave their individual contributions open.

Which distinctions remain difficult on gold trees

The authors inspect a simplified confusion matrix for the SVM on the original test trees. The matrix concentrates on frequent tags and commonly observed errors. Subject and direct object are prominent sources of confusion in both directions. The paper identifies 26 cases in which an annotated subject was labeled as a direct object. When an annotated direct object was labeled as a subject, the target’s parent was a relative clause in over 50% of the cases.

The relative-clause example describes systems and 95% of the computers. One reading has the systems using that share of the computers. Another has that share of computers using the systems. The expression that follows the verb receives a different grammatical function under the two readings. The example illustrates why the phrase’s location can be an inadequate guide even when the surrounding constituent structure is correct. Both readings can be entertained before a reader decides which participant is the user and which is being used.

The authors point out that a human can draw on knowledge about the entities and the situations in which they normally act. The classifier has word identities and a limited human or nonhuman cue, together with structure and morphology. The evidence that settles a reading for a human may involve a richer judgment about the described situation. The relative-clause concentration identifies a context to examine, while the example gives a reason some errors can persist under a local feature design.

The other prominent confusion involves prepositional objects and circumstantial adjuncts. A prepositional object often depends on the particular verb, so its identification can require enough evidence about the verb and the phrase it selects. The paper argues that the training corpus gives the learner limited opportunities to observe infrequent lexical dependencies of this kind. Even with a correct constituent tree, the classifier may see a prepositional phrase whose function is hard to determine from its category, position and familiar examples.

The authors also describe a difficulty in the annotation itself. The boundary between prepositional object and adjunct can be fuzzy enough that clear guidelines are hard to formulate and annotators exercise judgment in individual cases. These explanations point to different sources of disagreement with the test annotation. A rare but consistent verb pattern could become easier to learn with more examples. An uncertain category boundary can make the desired label difficult to predict even when the examples are plentiful.

Why the functional scores are higher

The mapping to f-structure can make a function-tag error irrelevant to the downstream score. Cast3LB’s CC, MOD and ET labels all map to LFG ADJUNCT. If the classifier chooses CC where the reference tag was MOD, both can lead to the same functional relation. The span-based tag evaluation counts the substitution as an error, while the relation evaluation can still find the expected connection between predicates.

The conversion can also interpret a single Cast3LB label differently according to the category of its phrase. The paper gives CD as a case that can lead to OBJ, COMP or XCOMP, with the category supplying the deciding information for the annotation procedure. Some relations arise even in places where Cast3LB supplies no function tag. The paper mentions noun modifiers that receive ADJUNCT and objects of prepositions that receive OBJ. The LFG score therefore reflects both the function labels supplied by the classifier and functional information recovered in other ways.

A second cause is the change in the unit of scoring. The function-tag tuple requires exact span boundaries. The functional evaluation asks whether predicates are linked by the correct relation. A small boundary error can leave the head word, and thus the predicate needed for the triple, intact. In that case the two metrics respond differently to the same structural error. The higher f-structure scores reflect these properties of the conversion and evaluation. The comparison within the f-structure evaluation, with both systems judged on the same triples, shows the downstream benefit of SVM tagging.

Limitations

Limits the authors identify

The authors identify independent node classification as a central limitation. Some functions obey restrictions within a clause. A subject is unique in the local context they discuss. A direct or indirect object can be realized by a full noun phrase only once, although a clitic pronoun may double it. A clitic is a short grammatical form attached in its use to another word. A constraint that counts full noun phrases must account for this distinction if it is to handle object doubling.

The classifier has evidence from several sisters, but its predictions are made separately. A likely subject elsewhere in the clause can be reflected in the features only through the available properties of that phrase. Once the predicted functions are considered together, the procedure has no mechanism for enforcing uniqueness or the restrictions on object realization. The authors leave the integration of such constraints for future work. A resulting sequence of tags can therefore be locally plausible at each node and still violate a grammatical restriction on the clause as a whole.

Training on original trees adds a different dependency. The classifier can learn from cues that are reliable in hand-annotated structures. At test time, the parser may place a node in a different local context or provide a different head. The authors explicitly connect this mismatch to the drop observed even among correctly parsed constituents. Their experiment establishes how the gold-trained classifier behaves when it reads parser output. It leaves open how much performance could change if training and tuning also drew on comparable parser-produced structures.

Some mistakes involve information beyond the chosen cues. In the authors’ relative-clause example, both grammatical readings can be compatible with the nearby words and the constituent order. A reader’s knowledge about which entities would plausibly use others can settle a case that the feature description leaves ambiguous. In prepositional phrases, the major difficulty can instead be the rarity of a verb-specific construction or an uncertain boundary between annotation categories. These distinct error sources limit the conclusions that can be drawn from any single change in the classifier.

The authors use the learning curves to motivate the prospect of additional data. The evidence is the behavior of the curves within the measured range. It does not establish how much data would suffice for rare verb patterns, whether ranking among learners would persist beyond that range or how much ambiguity would remain even with larger samples. The analysis supports the possibility of improvement and identifies cases in which additional examples could have a concrete effect.

Limits visible in the experimental setup

The automatic pipeline starts from gold-standard part-of-speech tags. Its reported parser-output scores therefore apply when word categories and the retained morphological distinctions are already supplied. An end-to-end analysis from raw sentences would introduce another source of error before the tree is built. Both the classifier and the parser use information that could be affected by that stage. The experiments leave the cumulative result under automatic part-of-speech tagging unmeasured.

The tagging procedure is also tied to the Cast3LB conventions used to create candidates. It looks for sisters of specifically named verbal categories, uses the features derived from the Cast3LB-style trees and predicts labels from that annotation scheme. The general design of reading a constituent tree and adding functions can be understood independently of these decisions. The scores establish its performance for Spanish in this treebank and this split. A different treebank may place the relevant evidence at different nodes or distinguish a different set of functions.

Genre variation is present in Cast3LB, and the authors chose file-level splits to keep the genres approximately balanced. That design evaluates held-out files under a broadly similar mixture of material. It gives no separate estimate for a genre excluded from training and no score for a new variety or treebank with a different distribution. The fact that European and Latin American Spanish occur in the corpus identifies its coverage. It does not break down the classifier’s performance by variety.

The baseline comparison involves a change in the way tree categories are learned. One system predicts category-function pairs inside the parser, and the other predicts functions after parsing with simple categories. The overall contrast is appropriate for choosing between the pipelines studied. A narrower causal claim would require evidence about effects such as the parser’s category sparsity or the contribution of a particular class of contextual features. The reported results leave those quantities unmeasured.

For the same reason, the learning-method comparison should be read at the level of the algorithms, feature set and settings investigated. The SVM leads those comparisons. Individual features such as agreement and the alternative head lemma are plausible sources of useful evidence, but their contributions are not separately measured. Removing a cue could matter strongly for a rare function and have little effect on aggregate F-score. The simplified confusion matrix helps locate difficult contrasts, while leaving a full account of per-function performance and cue interactions open.

The functional evaluation has a narrower scope than the full output of the LFG procedure. The reference is created by manually correcting f-structures generated from original treebank analyses. The score measures whether predicate relations extracted from system outputs match the corrected reference. Atomic attributes are skipped. A higher score supports an improvement on those relations and leaves the quality of omitted attributes, and of parts of the representation that the triples may not distinguish, open.

The task-based evaluation also compares only the SVM pipeline with the parser baseline. Memory-based learning and maximum entropy are assessed on their Cast3LB function tags. They are not carried through the same downstream comparison. Because substitutions can disappear in the mapping to LFG and small boundary errors can affect the two metrics differently, their ordering in f-structure evaluation cannot be obtained from their tagging scores alone.

Finally, the sign tests quantify sentence-level consistency under the stated setups. Tied sentences are omitted, and the test uses which method wins on the remaining examples. The reported p-values support the differences specified in those comparisons. They give no estimate by themselves of how serious particular remaining mistakes are for an application such as translation or question answering. The measured downstream task is the construction of functional analyses, and the paper stops at the agreement of their extracted relations with a corrected reference.

What came after

A later-work comparison is unavailable for this paper. The authors describe a next research question themselves. Once functions are predicted separately for each eligible phrase, how can the decisions be made to respect the restrictions that apply to an entire local clause? Subject uniqueness and the conditions for doubling objects give concrete cases. The problem is to retain the evidence from each individual phrase while accounting for the noun phrases and clitics that occur alongside it.

The paper also leaves open whether the classifier can learn more dependable verb-specific patterns from additional trees, and how its features behave when the training evidence includes the kinds of structures the parser actually produces. These are directions raised by the reported learning curves and the comparison between original and parsed trees. The demonstrated result is that a separate function tagger improves both Cast3LB labeling and the recovery of the predicate relations scored in the resulting Spanish LFG analyses.

Cite

Cite as Grzegorz Chrupała and Josef van Genabith. 2006. Using Machine-Learning to Assign Function Labels to Parser Output for Spanish. Proceedings of the COLING/ACL 2006 Main Conference Poster Sessions.

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

@inproceedings{chrupala2006using,
  title = {{Using Machine-Learning to Assign Function Labels to Parser Output for Spanish}},
  author = {Grzegorz Chrupała and Josef {van Genabith}},
  booktitle = {Proceedings of the COLING/ACL 2006 Main Conference Poster Sessions},
  year = {2006},
  url = {https://aclanthology.org/P06-2018/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/chrupala-2006-machine-learning-assign-function-labels/