Elamur Research

Semi-automated Extraction of a Wide-Coverage Type-Logical Grammar for French

Paper · 2010 · Richard Moot

Summary

A syntactic analysis can identify the parts of a sentence while leaving much of the work of interpreting it to another procedure. Richard Moot addresses that problem for French by building a grammar in which lexical categories specify how expressions combine. A verb’s category can say which phrases it needs on either side. A relative pronoun’s category can connect a missing phrase inside a clause with the noun the clause modifies. The aim is to make those syntactic decisions available in a form that supports the construction of a meaning representation. The paper evaluates a prerequisite for that goal through a lexical prediction task.

Moot starts with the part of the Paris 7 corpus that marks both phrase structure and grammatical function. The extraction process rearranges the original trees so that combinations can be analyzed in pairs, identifies heads and the expressions that depend on them, and assigns logical types from the top of each tree down to its words. Some constructions need extra structure. A relative clause, for instance, receives an empty position for an argument linked to the relative pronoun. The resulting categories supply a lexicon, while their placement in the trees records the analysis of each occurrence. The work begins with existing treebanks.

Automatic extraction produces the initial version, TLG₀, with 5.240 distinct formulas. Moot then checks suspect assignments in the annotated corpus and changes how some constructions are represented. One change treats certain adverbs as sentence modifiers with a controlled ability to occur nearer the verb. That avoids assigning a separate modifier category for each kind of verb expression they appear beside. The revised treebank, TLG, has 817 distinct formulas. A further version, TLGc, adopts additional simplifications inspired by an English categorial treebank.

The evaluation asks a supertagger to choose a detailed grammatical category for each word from local evidence. On the French test set, the best single prediction matches the reference category on 79.4% of cases for TLG₀, 90.5% for TLG and 93.5% for TLGc. When the supertagger can keep alternatives, the correct TLG category appears among them on 98.4% of cases at the loosest threshold tested, with 4.7 candidates per word on average. The corresponding figures for TLGc are 98.8% and 3.8. Moot regards this performance as comparable to published English supertagging results, with caveats about comparing languages and grammatical formalisms. The French experiment measures how well the tagger recovers lexical categories. Full sentence analysis and the development of a semantic lexicon remain separate work.

Deep dive: Semi-automated Extraction of a Wide-Coverage Type-Logical Grammar for French

Richard Moot extracts a type-logical grammar from a French treebank and tests how accurately nearby words and tags predict its lexical categories. · about 36 minutes to read

The problem and its context

From sentence structure to an interpretation

Moot situates the project in an active period of French parsing. Participation in the EASy evaluation indicated that systems for French syntax were already being developed and tested. The gap he identifies concerns the form of their analyses. He describes available systems as usually returning packed collections of possible analyses or structures that record dependencies between words. His concern is how readily such output can be used to construct an interpretation. The project therefore starts with a question about grammatical representation as well as a question about coverage.

A phrase structure tells us which words make up an expression and how that expression fits inside a larger one. A functional label can add that a particular phrase is an object or plays another grammatical role. In Moot’s proposed representation, these decisions feed into a derivation that explicitly records how expressions satisfy one another’s requirements. If a verb takes a noun phrase to its right, the verb’s type records both the requirement and the category of the expression formed after the requirement is met. A later stage can then follow the same pattern of combination to build a meaning from the meanings assigned to the words. That is the connection the paper draws between syntax and semantics.

The distinction matters most where a constituent label leaves a choice open. A phrase introduced by a preposition may fill an argument slot in a verb’s grammatical description, or it may modify a larger expression. Its visible form alone leaves that decision unresolved. The distinction changes the lexical type assigned to the head and can change the type assigned to the dependent phrase. A treebank conversion must turn the information in the source analysis into those decisions consistently enough for the types to recur in other sentences.

The source material already supplies some of the required information. The Paris 7 trees show how words are grouped, and the functionally annotated portion gives additional clues about the roles of those groups. Moot takes advantage of both. This makes the task one of interpreting and restructuring existing analyses. The resulting grammar needs to preserve enough of what those analyses say about actual sentences while expressing it in types suitable for a different formalism. Decisions about which distinctions deserve a lexical category belong to the design of syntax and grammar formalisms.

What earlier extraction work made possible

The paper’s main precedent is CCGbank, which converts an annotated English corpus into derivations in combinatory categorial grammar. Moot connects that resource with the wide-coverage English semantic analysis reported by Bos and colleagues. The connection is practical. A reusable corpus of syntactic derivations gives semantic work a starting point across many sentences, including sentences with several interacting constructions. The motivation for the French resource is to make a similar connection possible with a type-logical grammar. The precedent comes from work on English and CCGbank.

The paper also traces its extraction procedure to earlier work on recovering categorial grammars from analyzed language data. It mentions Buszkowski and Penn’s work with linguistic examples and unification, and Moot’s own extraction of type-logical supertags from a spoken Dutch corpus. These precedents establish the general approach of deriving lexical categories from structure. The French project supplies its own choices about how to read the corpus labels, where to insert gaps, and which groupings should be changed before the types are assigned.

Earlier work also gives the paper a way to test the resulting annotations. A supertag is a detailed grammatical category attached to a word occurrence. A supertagger tries to recover that category from clues available near the word. It can be useful before full parsing because it narrows the lexical alternatives the parser has to consider. Moot uses the maximum entropy supertagger from Clark and Curran’s English parsing work and discusses Clark’s earlier English supertagging results as a point of comparison. The French experiment borrows the tagging procedure from the WSJ parsing study.

Another point of comparison is earlier extraction of tree-adjoining grammars from the Penn Treebank. Moot invokes that study when he discusses the initial French grammar, whose inventory was large before the annotation was cleaned up. It is a comparison with a different kind of grammar extraction, where lexical descriptions are also substantially richer than ordinary word classes. The paper cites Automated Extraction of TAGs from the Penn Treebank.

Why the lexicon needs special attention

The method puts considerable grammatical information in lexical entries. An entry can specify a direction of combination, the kind of phrase required, and the category that remains once the phrase has combined with the word. A word can legitimately need different entries in different environments. The same extraction process can also create distinctions that reflect inconsistent source analyses or a mismatch between the source conventions and the target grammar. Both kinds of variation appear as ambiguity when the grammar is used to analyze another sentence.

The challenge is to make that ambiguity manageable without losing distinctions the grammar needs. A grammar that differentiates infinitival and past-participial complements can express a verb’s selection more precisely. A grammar that gives a different adverb category for every neighboring verb type may encode the same modifying behavior many times. The surface fact that both situations increase the number of categories gives little guidance about which differences to retain. The paper’s extraction and revision procedures address that question at the level of individual constructions.

Supertagging makes the consequences of those choices measurable. When a word has several entries, a locally informed predictor can rank them. A full parser can in principle use those rankings to limit the categories it considers at each position. For the present experiment, each occurrence also has a category supplied by the converted treebank. It is therefore possible to test how often the correct entry is ranked first and how much ambiguity must be retained to include it more often. That separates a concrete lexical test from the broader motivation of producing analyses suitable for interpretation.

The method, step by step

What a type says about a word

The starting point is a small set of basic grammatical types. The paper uses s for a sentence, np for a noun phrase, n for a noun and pp for a prepositional phrase. These are atomic types in the sense that the calculus can use each as a unit. A complex type combines such units, or other complex types, to describe an expression that still needs something before it can function as an expression of another category.

A / B

A is the result type and B is the required type. The slash / places the requirement to the right of the expression carrying the formula. When a suitable expression of type B is supplied on that side, the combination has type A. Because A can itself be complex, satisfying this requirement can leave another one to be met.

B \ A

B is again the required type and A is the result type. The backslash \ places the required expression to the left. In this notation the order of the letters changes with the direction of combination. The formula still describes an expression that takes a B and yields an A.

(np \ s) / np

np denotes a noun phrase and s denotes a sentence. The parentheses group np \ s as the result of the outer operation. The outer / says that the verb first takes a noun phrase to its right. The remaining \ says that the resulting expression then takes a noun phrase to its left. Completing both steps yields a sentence.

That is the paper’s basic transitive verb type. The object fills the rightward slot. The expression made up of the verb and its object then has the type of something that forms a sentence with a subject on its left. The category records the intermediate stage between taking the object and taking the subject. A tree with these types can show which operation applies at which branch.

np \ s

np denotes the required noun phrase and s denotes the sentence that results. The backslash places the noun phrase on the left. This is the paper’s basic intransitive verb type. It is also the category that remains after the transitive verb in the preceding example has taken its object.

An important consequence is that a category describes an expression’s contribution at its current point in the derivation. A whole verb phrase can have the same category as a verb that only needs a subject, even if the phrase already contains an object. In extraction, this allows the parent node and the lexical head to have related but different types. The parent states what the assembled expression can do. The head’s type states what it can do once its local dependents are supplied.

Why a grammatical derivation can support semantics

Moot ties this description to the relationship between proofs and λ-terms known as the Curry–Howard correspondence. The paper explains that type-logical derivations form a restricted part of the derivations available in intuitionistic logic. A grammatical derivation can therefore be read as a proof, and the operations in that proof can guide the composition of a semantic expression.

A λ-term, in this account, is a formal expression that can represent a function and how it applies to an argument. A lexicon for semantic interpretation would pair the word and its grammatical formula with an appropriate term. The syntactic proof supplies the composition pattern for those terms. In the transitive example, the proof distinguishes the combination with the object from the subsequent combination with the subject. The lexical meanings can follow the same order of composition.

This gives the extracted formulas a purpose beyond marking distinctions in a tagged corpus. Putting the object and subject requirements in the verb’s category provides a precise account of how the verb’s interpretation can be combined with theirs. The framework can be used for a representation in the style of Montague semantics or for a dynamic representation such as Discourse Representation Theory, which the paper mentions in connection with earlier English work. The account depends on having a suitable semantic entry for a word and type, as well as a derivation that shows how to combine it.

Where the extraction begins

The Paris 7 treebank contains newspaper material from Le Monde spanning December 1989 to January 1994. Moot uses the portion with functional annotations. It contains 12,440 sentences, 371,029 word tokens and 25,280 word types. A token is one occurrence in the corpus. A word type counts the form across occurrences. The same word form can have many tokens and receive several different grammatical formulas. These counts therefore describe the amount of input material, while formula counts describe the inventory produced from it.

The restriction to the functionally annotated portion is part of the method. A category such as noun phrase says what kind of constituent the annotation recognizes. A functional label gives evidence about what that constituent does in the sentence. Moot uses these labels to decide which phrases are arguments and which modify other expressions. The paper also identifies the functional annotation as a way to reduce the number of cases that have to be corrected by hand. The extraction rules use both kinds of linguistic annotation.

The procedure combines rules that operate on nodes with decisions about constructions that need special treatment. The rules transform the tree, determine the role of daughters at a branch, and assign formulas compatible with that branch. Taken across the corpus, the resulting leaf assignments form the lexicon. Inspection and revision then address problems visible across sentences or across entries for the same word. Finally, a supertagger is trained to recover the resulting categories from local context.

From Paris 7 annotations to lexical supertagging

The steps in order.

From Paris 7 annotations to lexical supertaggingStep 1: Select the trees with functional annotations1. Select the trees with functional annotationsStep 2: Binarize branches and insert required traces2. Binarize branches and insert required tracesStep 3: Identify heads, arguments and modifiers3. Identify heads, arguments and modifiersStep 4: Assign formulas from root to leaves4. Assign formulas from root to leavesStep 5: Collect word and formula pairs5. Collect word and formula pairsStep 6: Inspect and revise the extracted categories6. Inspect and revise the extracted categoriesStep 7: Build the compact grammar variant7. Build the compact grammar variantStep 8: Train and test the supertagger8. Train and test the supertagger

Reshaping a tree and identifying the roles

A tree is first binarized, meaning that the relevant branches are arranged as combinations of a left and a right daughter. This gives each local rule a pair of expressions to work with. If the source tree groups several dependents with a verb cluster at one level, the conversion has to choose which expression combines with which dependent and in what grouping. The resulting branch structure determines the succession of functional requirements carried by the head’s eventual type.

Some branches also need a place for an expression absent from the surface string. In the relative clause example, the conversion adds a trace for a missing noun phrase. The paper treats trace insertion as part of producing the structure to which the formula rules apply. This is a potentially consequential choice, because the trace determines which verb or verbal expression receives the missing argument in the derivation.

The next decision is whether a daughter is the head, an argument or a modifier. A head, also called a functor in the extraction rules, combines with an argument to form the larger expression. An argument fills one of the head’s requirements. A modifier acts on a constituent and gives back an expression of that constituent’s type. Here the direction of combination still matters. A left-side modifier acts on an expression to its right, and a right-side modifier acts on an expression to its left.

The decision is implemented with a lookup based on the source node labels and functional annotations. At a sentence node labelled SENT, a verb cluster labelled VN serves as head. A noun phrase or prepositional phrase in that environment can be identified as an argument. Functional annotations that mark noun-phrase or prepositional-phrase modifiers override that reading. The paper gives cette fois and en Espagne as examples of phrases that can receive these modifier functions. Source labels for adverbs or adverbial phrases also guide the assignment of a modifier role. Inside a noun phrase, the rules can treat adjectives and prepositional expressions as modifiers.

The functional annotation is important because the parent’s category and a daughter’s phrase label can each be compatible with several relations between them. An NP label describes a phrase, while the extraction needs to know whether that phrase fills a slot in the head’s type. Giving it a modifier role can preserve the type of the expression it acts on. Giving it an argument role adds a directional requirement to the head. The lookup makes that distinction before the formulas are propagated downwards.

Assigning formulas from the root to the words

Once the branches and roles have been prepared, a further lookup maps syntactic categories to basic formulas. The procedure assigns a type to the root and works downwards. At each branch it already knows the type assigned to the parent. It uses the daughter roles and their order to assign compatible formulas to both daughters. Repeating this decision reaches the leaves, where the formula computed for each word occurrence becomes a lexical entry.

A / A

A is the parent’s type. Both occurrences stand for the same type. The slash means that the left daughter expects an A on its right and that the combination is another A. For this case the right daughter receives A directly. The left daughter’s type follows from its role as the modifier and from its position.

A \ A

A is again the parent’s type, used for both the required expression and the result. The backslash directs the right daughter to an A on its left. The left daughter receives A, while the formula for the right daughter lets it modify that expression without changing its output type.

The two modifier cases express an invariant in the rules. The head side has the category needed by the parent, and the modifier side receives the ability to take an expression of that category and return the same category. A branch with an argument instead adds the argument’s category to the type of the functor.

B \ A

B is the type obtained for the left argument from the category lookup. A is the parent’s type. The backslash is part of the right daughter’s formula and says where it finds its argument. At this branch the left daughter receives B and the right daughter receives the displayed formula.

A / B

A is the parent’s type and B is the type obtained for the right argument. The slash is part of the left daughter’s type and says that the argument is to its right. Here the right daughter receives B, and the left daughter receives the displayed formula.

A type assigned at one branch becomes the known type when the procedure enters the next branch. This is how several levels of structure can accumulate in the formula assigned to a single word. For example, a node for a verbal expression that still needs a subject may carry the intransitive type discussed earlier. If the next branch divides that expression into a verb and a right-hand object, the verb gains a rightward noun-phrase requirement whose result is the already assigned verbal type. The transitive formula emerges from the succession of local decisions.

w − A

w stands for the word at a leaf and A for the formula propagated to that leaf. The dash represents the pairing of the form with the type in the lexicon. Across the corpus, another occurrence of the same w can have a different assigned A. The lexicon records the available pairings, while the converted trees preserve which occurrence received which formula.

What changes in the relative clause example

The paper illustrates the procedure with part of a sentence about fines imposed on other defendants. The relative clause modifies amendes, the noun for the fines. Inside that clause, the annotated material includes the relative pronoun que, the verb group containing avait and infligées, and a prepositional phrase introduced by aux. The original and converted trees show how a change in attachment and the introduction of a gap feed into the lexical analysis.

In the corpus analysis, the aux phrase is attached as an argument of the verb cluster. The converted analysis treats it as an argument of the past participle infligées. This is a structural decision with a lexical effect. In the converted tree, it is the participle’s formula that encodes the requirement met by the prepositional phrase. Moot describes this kind of reattachment as common in the conversion and argues that it gives a more natural lexicon. The revised attachment locates the requirement in an entry that can describe how the participle combines with its dependents.

The relative pronoun presents a different problem. The corpus identifies an object function inside the relative clause, while the completed relative expression modifies the noun amendes. The derivation needs to express both facts. The algorithm inserts an empty noun-phrase position, written ǫ, next to the rightmost verb in the first verbal group after the relativizer. The paper gives this as the automatic placement heuristic and says its result often needs a manual check.

s /₃₂ np

s stands for the sentence type and np for the noun-phrase type associated with the missing argument. The forward slash is the implication used here to express the remaining noun-phrase requirement. Its mode is 32, shown as the subscript. Moot’s informal reading is a sentence with a noun phrase missing somewhere inside it. The paper uses that reading without giving the full set of formal rules for the mode.

(n \ n) / (s /₃₂ np)

n denotes a noun, s a sentence and np a noun phrase. The parentheses separate the result of the outer operation from its required argument. The outer / says that que takes the incomplete sentence to its right. In that argument, /₃₂ indicates the missing noun phrase as before. The backslash in the result says that the resulting relative expression combines with a noun to its left. The two occurrences of n indicate that this combination gives back a noun.

The trace makes the missing object available in the derivation inside the clause. The category of que says how the clause with that missing object becomes a modifier of the noun. The converted figure links the trace and relativizer with a dotted line. Moot associates the line with the introduction rule for forward implication, written [/I] in the paper. In that notation / names the implication and I indicates introduction. At the level of the example, the relationship is between a particular missing argument in the clause and the clause’s resulting type as an expression with an open noun-phrase requirement.

The heuristic identifies a plausible place to anchor that analysis. The source functional label provides evidence about the role of que, while the insertion rule chooses a location in the verb structure for the trace. Moot points out that the work varies with the relativizer. He describes cases with qui as easier to handle and names dont and laquelle as cases that take more effort. This is one place where automatic conversion and linguistically informed checking meet within the analysis of a single construction.

Keeping distinctions between verb groups

Some formulas use more specific sentence types. The paper distinguishes a past-participial group and an infinitival group. These subtypes let a selecting verb specify which kind of verbal argument it can take. Here brackets write out the subtype labels attached to s.

(np \ s) / (np \ s[ppart])

np denotes a noun phrase. s denotes the general sentence type, and s[ppart] is its past-participial subtype. Each backslash indicates a noun-phrase requirement on the left of the relevant expression. The parentheses group the result and argument of the outer forward slash. That slash directs a form of avoir to take the specified past-participial verbal expression on its right. The result retains a leftward noun-phrase requirement.

(np \ s) / (np \ s[inf])

np again denotes a noun phrase and s denotes the general sentence type. s[inf] is the infinitival subtype, with inf inside brackets serving as the subtype label. The backslashes mark the leftward noun-phrase requirements, the parentheses group the compound types, and the outer slash indicates rightward selection. The paper assigns this pattern to forms of vouloir, which take the infinitival verbal expression.

The outer structure is parallel in these examples. Both verbs take a right-hand expression of a particular verbal type and return an expression that can combine with a noun phrase on the left. The subtype in the argument is where the distinction lies. This shows why reducing the number of categories calls for some judgment. A difference in the formula can encode a constraint that the grammar is meant to enforce.

Turning the first extraction into TLG

Moot calls the initial converted treebank TLG₀. Inspection showed that the rules could turn an inconsistency in the source trees into an unusual category. A consistent corpus analysis could also give rise to an awkward formula if its treatment of a construction differed from the analysis preferred in the type-logical grammar. These problems called for checking both the source of an assignment and the way the conversion encoded it.

Adverbs provide a worked example of a systematic revision. An adverb directly to the right of a verb can receive the general right-modifier formula given earlier. When the verb’s category supplies the value of A, every difference in that category can also appear in the adverb entry. This creates a number of adverb formulas tied to the types of adjacent expressions. The multimodal analysis gives the grammar a way to express the common modifying role with a more general type.

s \₁ s

s denotes a sentence on both sides of the backslash. The result is therefore a sentence, and the backslash marks a leftward requirement in the formula. The subscript 1 names the mode. In the paper’s account, that mode permits a controlled movement operation toward the head, allowing the sentence modifier to occur close to the verb.

A mode is an annotation on a logical operation that governs which structural steps are available in that part of the derivation. Its use here connects two aspects of the example. The adverb receives a category expressing sentence modification, and the mode accounts for a surface position near the head. Applying this analysis across the relevant entries eliminates a source of variation that would otherwise depend on the exact type of each nearby verb. The paper presents the result as a use of the expressive resources of the grammar itself.

The rest of the cleanup also involves looking at the lexicon from several directions. Moot reviews entries associated with frequent words and examines entries grouped by part of speech. He also starts from individual formulas and checks which words have received them. Starting with a word can expose an implausible member of that word’s category inventory. Starting with a formula can expose an implausible member of the set of words assigned that type. In either case, a suspect assignment is checked and corrected where needed. Part-of-speech groups provide another way to inspect related cases in the part-of-speech tagging information.

The resulting TLG treebank contains the revised annotations. Its grammar still carries many distinctions in lexical entries, including a large set of conjunction categories. A conjunction may participate in different kinds of combinations depending on the expressions it coordinates. TLG puts this information into the categories predicted by the supertagger. The paper names et, ou and some uses of the comma as items treated this way. Reviewing conjunction formulas reduces their diversity while preserving the choice to encode coordination lexically.

What the compact version simplifies

Moot also constructs TLGc, a compact grammar obtained by applying further changes automatically to TLG. The motivation comes from ways CCGbank keeps its lexical inventory smaller. In the English resource, the parser handles conjunction information. The paper also singles out category changes licensed by rules that it calls non-logical axioms. They allow an expression with one grammatical type to serve in a use that would otherwise require a separate lexical type. TLGc tests the effect of adopting simplifications along these lines in the French setting.

The paper explains the idea with lié in a noun phrase about risk associated with international trade. In the noun phrase, the participle selects a prepositional phrase and the completed expression modifies the noun. The paper displays the modifier type alongside the participle’s usual verbal type. The notation below uses brackets for the subscripts printed in those formulas.

(n \ n) / pp[a]

n stands for a noun. The backslash says that the completed modifier takes a noun on its left and returns a noun. pp denotes a prepositional phrase, and a is the subscript attached to that phrase type in the example. The paper gives no separate definition of the subscript there. The parentheses group the noun-modifier result, and the outer slash directs the expression to take the prepositional phrase on its right.

(np \ s[ppart]) / pp[a]

np denotes a noun phrase. s[ppart] denotes the past-participial sentence subtype, with ppart as its subtype label. The backslash introduces a noun-phrase requirement on the left. pp[a] is the prepositional phrase type with the same subscript as in the previous formula. The parentheses group the past-participial result, and the outer slash again marks the prepositional phrase as a right-hand argument.

The immediate prepositional requirement is the same in both entries. What changes is the type of the expression that results after the requirement is filled. One result can modify a noun. The other is a participial verbal expression that combines with a noun phrase. A category-changing rule gives the grammar a way to account for the related uses while reducing what must be distinguished as lexical targets. The paper also mentions a rule allowing an n, the noun type, to serve as an np, the noun-phrase type, in a phrase that lacks a determiner.

This kind of simplification changes the division of work between assigning lexical types and combining expressions later. The original TLG approach can place the relevant contextual distinction directly in the supertag. A compact approach can make the distinction available through a grammatical rule. The experiment compares how recoverable the resulting lexical assignments are. Compatibility with later stages depends on those stages carrying out the operations that the compact categories leave to them.

How the tagger gets its evidence

A supertagger predicts a lexical formula for an occurrence rather than only assigning a broad word class. Its evidence in this experiment is local. Along with the two preceding supertags, it sees the words and their part-of-speech tags within a two-word window centered on the current word. Nearby words and word classes give clues to the current word’s use. Earlier supertags give clues expressed directly in the grammar’s own vocabulary. None of these clues requires a full derivation of the current sentence as a feature.

Training uses the converted annotations as examples of which category belongs to which occurrence. Moot uses Clark and Curran’s maximum entropy supertagger, with their adaptation of L-BFGS for fitting its parameters. At test time the classifier scores the candidate formulas with probabilities. The paper evaluates a choice that keeps the best candidate and other settings that keep a set of candidates close enough to the best. This lets the same evaluation address immediate prediction and the amount of lexical choice that can be passed to a later parser.

p(t) > β × p_max

p(t) is the probability assigned to candidate supertag t at the current word, with the parentheses indicating which candidate the probability refers to. p_max denotes the highest candidate probability at that position. β is the threshold multiplier, × indicates multiplication, and > means the candidate must have a probability greater than the threshold. The test with more than one possible output uses this rule. The setting reported at β equal to 1.0 keeps the best tag on its own.

The cutoff is relative to the leading probability at the individual word. At a lower setting, a candidate can be further behind the leader and still be retained. The number of candidates can therefore vary from word to word. A confidently leading type may leave few useful competitors, while a position with several closely scored types may pass several along. The experiment summarizes these outcomes with the percentage of words whose candidate set includes the reference type and the average size of that set.

Experiments and results

What goes into the split

The evaluation uses the functionally annotated Paris 7 sentences that went through the conversion. The training set contains 11.196 sentences and 334.525 words. The test set contains 1.244 sentences and 36.504 words. The training portion supplies examples for fitting the supertagger. The test portion measures how frequently it recovers the categories assigned by the relevant version of the converted treebank. The units in the split are sentences and words, while the results report the success of predictions at word occurrences.

The versions provide the main comparison. TLG₀ is the initial extraction, before the improvements to the grammar. TLG is the revised treebank after checks, corrections and representational changes. TLGc is derived from TLG by the further automatic simplification. The character of the prediction target changes between versions. In particular, when a distinction is moved out of the lexicon, a tagger no longer has to predict that distinction as a separate lexical type. The test measures performance within each version’s annotation scheme.

The raw corpus statistics and the train–test sizes describe different aspects of the data. The corpus statistics identify the part of Paris 7 to which the conversion applies. The sizes of the split show how much of that converted material is available for fitting the tagger and how much is used to assess it. The evaluation keeps the sentence as the unit of the split, so the word being tested occurs with its surrounding sentence context. That context matters because the tagger bases its choice partly on nearby words and tags.

Scoring a single tag and a candidate set

At the single-choice setting, the supertagger’s output is the highest-ranked formula. The score is the percentage of test occurrences for which that formula is the annotated one. In the multi-tag settings, the score is the percentage for which the annotated formula is somewhere in the retained set. Moot also reports the average number of retained supertags per word, labelled #/w in the results. The candidate-set percentage and the average size together describe a tradeoff. A setting that lets through more categories can include the reference more frequently while passing more lexical alternatives to later analysis.

The comparison involves word and part-of-speech information as input to the tagging task. The target considered correct is a particular type-logical category on a test occurrence. A candidate can be a plausible category for other uses of the same word and still fail the reference check in this context. When several tags are retained, the evaluation counts the occurrence as covered if one of them matches that reference. It then counts all retained candidates toward the average number per word, including competitors that fail to match the annotation.

These measurements answer different practical questions. Single-choice accuracy indicates how often the local evidence and scoring procedure put the annotated category first. Candidate-set coverage indicates how often the procedure leaves that category available for a later decision. Its placement within a retained set is secondary for the reported coverage metric. A category that just qualifies for retention gives the same coverage outcome as one ranked first, though the alternatives a parser would have to consider could differ considerably.

The single-choice comparison

The initial extraction gives single-choice precision of 79.4% on TLG₀. For the revised grammar, the one-tag setting yields 90.5% on TLG, with 1.0 tags per word. The compact version gives 93.5% on TLGc, also with 1.0 tags per word. The latter settings appear under β equal to 1.0 in the paper. The initial result comes from the discussion accompanying the results, which reports it as the supertagging precision for the grammar without the improvements.

Single-choice supertag accuracy on the Paris 7 test split

The revised grammar yields more correct first choices, and the compact version scores highest.

Single-choice supertag accuracy on the Paris 7 test splitTLG₀ initial extraction: 79.4TLG₀ initial extraction79.4TLG revised grammar: 90.5TLG revised grammar90.5TLGc compact grammar (this paper): 93.5TLGc compact grammar (this paper)93.5
The numbers
System or settingaccuracy %
TLG₀ initial extraction79.4
TLG revised grammar90.5
TLGc compact grammar (this paper)93.5

The single-choice scores provide the cleanest comparison of ranking within each annotation scheme. The output size is fixed, so the better scores come from more occurrences for which the reference category has the highest probability. This still reflects both the tagger and the target inventory. The raw and revised versions differ in how the source analyses have been rendered as categories. The revised and compact versions differ in where certain grammatical distinctions are made. A higher single-choice score can therefore indicate that the new targets are easier to recover from local evidence.

The paper describes the initial extraction’s precision and its inventory of supertags as in line with the published results on automatically extracted tree-adjoining grammars. That earlier study supplies context for the raw run. It uses a different grammar and corpus. The within-corpus comparison with TLG is the evidence about what happens when this extraction is followed by the particular cleanup undertaken for the French grammar.

How many alternatives are needed

The multi-tag results compare TLG and TLGc under the same threshold rule. At β equal to 0.1, TLG includes the reference tag on 96.4% of test occurrences and retains 2.7 tags per word on average. At that setting, TLGc includes the reference on 97.5% and retains 2.5 tags per word. Both grammars make the intended category available for more words when the choice is relaxed from the highest-scoring tag to a candidate set.

At β equal to 0.05, TLG reaches 97.3% coverage with 3.1 tags per word. TLGc reaches 98.0% coverage with 2.9 tags per word. At the loosest reported threshold, 0.01, TLG reaches 98.4% with 4.7 tags per word and TLGc reaches 98.8% with 3.8 tags per word. Each coverage figure concerns the presence of the reference category in a test word’s predicted set. Each size figure is an average over test words at that setting.

Candidate sets containing the reference supertag on the Paris 7 test split at β = 0.01

The compact grammar retains the reference category more often at the loosest tested threshold.

Candidate sets containing the reference supertag on the Paris 7 test split at β = 0.01TLG revised grammar: 98.4TLG revised grammar98.4TLGc compact grammar (this paper): 98.8TLGc compact grammar (this paper)98.8
The numbers
System or settingcoverage %
TLG revised grammar98.4
TLGc compact grammar (this paper)98.8

Average candidate count on the Paris 7 test split at β = 0.01

The compact grammar passes fewer candidate categories per word at the loosest tested threshold.

Average candidate count on the Paris 7 test split at β = 0.01TLG revised grammar: 4.7TLG revised grammar4.7TLGc compact grammar (this paper): 3.8TLGc compact grammar (this paper)3.8
The numbers
System or settingsupertags per word
TLG revised grammar4.7
TLGc compact grammar (this paper)3.8

Across the multi-tag settings, lowering the threshold raises coverage and increases the average number of candidates for each grammar. The comparison between grammars goes in a different direction. At each displayed multi-tag setting, TLGc retains the reference more often while returning fewer categories per word on average. The compact representation therefore improves both reported lexical measurements at those shared cutoffs. An end-to-end system would also have to account for how its parser handles distinctions assigned to rules in that representation.

The mean candidate count gives a rough view of how many lexical decisions have been deferred. It is a word-level average. A sentence with several ambiguous positions presents a different parsing situation from a sentence with a single ambiguous position, even if they contribute similar numbers to the average. The experiment reports the quantity of retained alternatives at the lexical stage. It leaves their distribution across sentences and their effect on the parser to later evaluation.

The comparison with English

Moot regards the results as comparable to the published English supertagging figures he discusses. He also observes that the French experiment has somewhat more tags per word at the lower threshold settings. This caveat matters because coverage alone gives an incomplete picture of a candidate-set prediction. A similar percentage of words with the correct tag available can be reached while leaving a different number of candidates for subsequent processing.

The comparison uses published work as a benchmark for plausibility. French TLG and the English grammar representations differ, and the paper calls for care in interpreting figures that cross both language and formalism. The direct experiment is the prediction of Paris 7 categories in the French split. It supplies evidence that those detailed categories can frequently be recovered with local information and that a multi-tag setting can make more of them available for later decisions at a measurable cost in ambiguity.

What the ablations show

The combined effect of revising the extraction

The paper gives comparisons between grammar versions and among tagging thresholds. It does not isolate individual changes in a component-by-component ablation, so the analyses support conclusions about the revision package, the further compaction and the threshold policy. Each comparison changes a different part of the experiment.

TLG₀ provides the version with none of the improvements described in the paper’s cleanup stage. It has 5.240 distinct formulas assigned at least once. After revision, TLG has 817 distinct formulas. The conjunction inventory is one example of the contribution of the cleanup. It falls from 606 categories in TLG₀ to 188 in TLG. The conjunction counts describe formulas for that construction. The larger inventory counts describe all distinct lexical formulas in the respective treebanks.

Together with the single-choice results, these figures show how much the prediction task changes when the categories are edited. The initial extraction produces many more categories and gives a lower single-choice score. TLG’s revised inventory is smaller and more recoverable. Both the removal of suspect assignments and the use of a common analysis for certain adverbs are part of that change. The scores provide the combined effect of those decisions.

The adverb example explains one mechanism by which the size can fall. A modifier formula built from a neighboring head’s type imports every distinction in that head type. A category using sentence modification and mode 1 can cover several of those contexts. The inventory of conjunction formulas gives a separate indication that cleanup reaches beyond adverbs. Neither example comes with a tagging score specific to the construction. This limits what can be assigned to each change within the package.

Another mechanism concerns consistency across occurrences. If comparable structures get different categories because of differences in the source analyses, the tagger can encounter different targets in similar contexts. Reviewing the lexical assignments and correcting them can make the patterns easier to learn. That is a plausible reading of why some corrections help, while the experiment measures the result of making the full set of changes. It gives no numerical division of that result between greater consistency and a smaller set of permissible categories.

What the compact grammar changes

The TLG versus TLGc comparison starts from the revised annotations. It then changes the representation through the set of simplifications inspired by CCGbank. This asks whether the cleanup has already reached the point where compacting the lexical target further brings little benefit to tagging. The reported results show additional gains in single-choice accuracy and in reference coverage at the shared multi-tag cutoffs. For the latter settings, the average candidate count also falls.

Because the target formulas change, the comparison is evidence about how suitable each representation is for this tagging setup. A construction that requires a separate lexical formula in TLG may have a more general lexical category in TLGc, with a later rule accounting for the contextual use. The compact tagger can correctly recover its annotation more often while the system still has to resolve the underlying grammatical question somewhere in the analysis. This is especially important for interpreting the shift of work in examples involving conjunctions or category changes.

The paper describes several motivations for simplification but gives aggregate results for the compact grammar. It does not report separate scores for conjunction handling, the treatment of participles or the treatment of noun phrases without determiners. It is therefore possible to say that the compact version is easier to supertag at the tested settings. The results leave open which simplification contributes most and how the changes interact.

What the threshold sweep isolates

The threshold sweep changes the output selection within a grammar. The rules defining the lexical types and the trained ranking stay in place. A change in β lets more or fewer of the scored candidates pass. This comparison provides a more direct view of where the extra coverage comes from. Some reference types that fail to rank first already have enough probability to be retained once the acceptance rule is relaxed.

The accompanying candidate counts make the cost visible. The lower thresholds admit additional alternatives beyond those needed to recover the reference at a given word. The reported average incorporates all of them. The results show that the stronger coverage is available by preserving candidates the classifier has already considered. They leave the subsequent choice among those candidates to a parser or another decision procedure.

The threshold analysis also clarifies why the compact comparison has to include both measurements. If a grammar obtained higher coverage by returning many more tags at a shared cutoff, the consequences for later search would require careful attention. TLGc obtains higher coverage with a lower mean number of candidates at the reported multi-tag thresholds. That finding concerns the lexical output for the revised representation and supplies a concrete starting point for the parser work contemplated in the conclusion.

Limitations

Limits the author states

Moot restricts the extraction to the Paris 7 material with functional annotation. These labels help determine which phrases fill argument slots and which modify other expressions. The author gives the resulting reduction in manual corrections as a reason for the restriction. The paper’s corpus coverage therefore applies to that part of the treebank and starts with the information encoded there. The behavior of the same process with phrase categories alone is outside the reported evaluation.

Some construction-specific decisions remain hard to automate. The paper explicitly says the proposed placement of relative traces often needs checking. The range of effort across relative pronouns is another acknowledged difference. In these cases the method can supply a first analysis, with manual examination playing a role in deciding whether the analysis is suitable. The paper also acknowledges that the revised TLG treebank is likely to contain errors. Its claim for the revision is a balance between the size of the lexicon and the adequacy of the descriptions.

Moot qualifies the comparison with English because the experiments involve different languages and grammatical formalisms. His additional observation about the candidate counts at loose thresholds provides a specific reason to read the results alongside their conditions. The higher-coverage settings can yield similar tagging performance in broad terms while giving a subsequent parser more alternatives per word. The paper uses that comparison to situate the French results within existing work.

The conclusion places parser evaluation and a broad semantic lexicon among continuing work. It reports promising early experience with parsing strategies and progress on the lexicon. It does not give a full parsing experiment or a semantic evaluation as part of the reported results. Those tasks require using the lexical categories in derivations and, for semantic work, providing the lexical meanings that the derivations will compose.

Limits that follow from the setup

The test measures agreement with the categories in the converted and, where applicable, revised treebank. That is a relevant target for assessing a supertagger intended to work with the grammar. Independent assessment of whether each annotation captures the right grammatical analysis would require different evidence. A test prediction can match its treebank reference while inheriting a problem in the annotation. Conversely, the reference check has no mechanism to credit an alternative grammatical analysis at a position when it differs from the assigned formula.

The corpus is newspaper material within the date range covered by Paris 7. The reported split establishes performance within the chosen portion of that resource. The paper gives no corresponding outcome for a different genre or source. Wide coverage here describes the ambition and corpus-based scope of the grammar, while the experiment establishes how well local features recover types on the specified split. No separate breakdown shows how the tagger performs on rare formulas, unfamiliar word forms or individual constructions such as relative clauses.

The candidate-set evaluation applies at each word. A complete derivation needs choices that can combine across the sentence, including appropriate attachments and treatment of missing arguments. Having the annotated type among the candidates at a particular word is a useful prerequisite for reproducing that local part of the analysis. The coverage statistic leaves open how often the parser can make all of the necessary choices together. The average candidate count likewise leaves open how the alternatives affect parsing time or the number of complete analyses.

The comparison between grammar versions also changes what a correct lexical prediction represents. TLGc can leave some distinctions to rules, where TLG expresses them in separate lexical formulas. The experiment establishes better tagging figures for the compact version under its own annotation scheme. Assessing the full impact on syntactic derivations or semantic output would require testing the rule-based operations alongside the resulting lexical predictions. The paper describes the relevant tradeoff at the lexical stage without measuring that later work.

Finally, the amount of manual intervention is described through the checking process, representative constructions and the formula inventories before and after revision. There is no reported measure of the effort needed for each correction or of how much checking a transfer to another corpus would require. The experiments show what the semi-automated process achieved on Paris 7. They do not give a cost estimate for reproducing the cleanup with different annotations.

What came after

The paper identifies parser development and semantic interpretation as the next stages of the project. Moot reports that work on parsing strategies was under way and that early results looked promising. That work would assess the supertagger in its intended role, supplying lexical alternatives to a procedure that has to build a derivation for a whole sentence. The tagging results provide candidate sets at several thresholds for that later evaluation, with the average set size showing how much lexical ambiguity each setting leaves to resolve.

The semantic lexicon was also in development. Its role was to associate lexical meanings with the word and type pairings so that a derivation could support a composed interpretation. The paper announced plans to make the lexicon and the trained part-of-speech and supertagging resources available under the LGPL-LR license. These are plans and progress reports from the paper’s conclusion. Subsequent publications, completed releases and downstream evaluation results are unconfirmed.

Cite

Cite as Richard Moot. 2010. Semi-automated Extraction of a Wide-Coverage Type-Logical Grammar for French. Actes de la 17e conférence sur le Traitement Automatique des Langues Naturelles. Articles courts.

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

@inproceedings{richard2010semi,
  title = {{Semi-automated Extraction of a Wide-Coverage Type-Logical Grammar for French}},
  author = {Richard Moot},
  booktitle = {Actes de la 17e conférence sur le Traitement Automatique des Langues Naturelles. Articles courts},
  year = {2010},
  url = {https://aclanthology.org/2010.jeptalnrecital-court.32/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/moot-2010-semi-automated-extraction-wide-coverage/