Elamur Research

Parsing with PCFGs and automatic f-structure annotation

Paper · 2002 · Aoife Cahill, Mairéad McCarthy, Josef van Genabith et al.

Summary

A phrase tree shows which words belong together. It takes a further step to say which phrase is the subject of a verb, which is its object, and which adds a qualification to the clause. Cahill and colleagues ask how much of that work can be done with an existing treebank, a collection of sentences with annotated parse trees. They use the Wall Street Journal portion of Penn-II to build a grammar for parsing new text and write an automatic procedure that turns facts about the trees into equations for an additional representation. In Lexical-Functional Grammar, this representation is called an f-structure. It links predicates to their grammatical arguments and modifiers and records features such as tense.

The authors compare two ways to put the procedure to work. A pipeline extracts a probabilistic context-free grammar from the treebank, selects the highest-probability tree for a new sentence, then adds equations to that tree. An integrated system adds the equations to the training trees before grammar extraction. The resulting grammar can learn separate probabilities for rules that expand a subject noun phrase and rules that expand an object noun phrase. Both systems ultimately solve the equations to produce what the authors call a proto-f-structure, a functional analysis that interprets constituents locally.

With the full integrated grammar, the paper reports a labelled constituent F-score of 81.26% on the held-out section 23 test, using the treebank’s part-of-speech tags for sentences of length 40 or less. That grammar scores 60.66% against hand-built proto-f-structures for 105 sentences sampled from the same section. The full pipeline with a plain grammar scores 77.37% on labelled constituents and 51.98% on the functional reference test. Giving the pipeline grammar information about each category’s parent in the tree improves both scores, though the integrated grammar still leads on functional accuracy. The pipeline has the advantage on the paper’s measure of whether an output forms a single connected structure.

The paper also finds that discarding rare grammar rules can save substantial parsing time, with more pronounced losses in coverage and accuracy under the strongest pruning tested. A separate experiment extends the annotator to recover links recorded by traces in existing Penn-II trees, including links in questions and relative clauses. That experiment uses treebank trees whose traces are already available. The authors outline how a future parser might recover such links from new text by learning which paths can connect functions in an f-structure.

Deep dive: Parsing with PCFGs and automatic f-structure annotation

Cahill and colleagues test how a grammar learned from the Penn Treebank can recover subjects, objects and modifiers as well as phrase structure. · about 34 minutes to read

The problem and its context

What a phrase tree leaves implicit

A syntactic analysis can answer several different questions about the same sentence. A phrase tree answers questions about grouping. It identifies a noun phrase, shows where it sits within a larger construction, and records the categories of the words and phrases inside it. A functional analysis answers questions about the work those pieces do. It identifies the subject of a clause, the object of a verb, and the modifiers associated with a predicate or noun. The difference matters because a reader who wants to know what a verb takes as its object needs the grammatical relationship as well as the boundaries of the phrase that fills it.

Lexical-Functional Grammar, or LFG, gives the two descriptions separate representations. Constituent structure, shortened to c-structure, is the phrase tree. Functional structure, shortened to f-structure, records grammatical information as attributes with values. A value can be simple, such as a tense, or it can itself be another feature structure. For instance, the value of the subject attribute can contain a noun predicate, a number feature, and information about the noun’s determiner. The representation can also let different paths lead to the same value. A subject that serves more than one predicate can therefore be represented as a shared structure.

The Penn-II Wall Street Journal trees already contain clues for such an analysis. Category labels tell a procedure whether it is looking at a noun phrase or a verb phrase. The configuration of a tree gives information about what dominates each phrase and which phrases are sisters. Some tags carry extra information, such as SBJ for a subject. Many other tags describe a kind of modification, such as a temporal or locative interpretation. The authors distinguish these cues from the full set of relations an LFG analysis requires. A treebank can mark a constituent’s broad use and still leave a conversion procedure to decide where and how that use should appear in the functional description. The paper takes Penn-II as its starting point. The Penn Treebank

The problem is therefore one of linguistic annotation as well as parsing. A person looking at a single sentence can make grammatical distinctions directly. For a grammar intended to cover a corpus of about 1 million words of Wall Street Journal text, the authors need a way to express recurring decisions once and apply them to many trees. They also need the decisions to compose. An equation for the subject of a clause, an equation for the object of a verb, and the lexical features for the words involved must be able to contribute to the same analysis.

Why grammar extraction solves only part of the task

Treebank-based probabilistic parsing offered a way to obtain the phrase grammar from examples. A context-free production records how a category expands into its immediate daughters. Extracting those expansions from an annotated corpus yields a grammar without requiring a linguist to write each expansion independently. A probabilistic context-free grammar, or PCFG, gives competing productions probabilities so that a parser can prefer some trees over others. The authors follow the treebank grammar extraction approach associated with Charniak and place their work alongside other statistical parsers that draw their grammatical evidence from Penn-II. They cite Collins and the use of a different grammar formalism by Hockenmaier and Steedman as examples of the wider research on parsing from the treebank. Statistical parsing with Combinatory Categorial Grammar

An extracted phrase production contains the categories that the corpus distinguishes. It needs additional information to say how those categories contribute to an f-structure. For example, a single production can combine an apparent subject and a verb phrase under a clause. The functional description must say where the subject goes and whether the verb phrase supplies the predicate of that same clause. A collection of phrase productions gives the converter places to attach functional instructions. It leaves the content of those instructions to be specified.

The scale of that remaining job motivates the paper. The authors describe manual construction of broad LFG and Head-Driven Phrase Structure Grammar resources as expensive work requiring linguistic expertise. They estimate that even starting with an extracted Penn-II grammar would leave more than 19,000 rule types to annotate. Allowing 10 minutes per type gives their conservative estimate of at least 2 person years, with testing and revision outside that allowance. In those terms, obtaining the production inventory is the relatively direct part. Reusing the same functional decision across many productions is the opportunity for automation.

The authors are careful about the scope of their claim. They describe the work as progress towards building large grammars in which feature constraints govern the analyses. The project still requires linguists to decide which patterns are informative, which functions to assign, and which configurations need special treatment. Its contribution is a way to move that expertise from individual rule entries into principles that can be applied across a corpus.

How earlier researchers moved from trees to functions

The paper traces earlier work that tried to recover grammatical relations from tree configurations. Lappin and colleagues identified nodes that corresponded to functions such as subject and object in trees from the PET parser. Their aim was to support transfer rules for machine translation. The output of that procedure identified the relevant nodes. For Cahill and colleagues, that can be understood as part of the work required to build a structure whose values also carry features and can refer to other structures.

The authors describe an unpublished approach by Ron Kaplan that directly constructed f-structures from trees in the ATIS corpus. It walked the tree, recognized configurations such as a noun phrase immediately under a clause, and assembled the functional result as it went. In an indirect approach, the traversal supplies equations at nodes. A separate solver then builds a structure that satisfies those equations. This distinction is consequential for grammar extraction. Equations left on nodes can travel with the corresponding categories and productions, making the annotation available as part of a probabilistic grammar.

The regular-expression approach of Sadler and colleagues also separated broad principles from individual expansions. It extracted a set of productions, applied pattern-based instructions to those productions, and matched the resulting annotated rules back to the original trees. An annotation pattern could cover a family of rules that differ in details irrelevant to the functional decision. As the authors explain it, the patterns provide a compact interface between c-structure and f-structure.

Frank’s approach represented trees as flat sets of descriptions and used a rewriting system to add functional information. Its rules could refer to a tree fragment extending beyond a single production. It could also express procedures in which rewriting steps had to run in a particular order or could apply independently. The paper mentions a related effort by Liakata and Pulman to map Penn-II trees to Quasi-Logical Form. These examples situate functional annotation among approaches that exploit the structural evidence already present in a corpus. The authors describe the regular-expression and rewriting demonstrations on the AP and Susanne corpora as proof-of-concept studies with relatively small subsets. They leave open how far those techniques could scale.

Cahill and colleagues bring those concerns together in a parser experiment. They ask whether principles developed for a large treebank can produce useful functional descriptions of its existing trees, then whether a grammar derived from those trees can produce useful descriptions for unseen sentences. Those are distinct problems. In the first, the grouping and categories are supplied by the treebank. In the second, the parser must choose the structure on which the functional decisions depend.

The method, step by step

From the head of a phrase to its grammatical function

The annotator is a recursive Java procedure. It works through a tree and places functional equations on its nodes. Its ordinary decisions are made in a local tree, the mother and the immediate daughters that form a single production. Within that configuration, it identifies the head daughter, the constituent that supplies the phrase’s central grammatical information. It then treats the daughters before and after the head as separate contexts. To locate heads, the authors adapt rules from Magerman and Collins and transform the corpus trees into trees with head information.

The point of dividing a production this way is to reuse decisions even when the exact list of daughters varies. Consider an English noun phrase. A noun before the head can act as a nominal modifier. A nominal phrase after the head can be an apposition. A procedure that sees only the categories of the two daughters can miss the positional distinction. With the head identified, it can consult separate instructions for the left and right contexts. It can apply those instructions again when a longer expansion includes additional daughters.

The authors build a matrix for each category that appears on the left-hand side of a production. The rows or entries of interest associate categories in particular positions with the equations they should receive. The paper illustrates this with a partial noun-phrase matrix. In its left context, determiners and cardinal numbers can contribute a specifier, adjective phrases can contribute adjuncts, and nominal categories can contribute head modifiers. In the right context, a prepositional phrase can be an adjunct, a nominal category can supply an apposition, and certain clausal or verbal categories can supply a relative modifier. The nominal head is equated with the functional structure of the noun phrase itself. These are examples from the simplified matrix. They illustrate how the mapping depends on the phrase type and the daughter’s relation to its head.

The matrices are built by examining common rule types. For a given mother category, the authors inspect frequent expansions until those types account for at least 85% of the occurrences. That percentage concerns tokens of rules, counting repeated uses of the same expansion. Their noun-phrase example contrasts about 6,000 possible rule types in Penn-II with 102 frequent types inspected to populate the matrix. The resulting entries encode recurring linguistic patterns. An expansion outside the inspected set can still contain the same head and a daughter to which a matrix entry applies.

Where the ordinary matrix gives way to other principles

Coordination gets its own treatment. The left and right context matrices apply when a local tree contains no coordination. A coordinated structure can combine daughters of the same category, or it can combine unlike categories. Treating every daughter in such a structure as an ordinary dependent of a single head could give the wrong functional organization. The authors therefore use dedicated principles for those cases.

The procedure finishes with catch-all and cleanup principles. This final component follows the context and coordination decisions. Information associated with individual words comes through macros for preterminal categories, the tags immediately above tokens in the tree. Such macros provide lexical contributions, among them predicate values and features such as number, person, tense, and participial form where applicable. These lexical contributions enter the same functional description as the relations inferred from the phrase tree.

A missing annotation can leave part of the resulting description disconnected. For instance, the equations within a phrase could identify its head and modifiers without giving that phrase a place in the containing clause’s f-structure. The internal equations can still describe a fragment. A contradiction is a different outcome. It can make the equations unsatisfiable, leaving the solver unable to construct a structure for the analysis. The paper counts connected outputs, fragmented outputs, and failures when assessing how well the annotation procedure covers its input.

What the equations say

The authors illustrate the annotation with a Wall Street Journal tree about an investment community awaiting a resolution. The subject phrase contains a determiner and a nominal modifier before its head noun. A parenthetical prepositional phrase modifies the clause. The verb phrase contains a chain of auxiliaries and a main predicate, and the main predicate has an object noun phrase. This example lets the authors show how local decisions at several places in the tree combine into a connected representation.

An equation on a node can refer to the f-structure at that node and to the one at its mother. The notation below uses an upward arrow for the mother’s f-structure and a downward arrow for the current node’s f-structure. The arrows give addresses for the functional information. They do not refer to an ordering of words. The subject annotation on the clause’s noun phrase has the following form.

(↑ SUBJ) = ↓

↑ refers to the mother’s f-structure, SUBJ names its subject attribute, and the parentheses enclose the path to the value of that attribute. ↓ refers to the noun phrase’s f-structure. The equals sign says that the value found at the subject path is the same structure as the one supplied by the noun phrase. The equation gives that phrase a grammatical role while allowing its own internal features to be supplied elsewhere in the tree.

A head daughter can contribute to the same f-structure as its mother.

↑ = ↓

Here ↑ and ↓ refer respectively to the functional descriptions of the mother and the current node. The equals sign identifies them. In the subject phrase in the example, the head noun contributes its features at the level of the noun phrase. This is how a lexical fact about the head becomes a fact about the value of the clause’s subject attribute. The head relation in the phrase tree thus helps determine which contributions share an address in the functional description.

A lexical equation can also make a direct statement about a value. The main verb in the example receives an equation of this kind.

(↑ PRED) = 'anticipate'

↑ points to the f-structure receiving the word’s lexical contribution. PRED names the predicate attribute, and the parentheses mark the path to it. The equals sign assigns the value named between quotation marks. In this example that value identifies the predicate underlying the inflected word. The object phrase can contribute an OBJ value to the same structure, while its determiner and adjectival modifier are described at the object’s own level.

The representation can let a feature contain a set of modifiers. The parenthetical prepositional phrase in the example receives the equivalent of a membership equation.

↓ ∈ (↑ ADJUNCT)

↓ refers to the phrase’s f-structure, and ∈ says it is a member of the set on the right. ↑ is the mother’s f-structure. ADJUNCT names the attribute that contains the set, and the parentheses enclose the path to that set. Within the prepositional phrase there are further equations for the preposition’s predicate and its object. Accordingly, putting a phrase in the adjunct set can attach a structured description with internal relations of its own.

The example treats auxiliary predicates and their open clausal complements hierarchically. A lower verb phrase is the value of an XCOMP attribute, and a separate equation shares the subject across the corresponding levels. At the point in the tree where the lower verb phrase is annotated, these are distinct equations.

(↑ XCOMP) = ↓

↑ addresses the higher functional structure and XCOMP names its open complement. The parentheses enclose that feature path, ↓ denotes the lower verb phrase’s structure, and the equals sign links that structure to the higher predicate as its complement.

(↑ SUBJ) = (↓ SUBJ)

↑ and ↓ address the higher and lower structures, respectively. SUBJ names the subject attribute at each level, and the parentheses delimit the two paths. The equals sign requires both paths to have the same value. This sharing is called reentrancy. A printed version of the f-structure can display the subject at multiple levels, even though the equation specifies a common value. The sharing in this example is set up by local annotations on the auxiliary construction. The initial system can express that relation while leaving the reconstruction of displaced constituents to later work.

The constraint solver receives the equations collected across the tree and works out a consistent assignment of features and values. The equations define the structure jointly. For example, an equality can cause features contributed at one node to become accessible through a path specified elsewhere. The solver’s part of the job is the same in both parsing architectures. What changes is the point at which the equations become attached to the tree.

How the two architectures use the annotations

Grammar extraction and functional analysis in the two architectures

The steps in order.

Grammar extraction and functional analysis in the two architecturesStep 1: Prepare Penn-II training trees1. Prepare Penn-II training treesStep 2: Integrated route adds functional equations before extraction2. Integrated route adds functional equations before extractionStep 3: Extract the probabilistic grammar for either route3. Extract the probabilistic grammar for either routeStep 4: Parse a tagged sentence and select its best tree4. Parse a tagged sentence and select its best treeStep 5: Pipeline route adds functional equations after parsing5. Pipeline route adds functional equations after parsingStep 6: Collect equations from the selected tree6. Collect equations from the selected treeStep 7: Solve the equations to produce a proto-f-structure7. Solve the equations to produce a proto-f-structure

In the pipeline, the authors extract a PCFG from trees without their added functional equations. The parser chooses the most probable constituent tree for a tagged sentence. The automatic annotator then finds heads and configurations in that output and adds the equations. Finally, the constraint solver uses the equations to construct the proto-f-structure. The parse decision has already been made by the time the functional annotator sees the sentence.

In the integrated architecture, the authors first annotate the training trees and extract the grammar from those enriched trees. They refer to this grammar as an annotated PCFG, or A-PCFG. A category with its functional equations is treated as a single category symbol during grammar extraction and parsing. A noun phrase carrying a subject equation and a noun phrase carrying an object equation can therefore have separate production inventories and separate probabilities. The parser selects the most probable annotated tree. Its equations can be read directly from the selected analysis and passed to the solver.

Treating an annotated label as a single symbol makes the distinction precise. The grammar uses the fact that subject and object labels differ when it counts or combines productions. The parser can operate on these labels as category names. The solver interprets the equations embedded in them after the parser has selected the tree. In particular, the integrated architecture brings functional distinctions into the parser’s scoring without requiring the parser to check the consistency of the complete f-structure during the search.

The authors also test a parent transformation. A daughter’s category is enriched with the category of its mother. The resulting grammar can distinguish a noun phrase under a clause from one under a verb phrase. These contexts can correlate with subject and object uses in the trees. The transformation records a structural cue, whereas the f-structure annotation records a proposed function. The authors apply the parent transformation to both grammar families. In the combined grammar, the mother contributes its constituent category to the daughter’s label and keeps its own functional annotations at its own node.

How the grammar is trained and used

Both grammar families use sections 01–21 of the Wall Street Journal portion of Penn-II for extraction. The authors give trees a common root category, eliminate empty productions, and collapse unary branches while carrying daughter category information upward. They also give auxiliary verbs an Aux category under a particular condition. The auxiliary must have a sister verb phrase somewhere to its right. The condition makes the classification depend on the configuration in which the word occurs. Removing empty productions is especially consequential for the scope of the main experiment. It deprives the parser of the trace-bearing nodes that the later annotation experiment uses to recover non-local relations.

The experiments use a Java implementation of CYK, a parsing algorithm that builds candidate analyses for spans and combines them into larger spans. This parser uses a version of the grammar converted to Chomsky Normal Form, with productions that branch in two. The authors then restore the selected tree to its treebank-style branching, preserving the information needed for evaluation and annotation. This matters for the pipeline because the equations depend on the tree’s local configurations. A temporary binary split introduced to run the parser serves a computational purpose. The annotation is applied after the original organization has been recovered.

The parser receives the treebank’s part-of-speech tags for the test sentences. Grammatically, the tags serve as the sequence over which the parser searches for a constituent analysis. The experiment consequently holds the preterminal category assignments fixed. In the pipeline, lexical feature macros can then use the corresponding tags when adding information to the tree. The accuracy results concern this tagged-input setting.

The tree score follows the PCFG factorization described in the paper.

P(T) = ∏ᵥ∈I(T) P(rᵥ)

P denotes probability and T is a candidate tree. I(T) is the collection of nodes at which a production is applied. The index v, shown as ᵥ in the formula, selects one such node, and ∈ indicates inclusion in that collection. rᵥ denotes the production applied at that node. The product sign ∏ means to multiply the probability assigned to each production occurrence. The parentheses group the argument of a function, and the equals sign relates the resulting product to the tree’s probability. If a production appears repeatedly in the tree, its probability contributes at each use.

The authors choose the single tree with the highest score. They favor a simple parser because they want a system that can be used for online parsing, and they contrast this aim with disambiguation approaches that may need to enumerate alternatives after parsing. There is a cost to keeping probability and constraint solving separate. A tree can have the highest product of production probabilities while its functional equations are inconsistent. The probability assigned to such a tree is still part of the grammatical ranking, even when the functional output cannot be built. The paper reports that this outcome occurred in less than 0.1% of its parsing experiments.

Experiments and results

What the evaluations measure

The paper evaluates annotation on treebank trees and parsing on held-out sentences. Annotation evaluation starts with a tree whose grouping is supplied. This tests whether the annotation principles can turn the available structural cues into an f-structure. Parsing evaluation asks the system to infer the tree first, using a grammar extracted from other sections. An output can be inaccurate because the parser chose the wrong grouping, because the functional assignment was wrong, or because the resulting equations omitted or misplaced information. The two evaluations help distinguish the difficulty of the conversion from that of the complete parsing task.

For parsing, sections 01–21 supply the grammar and section 23 is held out. The authors describe about 2400 test sentences and restrict the experiments to sentences of length 40 or less. The part-of-speech tags come from Penn-II. The authors use evalb to compare output trees with the treebank’s reference trees. Labelled evaluation gives credit for a constituent that has both the correct span and the correct category. Unlabelled evaluation ignores the category and assesses the grouping. The scores summarize precision and recall. Precision asks how much of what the system produced matches the reference. Recall asks how much of the reference the system recovered.

The paper uses the following expression to combine precision and recall in an F-score.

F = 2 × p × r ÷ (p + r)

F is the F-score, p is precision, and r is recall. The coefficient 2 gives precision and recall equal weight in the harmonic mean. × denotes multiplication, ÷ denotes division, and + adds precision and recall in the denominator. Parentheses group that denominator, and = gives the value of the score. The grammar comparisons report F-scores as percentages. The separate annotation precision and recall values are presented as decimals.

For functional accuracy, the authors use hand-built proto-f-structures for 105 trees randomly sampled from section 23. The functional reference captures grammatical information different from the constituents counted by evalb. For the annotation comparison, the authors also report a predicate-only evaluation, which keeps the paths ending in PRED. Such a path identifies a predicate together with its location in the functional description. For example, a noun predicate reached through the object path contributes evidence about its grammatical role as well as its identity. Features on paths ending in number or tense are outside this predicate-only view.

Another functional metric is fragmentation. It asks whether the equations produce a single connected analysis. A connected analysis can contain errors or omit a feature required by the reference, so the authors report its frequency separately from functional accuracy. They also give the number of parses for each grammar. An increase in the share of connected outputs can occur alongside a decrease in the number of sentences the system parses.

How well the annotator works with reference trees

The authors track changes in the annotation procedure across earlier and current versions. Their initial version associates 78.836% of the Penn-II trees with a single proto-f-structure, with 2701 trees yielding no structure because of inconsistent annotations. The distribution includes trees with multiple fragments. A subsequent version reaches 96.648% with a single structure. The current version reaches 99.75%, representing 48,304 trees. The remaining 120 trees receive no proto-f-structure, and the table reports no trees with multiple fragments for that version.

Against the hand-built reference for the 105 sampled trees, the current annotation procedure has precision of 0.93 and recall of 0.90 when all annotations are considered. For predicate-ending paths, its precision is 0.94 and its recall is 0.87. The preceding version in the same comparison has precision of 0.95 and recall of 0.94 for all annotations, and precision of 0.94 and recall of 0.89 for predicate-ending paths. The newer version produces more connected analyses across the corpus while some scores on the manual reference are lower. Coverage and agreement with the reference therefore register different changes to the procedure.

These results establish a useful reference point for the parsing experiment. Given the treebank trees, the annotator can usually connect the information it adds, and many of its added descriptions match the hand-coded reference. In the parsing experiment, treebank grouping gives way to the system’s selected constituent analysis. The resulting functional scores reflect the extra difficulty of deriving the description from that inferred tree.

Parsing with the full grammars

The main comparison uses the plain pipeline grammar as a baseline. PCFG+P adds the mother category to the labels in that pipeline grammar. A-PCFG is the integrated grammar with functional annotations on its categories, and A-PCFG+P combines those annotations with the parent transformation. The full grammars have 19,439 rules for PCFG, 30,026 for PCFG+P, 29,216 for A-PCFG, and 35,815 for A-PCFG+P. This gives the authors a comparison between two ways to add distinctions at roughly comparable grammar sizes, as well as a baseline for measuring the effect of those distinctions.

Full grammars on Penn-II section 23, labelled constituent F-score

The integrated grammar leads, and adding parent categories to it leaves performance close to the same level.

Full grammars on Penn-II section 23, labelled constituent F-scorePipeline PCFG: 77.37Pipeline PCFG77.37Pipeline PCFG+P: 80.49Pipeline PCFG+P80.49Integrated A-PCFG (this paper): 81.26Integrated A-PCFG (this paper)81.26Integrated A-PCFG+P: 81.18Integrated A-PCFG+P81.18
The numbers
System or settingF-score %
Pipeline PCFG77.37
Pipeline PCFG+P80.49
Integrated A-PCFG (this paper)81.26
Integrated A-PCFG+P81.18

The unlabelled constituent results follow the same ordering. On section 23, the plain pipeline grammar scores 79.89%, the pipeline with parent categories scores 82.56%, the integrated grammar scores 83.16%, and the combined grammar scores 83.08%. The changes with enriched categories are therefore visible when the evaluation asks only about constituent spans. A decision about which grammatical category can expand in a given context can change the tree’s grouping as well as its labels.

Full grammars on the section 23 manual reference, proto-f-structure F-score

The integrated grammars agree with the hand-built functional analyses more closely than either pipeline grammar.

Full grammars on the section 23 manual reference, proto-f-structure F-scorePipeline PCFG: 51.98Pipeline PCFG51.98Pipeline PCFG+P: 56.28Pipeline PCFG+P56.28Integrated A-PCFG (this paper): 60.66Integrated A-PCFG (this paper)60.66Integrated A-PCFG+P: 60.21Integrated A-PCFG+P60.21
The numbers
System or settingF-score %
Pipeline PCFG51.98
Pipeline PCFG+P56.28
Integrated A-PCFG (this paper)60.66
Integrated A-PCFG+P60.21

The functional scores come from the reference set of 105 sentences. The integrated grammar without the parent transformation records the highest F-score, and adding the parent transformation leaves the two integrated grammars close. Parent information also benefits the pipeline. Though that parser still waits until after tree selection to assign functional equations, the distinctions made during parsing give its downstream annotator different trees to work with.

The full-grammar fragmentation result favors the pipeline. The plain pipeline’s connected-output figure is 95.80%, and the one with the parent transformation is 95.64%. The integrated grammar records 94.69% and its parent-transformed version records 94.93%. These results coexist with better functional reference agreement for the integrated grammars. A solver can reach a connected structure even when the structure attaches a phrase to the wrong function. Conversely, an output can match several of the reference’s functions while other information remains unconnected.

The parse counts put these results in a further context. On the section 23 test, the plain pipeline returns 2240 parses and the parent-transformed pipeline returns 2227. The corresponding integrated counts are 2223 and 2207. The leading F-score is thus one aspect of the comparison. The count of sentences receiving a parse and the share of functional outputs that are connected give additional information about what each grammar delivers.

Grammar size, runtime, and coverage

The compaction experiments remove rules according to how often they occurred in the training data. A threshold of 1 drops productions seen only once. The authors report a reduction in grammar size of 60–70% for this setting. The plain PCFG falls to 7906 rules, and the A-PCFG to 11,545 rules. For the plain pipeline, the parse count on section 23 is 2227 and labelled constituent F-score is 76.81%. Its functional reference F-score is 51.99%. For the integrated A-PCFG, the count is 2189, labelled constituent F-score is 80.08%, and functional F-score is 59.15%.

The authors report a speed increase by a factor of 6–12 for the threshold 1 compaction experiments. They give a timing example for the plain PCFG on the section 23 run, whose sentences average around 20 words. With the original grammar the run takes 48.71 CPU hours. After rules seen only once are dropped, it takes 7.91 CPU hours. Dropping every rule with a count at or below 2 brings the plain PCFG run to 3.08 CPU hours.

Plain PCFG on Penn-II section 23, CPU time by pruning threshold

Removing more rare productions reduces the time needed for the section parsing run.

Plain PCFG on Penn-II section 23, CPU time by pruning thresholdFull grammar: 48.71Full grammar48.71Threshold 1: 7.91Threshold 17.91Threshold 2 (this paper): 3.08Threshold 2 (this paper)3.08
The numbers
System or settingCPU hours
Full grammar48.71
Threshold 17.91
Threshold 2 (this paper)3.08

At threshold 2, the plain PCFG has 5433 productions and returns 2210 parses. Its labelled constituent F-score on section 23 is 76.18%, and its F-score on the manual functional reference is 50.95%. The integrated A-PCFG at the same threshold has 7924 productions and returns 2143 parses. Its labelled constituent F-score is 79.96% and its functional F-score is 59.07%. The authors describe a speedup by a factor of 15–20 at this threshold compared with full grammars. The exact CPU times in the chart document the plain grammar example.

With a threshold of 5, all the grammars complete the section 23 run in less than 1 CPU hour in the Java implementation. The plain PCFG then has 3246 rules and returns 2125 parses, with labelled constituent and functional F-scores of 75.07% and 48.99%. The integrated A-PCFG has 4520 rules and returns 1963 parses, with scores of 78.66% and 56.26% on those respective evaluations. The combined integrated grammar has 5447 rules, returns 1784 parses, and scores 79.24% on labelled constituents and 58.80% on the functional reference. At this setting, the cost of the runtime gain is more apparent in both coverage and the quality measures.

Adding traces to existing trees

The paper also reports a separate extension of the annotator that uses traces and empty nodes in full Penn-II trees. A trace marks a position at which linguistic material can be interpreted even though the material appears elsewhere. The extension adds a trace component after the original annotation components and expresses the relationship between the positions through indices and sharing in the f-structure. The authors also update the manual reference structures for the 105 sampled trees to represent these links.

For this richer annotation, the corpus fragmentation table records 47,916 sentences with a single f-structure, 507 with none, and 1 with two fragments. Predicate-only precision is 0.93 and recall is 0.87 on the updated manual reference. The corresponding figures for the current proto-f-structure annotator are 0.94 and 0.87. The authors take this to suggest that the functional analysis can capture the additional information while keeping predicate-path precision and recall fairly steady, though it fails to produce a connected output more often. The input to this comparison contains the treebank’s traces. The full-grammar parsing scores concern the local proto-f-structures.

What the ablations show

Functional information and parent information

The controlled grammar comparisons vary which distinctions the parser can see before it selects a tree. The plain pipeline delays functional annotation until after the choice. Adding parent information to that pipeline changes its probabilities while keeping the downstream conversion to f-structure. The fact that both constituent and functional accuracy improve supports the usefulness of structural context for parsing. The gain on functional accuracy can arise through better trees for the annotator to interpret. It need not arise from changing the annotation principles.

The integrated A-PCFG tests a different use of context. Its label refinements directly encode proposed grammatical functions. Subject and object noun phrases can be distinguished even when the underlying constituent category is the same. Those labels include other equation-based distinctions as well. The full A-PCFG has 29,216 rules against 30,026 for the parent-transformed pipeline, yet obtains higher functional agreement on the manual reference. The approximate similarity in grammar size gives context to the comparison. It is the content and distribution of the distinctions, as well as how many productions they produce, that matter to the analyses the parser can choose.

The combined grammar asks whether adding parent information contributes on top of the functional labels. With the full grammars, its labelled, unlabelled, and functional F-scores are slightly below the A-PCFG values. This suggests that some of the information made available by the parent categories is already accessible in the functions the annotation distinguishes. A subject label and a clause-parent label, for instance, can often separate similar sets of noun phrases. The experiment varies entire label systems, so it leaves open which equations contribute most. The paper does not remove subject equations, coordination treatment, or lexical features separately to measure their individual effects.

The combined grammar can fare differently after pruning. At threshold 1, the integrated grammar with parent information scores 60.42% against the manual functional reference, compared with 59.15% for the integrated grammar by itself. Its labelled constituent F-score on section 23 is 80.39%, compared with 80.08%, and it returns 2115 parses compared with 2189. This shows why the full-grammar comparison and the compaction comparison answer different questions. Pruning changes the supply of productions available to combine with each enriched label. A setting can score higher on a quality measure while parsing fewer sentences.

What the rare rules contribute

The threshold series tests the practical contribution of infrequent productions. A large number of them can be removed at the mildest threshold with relatively small changes to the reported quality and coverage. That observation concerns rare production types in the training corpus. It is consistent with the production counts being concentrated enough for common grammatical patterns to support many analyses on section 23. A rule’s count may be low because it represents an unusually specific category sequence. Common alternatives can sometimes provide a complete tree even when that rule is absent.

The strongest pruning exposes where this simplification costs coverage. The finer-grained grammars lose more parses under severe compaction than the plain PCFG. In a grammar with enriched categories, expansions that once shared the same category sequence can be counted separately. A count cutoff can remove a rule in a particular parent or functional context even if the corresponding coarse expansion is relatively common. This is a plausible explanation for the pattern across the grammars. The paper tests the effect of the cutoff using aggregate results, leaving individual lost constructions unidentified.

An improvement in the connected-output measure after some pruning requires similar care. Under threshold 2, the connected-output figure for the plain PCFG is 96.38%, compared with 95.80% for the full version, while the parse count falls to 2210 from 2240. Pruning can change which sentences are parsed and which analyses survive. The percentages alone therefore cannot isolate whether the remaining sentences have received intrinsically better functional analyses. The reference F-score and the parse count supply independent observations about that setting.

What the annotation comparisons isolate

The version history of the annotation procedure is an analysis of coverage and correctness over development. It shows a transition from frequent missing or fragmented outputs to a procedure that very frequently produces a connected structure. Those comparisons concern whole versions of the annotator. They give no separate estimate for the effect of head finding, coordination, or catch-all processing. Their clearest result is that increasing coverage can coexist with a decline in precision or recall against some functional descriptions.

The trace extension changes both the functional objective and the reference used to score it. On one side is an annotation that treats material locally. On the other is an annotation that tries to retain links already marked in full treebank trees. Predicate precision remains close and predicate recall is unchanged at the reported values, while failures to produce a structure become more frequent. The comparison tests whether the annotator can exploit richer evidence from a supplied tree. It leaves the separate question of inferring the links during parsing open.

Limitations

Limits identified by the authors

The central limit is the scope of the proto-f-structure. It describes local grammatical relations and can express sharing provided for by local equations, as in the auxiliary example. It generally interprets a constituent where it appears in the tree. Constructions such as topicalisation, extraposition, and questions can place a constituent away from the position at which its relation to a predicate should be interpreted. The initial annotation omits the traces and empty nodes that Penn-II uses to encode the connection. A single connected proto-f-structure can therefore fall short of the authors’ fuller functional description.

The authors’ trace extension recovers more of that information when given the original trees. It handles traces for questions, relative clauses, fronted constituents, and some subjects of nonfinite clauses. Null constituents generally become nodes available for annotation, with the passive empty object noun phrase treated separately. The extension draws on indices to express reentrancies. Where a trace comes without an index, the paper describes a conversion to arbitrary PRO, a silent subject without a supplied controller. These decisions exploit conventions in the source trees. The main PCFG grammar preparation eliminates the empty productions on which those conventions depend.

Passives illustrate another part of the representational problem. The authors distinguish the grammatical functions visible in surface syntax from logical functions closer to thematic roles. A passive subject generally corresponds to a logical object, while the object of an optional by-phrase generally corresponds to a logical subject. A system that identifies the grammatical subject still has work to do if it needs the logical interpretation. The trace-aware annotation brings such distinctions into the project’s scope. The parsing experiment reported for new tagged sentences uses the earlier, local representations.

The authors also identify the need for predicate-specific requirements. A semantic form for a predicate records the grammatical functions that it calls for at its level of f-structure. Completeness checks that the required functions have been supplied. Coherence checks that the governed functions present have a place in the predicate’s specification. At this stage the annotator is driven mainly by constituent categories, configurations, and preterminal templates, with occasional use of treebank function tags. The authors discuss how to recover fuller lexical requirements as future work.

The probabilistic architecture has a separate limit. The parser ranks a tree by its production scores, and the solver can subsequently reject its functional equations. The authors acknowledge that the tree’s probability then fails to carry over to an f-structure. Their engineering choice puts parsing speed and the ability to process text online ahead of scoring globally consistent functional analyses during search. They report that inconsistent selected trees are rare in their tests. The experiment still leaves open whether another tree could provide a sound analysis when the selected one fails.

The authors caution against directly comparing their functional F-scores to the figures from a richer handwritten LFG system. The work by Riezler and colleagues reports scores close to 80% for detailed f-structures, while Cahill and colleagues describe their semi-automatic approach as achieving about 60%. The other work uses partial bracketing from section 23 and offline discriminative disambiguation. Cahill and colleagues parse without those bracketing cues, using tagged input. The output representations, guidance available to the parser, and disambiguation procedures all differ. Wall Street Journal parsing with LFG and discriminative estimation

Limits of what the experiments establish

The section 23 test gives evidence for sentences from the same Wall Street Journal treebank as the training material. The grammar was extracted from different sections, so the test evaluates held-out parsing within that resource. The sentence-length restriction and the use of gold tags define a narrower condition than unrestricted raw-text analysis. In particular, the results leave the effects of tagging errors and longer input unmeasured. They also provide no direct evidence for another corpus with different annotation conventions, or another language with a different relationship between local configuration and grammatical function.

The manual functional benchmark gives the study a target beyond the constituent trees, but it contains 105 sampled sentences. The fact that they are randomly selected explains how the subset was drawn. It supplies no breakdown by construction or frequency. The aggregate scores cannot show how well the method handles a particular rare construction, nor whether gains concentrate on simple cases. The paper also reports no uncertainty estimates for the differences between neighboring settings, which matters when choosing an interpretation for the closely spaced results of the integrated grammars.

The version history gives evidence that the authors improved operational coverage of annotation. It offers less leverage for explaining exactly how that happened. The work combines head rules, context matrices, coordination principles, cleanup, and lexical macros. Each component has a clear job, but the reported comparisons change sets of decisions at once. The paper accordingly supports an argument about which architecture benefits from functional annotation as a whole. It gives less evidence for choosing among competing annotation principles inside that architecture.

Finally, the timing results are tied to the Java implementation and the paper’s tagged section 23 runs. They show that there is a substantial cost to carrying low-frequency productions in those experiments and that increasingly strict pruning can sacrifice useful coverage. They do not establish an end-to-end response time for an application with its own tagger and input conditions. Likewise, a high single-structure rate is evidence that the equations are connected, while the manually scored comparison is needed to show that they describe the sentence as intended.

What came after

The paper closes with a plan for turning the trace-aware annotation into a resource for parsing new sentences. It reports results for the extension on existing Penn-II trees. It leaves subsequent studies of the proposed parser unreported. The research direction is identifiable from the problem the authors set themselves. They want to retain the surface-oriented constituent grammar used in parsing while recovering functional links that are visible in the treebank’s richer training annotations.

The authors propose learning the functional paths from trees that already contain traces. A displaced constituent and its interpretation site can be represented as sharing a value in the richer f-structure. Given that structure, a procedure can find a shortest path relating the positions marked by the shared information. By collecting paths for instances of a particular phenomenon, the authors hope to learn which routes recur in its functional analyses.

They propose compacting the observed routes into a regular expression. In LFG, a functional uncertainty equation uses this kind of expression to allow a relation to follow any path licensed by the pattern. For a sentential topic, the aim is to associate its function with an equation that can connect it to the appropriate place in the remainder of the sentence. The parser would supply a surface analysis, the annotation procedure would add the equation for the topic, and the solver would determine which path satisfies the constraints. Detailed treebank traces would provide learning evidence, while the representation for a new sentence could express the link directly in the f-structure.

That plan extends the original paper’s decision to separate phrase analysis from equation solving. In the proto-f-structure system, local configurations furnish particular equations, such as the instruction that a noun phrase fills the subject attribute of its clause. For non-local phenomena, the instruction needs to admit a family of paths because the words that belong together grammatically can be separated by intervening constituents. The authors propose deriving those possibilities from the annotated corpus instead of writing each path individually.

Supplying the solver with lexical constraints

Finding a family of possible paths raises the question of which one is compatible with the predicates in a sentence. The authors propose using completeness and coherence to help constrain the answer. A predicate’s lexical description can indicate which grammatical functions must be available. A possible long-distance attachment then has to agree with the predicate’s requirements and with the functions already present. The quality of those lexical descriptions is a dependency of the proposed analysis.

The paper discusses obtaining them from COMLEX or inducing them from the annotated treebank. In the induction proposal, a procedure examines an f-structure at each level of embedding, identifies its predicate, and collects the grammatical functions at that level that can be selected by the predicate. Those functions supply the basis for a semantic form. The proposal depends on the accuracy of the automatically produced functional structures. Misidentified arguments could otherwise translate into incorrect requirements for subsequent parses.

The work reported here supplies an initial set of ingredients for that program. It shows that local functional annotations can be extracted and used as category distinctions in a probabilistic grammar, and that hand-marked traces can be converted into richer descriptions when they are present in the input trees. Learning a parser that supplies comparably detailed analyses for new text is the next question the authors pose.

Cite

Cite as Aoife Cahill, Mairéad McCarthy, Josef van Genabith and Andy Way. 2002. Parsing with PCFGs and automatic f-structure annotation. Dublin City University Open Access Institutional Repository (Dublin City University).

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

@inproceedings{cahill2002parsing,
  title = {{Parsing with PCFGs and automatic f-structure annotation}},
  author = {Aoife Cahill, Mairéad McCarthy, Josef {van Genabith} and Andy Way},
  booktitle = {Dublin City University Open Access Institutional Repository (Dublin City University)},
  year = {2002},
  url = {http://doras.dcu.ie/15346/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/cahill-2002-parsing-pcfgs-automatic-f-structure/