Elamur Research

YAC - A Recursive Chunker for Unrestricted German Text

Paper · 2002 · Hannah Kermes and Stefan Evert

Summary

A useful analysis of German text has to find phrases whose most important word can be separated from the words that introduce it by several layers of modification. In the paper’s example about flames placed above the apostles’ heads, the noun for flames comes after a modifier that contains a preposition, a noun phrase naming the heads, and a further noun phrase naming the apostles. A procedure that marks only short, unnested groups leaves much of that structure for a later information extraction query to reconstruct. Hannah Kermes and Stefan Evert developed YAC to recover such structures directly, so that researchers could use the resulting analyses to study how words and phrases occur together.

YAC builds continuous phrases inside clauses. It recognizes noun, adjective, adverbial and prepositional phrases, as well as verbal complexes. A symbolic grammar assembles these units in repeated passes. Early rules identify expressions with distinctive forms, such as dates, names and quoted groups. General rules then combine words and previously recognized phrases. Where a rule deliberately proposes an uncertain grouping, a later check can accept it or reduce it to a smaller phrase. The resulting analysis can include embedding on either side of a head. YAC limits ambiguous attachments, especially those involving a prepositional phrase after a noun, and leaves clause structure outside its scope.

The output also records information that an extraction query can use directly. A phrase can carry the dictionary form of its head, the combinations of case, gender and number compatible with its members, and properties such as whether a noun phrase is temporal or enclosed in quotation marks. Keeping all compatible agreement readings lets YAC use grammatical evidence without having to choose a single reading when the evidence leaves several open.

The authors evaluated noun phrases against a reference derived from the NEGRA corpus of German newspaper text. With manually corrected word-category tags, YAC obtained precision of 84.74% and recall of 82.36%. With automatic tagging, it obtained precision of 78.90% and recall of 78.99%. The comparison shows how the noun phrase results changed when the system received the kind of input available in automatic use. The authors also found that adapting NEGRA’s full trees to YAC’s definition of a phrase introduced uncertainties into the reference. The reported scores therefore describe agreement with that constructed reference on newspaper text.

Deep dive: YAC - A Recursive Chunker for Unrestricted German Text

YAC finds nested phrases in German text, records their heads and agreement, and measures noun phrase recognition on newspaper text. · about 34 minutes to read

The problem and its context

Why recognition starts with the needs of extraction

The paper treats parsing as a way to prepare a corpus for linguistic investigation. A researcher looking for adjective–noun combinations, for example, needs to know which adjective belongs to a noun phrase and which noun supplies the phrase’s head. A search based on neighboring words can miss the connection when a modifier is long or can return a pair of words that happen to occur close together. An analysis that records phrase boundaries and internal structure makes a more specific search possible. The intended product is a corpus that can be queried repeatedly for lexical and grammatical evidence.

The head is the word that supplies the central grammatical identity of a phrase. In the paper’s example about an understandable language, the noun for language serves as the head of the noun phrase. The adjective also heads a phrase of its own. When the adjective is expanded by a phrase meaning for the user, the noun phrase still has the same kind of organization. The word for language is still the noun head, and the enlarged adjective phrase still modifies it. Recognizing both levels preserves the relation a lexical query would want to examine even when the distance between individual words changes.

The authors use the term chunk for the units their grammar identifies. A chunk covers an uninterrupted stretch of the sentence and can contain other chunks. Its analysis can stop below the level of a complete constituent in a full sentence tree. For instance, YAC can identify a noun phrase and a nearby prepositional phrase while leaving their attachment open. At the top level, the largest recognized structures connect directly to the sentence. They carry phrase categories and internal relationships, while intermediate sentence-level structures and functions fall outside this representation.

This choice separates the usefulness of an analysis from how much of a sentence it explains. A researcher interested in which adjectives occur with which nouns can use analyses that recognize noun phrases reliably while leaving many relationships among those phrases open. Other queries need additional evidence. The authors distinguish a comparatively direct extraction of adjective–noun combinations from a query for combinations of a verb and its object, where sentence structure has to be taken into account. YAC’s output is designed to support that further work by making the phrase-level material accessible.

Where simple chunks leave work undone

The authors discuss Steve Abney’s approach to chunking in terms of a small core ending at the head of a constituent, with embedding excluded from the chunk itself. They also point to his use of successive finite-state stages for partial analysis of English. A finite-state rule describes a sequence of local patterns, and a cascade lets later stages act on material found by earlier ones. The shared aim is to build usable partial structure. The difference in the German task concerns how far each unit has to extend and how much internal structure the downstream work needs.

In the authors’ account, two prominent issues for English are deciding where prepositional phrases attach and interpreting coordination when some material is omitted. They argue that chunks in Abney’s sense can supply useful pieces for treating those issues later. Their German example illustrates a different problem. Even a phrase with an identifiable noun head and an apparently ordinary preposition may have several levels of useful structure before the head. Leaving those levels to an extraction query can require revising the initial segmentation as well as joining its pieces.

Consider the example about flames. A short-chunk analysis can identify the phrase for the heads, put the words for the apostles in another noun chunk, and group the participial adjective meaning set with the final noun for flames. An early adjective meaning small may be treated as part of a headless nominal group if the grammar allows such a group. The opening preposition may then be grouped with that adjective. These are plausible products of rules confined to short local sequences, yet a query working with them has several different repairs to make.

First, the words for the apostles have to be recognized as a genitive modifier of the heads. The enlarged nominal group then has to become the complement of the preposition meaning above. The participial adjective must be separated from the final noun and associated with that prepositional group. Only then can the full noun phrase headed by flames be recognized inside the opening prepositional phrase. A broad query that simply takes successive nominal and prepositional chunks could recover a stretch of roughly the right shape, but it would still leave the relationships inside the stretch unclear. The authors use the example to motivate building those relationships during chunking.

The same construction explains why the paper distinguishes embedding before a head from embedding after it. The phrase for the heads appears within the modifier preceding the noun for flames. Within that phrase, the words for the apostles follow the noun they modify. A useful grammar must be able to build both kinds of structure inside a larger unit. The authors give post-head embedding a narrower scope because many cases offer weaker evidence for attachment. Genitive modifiers and certain names can be admitted under restrictions. Prepositional phrases following a noun generally remain independent.

The alternatives the authors considered

The authors examine richer grammatical frameworks, including LFG and HPSG, because their representations can express hierarchy and account for competing attachments. They associate those advantages with practical costs for corpus work. Such grammars can require extensive lexical information, and interactions among rules can complicate development and adaptation. They may also leave several analyses for a sentence. A collection of competing analyses is harder to store and search over a large corpus, and choosing among them introduces another task. YAC takes a more restricted approach by reserving structural decisions for cases its rules can handle with sufficient confidence.

They also consider the context-free grammar. Its rules can describe a phrase in terms of immediate parts, so a noun phrase rule can refer to an adjective phrase without spelling out every internal form of that adjective phrase. The paper sees this modularity as an advantage. The difficulty the authors identify in many context-free implementations is expressing agreement and special lexical cases economically. A grammar may need many explicit variants to describe which combinations are possible, plus additional rules to cope with text that does not fit the ordinary patterns.

Probabilistic context-free grammars offer another route. The paper describes how they can learn evidence about which words occur together and which complements particular words take. That evidence can help resolve ambiguities, and its acquisition reduces the need to provide each lexical entry by hand. The authors also identify costs in parsing speed and working memory and argue that uncommon constructions can lose out to more frequent analyses. Their particular concern about agreement is that a parser that commits to one reading may have to guess when the morphological evidence supports several.

These are design considerations presented by the authors, rather than comparisons of systems evaluated on the same corpus. They explain why YAC combines a grammar of local patterns with recurring passes, explicit agreement checks and selective attachment rules. The approach also fits the authors’ choice of the IMS Corpus Workbench. They wanted the grammar to operate on a corpus whose annotations could then be searched in the same environment. Phrase recognition and extraction could therefore share both a representation and a query language.

The method, step by step

The information available before chunking

YAC begins with text divided into tokens and annotated with word categories. Tokenization establishes the units on which the rules operate. Part-of-speech tagging assigns categories such as proper name, common noun or adjective to those units. The authors use the Stuttgart–Tübingen tagset, abbreviated STTS. Their automatic workflow uses TreeTagger for tokenization and tagging. They add dictionary forms and agreement information using IMSLex, which supplies morphology for the German grammar.

A lemma is the dictionary form associated with a word. A token’s written form can indicate inflection, whereas its lemma allows a query to group forms of the same word. A phrase’s head lemma extends that convenience to the phrase level. A query can ask about phrases headed by a given noun without finding the noun again inside every phrase or treating each inflected surface form as a separate lexical item.

The morphology also supplies the possible values of case, gender and number. The grammar uses them to check that a determiner, a noun and any relevant modifiers can belong to the same phrase. It keeps ambiguity where an inflected form supports several readings. This matters because a reading that is indeterminate at one token can become determinate once the token is combined with others. Conversely, the full phrase may still support several readings after all available constraints are applied.

The authors describe a hand-written grammar. They explain the stages through which its rules and feature annotations pass, and they describe how a rule can be changed and inspected. TreeTagger has its own training setup, which the paper specifies for the automatic evaluation. The YAC rules themselves are applied without a fitting stage on the NEGRA trees. The reference derived from those trees is used to assess the noun phrases after recognition.

How YAC builds a phrase analysis

The steps in order.

How YAC builds a phrase analysisStep 1: Tokenize text and add word categories1. Tokenize text and add word categoriesStep 2: Add lemmas and possible agreement readings2. Add lemmas and possible agreement readingsStep 3: Recognize expressions with special lexical or structural cues3. Recognize expressions with special lexical or structural cuesStep 4: Repeatedly combine words and previously recognized chunks4. Repeatedly combine words and previously recognized chunksStep 5: Check tentative groupings in their enclosing phrases5. Check tentative groupings in their enclosing phrasesStep 6: Recover nested phrases from recorded stages6. Recover nested phrases from recorded stagesStep 7: Export phrase structure and features for querying7. Export phrase structure and features for querying

How the query language expresses grammar rules

The Corpus Query Processor, abbreviated CQP, is the part of the IMS Corpus Workbench that evaluates the grammar’s queries. A regular expression specifies a pattern over a sequence. Here the elements of the sequence are corpus tokens and annotations, so a pattern can look for a determiner followed by an adjective and a noun, or for a more specific lexical or structural configuration. Conditions can examine the token itself, values assigned to it, or its membership in a list supplied for a particular rule. Logical combinations allow a rule to require several properties or admit alternative ways of satisfying a condition.

A query can also impose constraints across positions. A rule that finds a determiner and a head noun can compare the relevant information about those elements even when a complex modifier intervenes. That distinction is central to the design. The sequence pattern describes where potential constituents may occur. The agreement constraints determine whether the relevant grammatical readings can coexist within that proposed grouping.

Macros let the authors name recurring pieces of queries and use them in larger ones. A macro expands into text, with up to 10 arguments available for substitution. Its body can use other macros as long as the invocations are non-recursive. The recursion in the resulting syntax comes from the repeated application of rules to previously recognized phrases. In other words, a noun phrase can contain a noun phrase because an earlier pass has already made the inner phrase available to the next pass.

The authors chose a framework that indexes the annotations separately. The Corpus Workbench builds a lexicon and an index for each annotation level, so searches can use the representation appropriate to what they seek. The paper distinguishes the disk requirements of surface forms and lexical annotations, at roughly 30 bits/token after compression, from those of categorical annotations, at 10 bits/token or less. It describes a corpus capacity of roughly 300 million words, conditional on the number and kind of annotations. These figures characterize the storage environment used to motivate the design.

CQP accesses the disk files through memory mapping. In the authors’ account, this helps make repeated passes feasible because the query processor can restart and use intermediate annotations without first reading the whole corpus into memory. The same arrangement supports grammar development. A developer can interrupt the process, try a changed rule against the current annotations in an interactive session, examine the matches and then continue. Intermediate state is useful both to the running grammar and to someone trying to understand why a rule behaves as it does.

The underlying structural annotation in the Corpus Workbench represents regions. The paper describes these regions as flat and non-overlapping at a given structural level, a design originally suited to items such as sentences, paragraphs and documents. A completed recursive phrase tree requires a separate assembly step. During chunking, individual passes can leave usable annotations in the corpus. The end of the pipeline brings together records from the passes to expose the hierarchy those passes built incrementally.

Agreement as an intersection of readings

An agreement annotation stores alternatives as combinations. A possible case, gender and number belong together in one reading of an element. The grammar checks complete readings, since a case from one possibility may be incompatible with a gender and number drawn from a different possibility. A phrase inherits the combinations shared by the members required to agree. The set operation described by the paper can be written as follows.

A(C) = ⋂ᵢ∈ᴵ A(eᵢ)

Here C is the candidate chunk and A associates a chunk or element with its set of possible agreement readings. I is the set of indices for the elements required to agree, i is an index in that set, and eᵢ is the corresponding element. The symbol ∈ indicates membership in I, and ⋂ takes the intersection over those elements. The equals sign identifies that common set as the chunk’s agreement information. Each retained reading is a combination of case, gender and number. If the common set is empty, the proposed chunk fails the agreement test.

The required elements can be words or phrases. For a noun phrase, the paper gives the head and determiner as typical word-level participants and an adjective phrase as a possible phrase-level participant. Treating a modifier as a whole lets its previously established agreement possibilities be used again without revisiting all the words inside it. An adjective phrase with its own prepositional complement can carry the readings relevant to its role as an adjective phrase while keeping the complement’s own agreement within that complement.

An invariant adjective provides an exception to the ordinary check. The paper gives the German color word lila as an example. A feature on the adjective phrase records that its head is invariant, allowing the noun phrase rule to admit it without imposing the same agreement requirement used for an inflected modifier. The lexical annotation consequently changes the application of a grammatical condition. The grammar can keep the general condition while handling a recognizable class of exceptions.

The query language can test for a possible reading and also for a reading determined uniquely for a particular feature. An expression whose agreement permits genitive case poses a different question from an expression whose agreement identifies it as genitive. That distinction is useful in a system that builds with partially resolved information. A rule can refer to the degree of certainty its construction calls for. The paper explains that CQP supplies both types of test, while its presentation of the grammar focuses on the constructions the tests support.

The first level recognizes special expressions

At the first level, YAC introduces much of the lexical information later rules will use and recognizes units with distinctive internal structures. Many of these units have patterns that are easiest to describe by themselves. The authors discuss names and titles, dates, expressions for large numbers, and sequences enclosed by brackets or quotation marks. These units can then participate in ordinary phrase rules as already recognized chunks.

Different rules start from different kinds of evidence. A proper-name tag can trigger an analysis involving a person’s name or another named expression. A list can supply the lexical cues needed to recognize a month or an expression involving a large numerical denomination. Punctuation can mark the extent of a quoted title or a bracketed expression. Such a textual cue can remain informative even when a word category assigned inside the expression is misleading.

For a date built from a month and year, the specialized date rule can establish the group before a later noun phrase rule needs to use it. The same principle applies to numerical expressions made up of several words. The authors assign properties to the units they recognize, so a larger rule or a subsequent corpus query can distinguish a date from another nominal expression. The property concerns the interpretation of the complete sequence. Taking it from the last token alone would lose the evidence that makes the sequence a date.

Names and quoted expressions illustrate why a special chunk can also help the ordinary grammar. A sequence that functions as a single named object may contain several tokens with different word tags. Once the special rule gives the sequence an extent and a head, a later noun phrase rule can use it where an ordinary head noun would occur. The grammar can confine the details of identifying the name or quotation to the specialized rule and give the general rule a uniform nominal unit to work with.

Lexical and structural properties are part of the analysis throughout the pipeline. Some can be inherited from the head, as with a temporal noun or an adjective derived from a verb. Others describe the whole span, as with a date or a phrase surrounded by quotation marks. The paper also distinguishes classes such as measure expressions, pronominal noun phrases and adjective phrases containing a prepositional phrase. The purpose of recording such distinctions is tied to their use. Some restrict permissible constructions. Others let a user select or exclude relevant instances when extracting information.

For instance, an extraction of a word’s complements might exclude noun phrases identified as temporal. A query for lexical combinations could exclude proper nouns, or it could select adjectival forms derived from verbs to gather evidence about the corresponding verbs. Bracketing and quotation may also give a search cues for named expressions. YAC makes these distinctions available at the phrase level, where a query can use them without specifying their entire internal form again.

The second level assembles ordinary and recursive phrases

The main level applies general rules repeatedly, drawing on both the units made at the first level and the results of earlier passes through the main rules. One noun phrase pattern illustrated by the authors can be represented as follows.

NP → Det AP N

NP names a noun phrase, Det stands for a determiner, AP names an adjective phrase, and N stands for a noun. The arrow gives a constituent pattern, with the symbols on its right appearing in sentence order. This is the particular pattern used to explain reuse of a rule. The paper also describes other noun phrase configurations, including those in which a recognized noun chunk occupies the head position.

The adjective phrase can be small, as in the example with the word verständliche modifying Sprache. It can also include a prepositional complement meaning for the user. As far as the noun phrase rule is concerned, either version supplies an adjective phrase in the same position. It can check the pertinent features for that phrase and build a larger unit whose head is the noun for language. The work of recognizing the complement belongs to the rule that built the adjective phrase.

The authors make the same point with the rules for prepositional phrases. A preposition can take a short noun phrase as its complement, as in the example about the top of a gable. A longer version keeps the gable as the relevant noun head but adds material describing its orientation and identifying the building it belongs to. The building itself has an extended modifier. Once the noun phrase has been assembled, the prepositional rule can treat it as one complement. Its internal phrases are retained as part of the larger analysis.

The repeated use of results is where the recursion becomes practical. A noun phrase can become the complement of a preposition. That prepositional phrase can become part of an adjective phrase. The adjective phrase can then become part of a larger noun phrase. Each rule needs access to the category and relevant properties of the structure immediately inside it. The corpus annotations carry that information forward as new phrases are recognized. Sentence structure emerges from the order and interaction of those passes.

A previously built chunk can occupy different roles. A prepositional phrase may be the complement of an adjective. An adjective phrase may modify a noun. A first-level noun chunk may instead supply the head around which a larger noun phrase is built. In the paper’s example with Space Hotel, the quoted name occupies the head position after a determiner. The outer noun phrase receives its head from the embedded nominal chunk. The authors illustrate the same possibility with a title and personal name preceded by modifiers that describe the officeholder.

The uses of feature attributes are similarly differentiated. A noun chunk can serve as the head of a larger phrase because of its nominal category, whether the feature on that chunk identifies a name or a quotation. In post-head modifier position, the grammar can specify narrower conditions. The paper lists genitive noun phrases and groups identified as names, bracketed phrases or quoted phrases among the possibilities. The examples include a quoted expression naming a slogan and a company name following the noun for company. In each case, the feature helps make the embedding decision more specific than a rule allowing any neighboring noun phrase.

The grammar also recognizes some coordination when it falls within a larger chunk. The authors give the example of coordinated noun phrases inside a prepositional phrase. Their policy ties the coordination analysis to the enclosing unit that motivates it. Similarly, the chunk definition requires continuity. Discontinuous material is left in separate structures even when a full grammatical analysis would associate it with a single phrase. These choices determine which parts of a sentence the hierarchy can represent.

Attachment decisions and tentative analyses

YAC generally leaves a prepositional phrase after a noun unattached. The authors nonetheless describe a special case where both quotation marks are available as boundaries. When the entire prepositional phrase lies within the quotation, the grammar can include it in a noun phrase construction under that rule. In one example, the quotation encloses a title about an invitation to a decapitation. In another, the quotation starts after part of the noun phrase and encloses the expression about a woman with hats. The whole prepositional phrase is inside the quotation in both examples. The rule can use the observed boundaries without having to settle the general attachment problem.

Prepositional phrases before an adjective create a different challenge. If a rule admits them, it can recognize the extended adjective phrases necessary for German examples such as the one about flames. The same rule can also seize a prepositional phrase that belongs elsewhere in the sentence. YAC’s main level deliberately makes broad proposals in this situation. It allows an adjective to take immediately preceding prepositional phrases and marks these candidate structures as hypothetical. They are available for subsequent rules to place inside larger candidates before the grammar decides whether they should survive.

The paper illustrates the distinction with two sentences about Lisa’s wet feet and the rain. In the sentence about drying her feet, the expression meaning because of the rain appears after a possessive and immediately before the adjective. The intended analysis includes the rain phrase in the adjective phrase. In the other sentence, the possessive is absent. The paper’s preferred analysis in that case gives the rain phrase separate status and groups the adjective directly with the noun for feet. An adjective rule looking only at the preceding prepositional phrase can propose the larger adjective phrase in either sentence.

At the third level, YAC examines where the tentative adjective phrase ended up. In the illustrated case, it can stay if the enclosing noun phrase contains a preceding element that is itself secure. In the first sentence, the possessive ihre provides that evidence. In the other sentence, the hypothetical adjective phrase would start the noun phrase. The rule rejects the hypothetical extent, reduces the adjective phrase to the adjective and adjusts the enclosing noun phrase to the shorter span. The prepositional phrase can then stand independently in the analysis.

This delayed check exploits information unavailable at the moment the adjective phrase is first proposed. When the adjective rule runs, it supplies a candidate that may be needed to recognize a larger noun phrase. After that larger phrase is found, its internal order offers evidence about the candidate. The authors’ example shows both steps. The proposal allows the grammar to assemble a possible recursive structure, and the check examines a property of the resulting placement.

Reconstructing a hierarchy and making it searchable

At the end of the incremental process, the annotations of each category retain maximal constituents. Here a maximal constituent is a phrase that has reached the extent selected by the rules of that category. A corpus view that contains only those extents would leave out intermediate phrases used in construction. To recover the internal organization, YAC collects the results of the earlier stages and combines them. It uses the position of the head to associate versions of a phrase and retains the largest relevant version for that phrase, with rejected hypothetical groupings removed.

The head position is useful because a later rule may expand a phrase while preserving its head. A noun phrase that acquires a post-head modifier, for example, still has the head of the smaller phrase. Keeping both versions as if they were distinct layers of embedding would confuse the growth of a phrase with the presence of a separate phrase inside it. Using the head as a reference helps retain the expanded phrase and the genuine internal structures that have their own place in the hierarchy.

In the flames example, retaining the outer prepositional phrase alone would provide its span but leave an extraction query with little direct access to the modifier. The collected stage results make it possible to recover the enclosed noun phrase, the adjective phrase inside it and the prepositional and nominal phrases inside that modifier. The representation remains partial at the sentence level. Its depth comes from the recursive constituents that the rules were able to build and keep.

YAC can serialize its analysis as XML, a text representation in which elements and their attributes can encode the phrase spans and features. The paper shows the XML output and a tree view of the same kind of analysis in TIGERSearch. The analysis can also be written back to the Corpus Workbench. This gives users a way to inspect phrase structure visually or to use the annotations for corpus queries.

The paper’s extraction example is a stylesheet for obtaining adjective–noun combinations from the annotated output. A stylesheet in XSLT can select material by its position and attributes in the XML structure. The example demonstrates why recording embedded phrases and their heads is useful. A query has explicit phrase relationships to consult. For a more involved task, such as identifying combinations of verbs and objects, the authors describe using CQP queries that take sentence structure into account. The paper presents these as ways to use the annotated corpus. Its quantitative evaluation concerns the recognition of noun phrases.

Experiments and results

The corpus and the unit being scored

The evaluation uses NEGRA, a corpus of German newspaper text containing 355,096 tokens. Its word-category tags had been manually corrected, and its sentences were annotated with full parse trees. A corpus with this kind of grammatical structure is a treebank. The NEGRA trees give the authors a basis for examining the system’s output, but they first have to turn the existing structures into a reference that represents the kind of noun phrase YAC is intended to find.

The source of the mismatch is the purpose of the original linguistic annotation. The treebank omits some phrase nodes when the relevant constituent structure can be expressed without them. As a result, a nominal expression can be present in the sentence and identifiable from the tree while lacking an explicit noun phrase node. Some one-word nominal expressions and some complements of prepositions require special handling for this reason. Other relevant expressions are recorded under different labels. This annotation choice is described in An Annotation Scheme for Free Word Order Languages.

Multiword proper nouns provide an example of the difficulties that arise when translating between labels. Their treebank category can contain expressions YAC would recognize as noun phrases, so a search that keeps only explicit noun phrase labels would miss pertinent material. At the same time, the authors note that the category contains foreign-language material they would ordinarily exclude from the noun phrase reference. Including the category wholesale would solve one coverage problem while introducing another.

Some trees require their extents to be shortened. A full noun phrase in NEGRA can include a prepositional or clausal attachment beyond the span YAC is designed to return. The reference construction removes such attached material to bring the intended extent closer to YAC’s chunk definition. Discontinuous noun phrases are excluded because the evaluated chunks occupy continuous spans. Cardinal numbers are also removed from the reference procedure, since the authors could not filter them reliably under the annotation scheme.

The authors carry out the conversion with XSLT stylesheets on the TigerXML version of NEGRA. The rules look for the various ways nominal structures are represented, rather than depending on a single search for noun phrase nodes. They yield a reference set of 99,238 noun phrases. Both evaluation conditions use that reference. The process gives the experiment a common target while leaving unresolved cases whose classification would benefit from manual checking.

What precision and recall mean here

Precision is the share of noun phrases proposed by YAC that are counted as correct against the reference. Recall is the share of the reference noun phrases that YAC recovers. A correct match therefore contributes to both measures, while the measures ask different questions about the same matches. Precision is useful when a corpus query will consume the proposed annotations. Recall indicates how much reference material would be available to such a query.

The evaluation is equivalent to labeled precision and recall restricted to noun phrase chunks, as the paper states. The label identifies the constituent category being evaluated. The restriction matters because YAC also returns prepositional and adjective phrases and adds feature attributes to its output. The reported values concern noun phrase recognition. They do not measure whether the head lemma, agreement annotation or other properties are correct. Even when an embedded noun phrase participates in the comparison, it is scored as a noun phrase, rather than as part of a separate measure of the complete surrounding hierarchy.

This setup compares input conditions for the same chunker. In one condition, YAC receives the manually corrected part-of-speech tags distributed with NEGRA. In the other, those tags are produced automatically. The manually tagged run is a point of comparison with more reliable input. The paper provides no separate chunking baseline in which another system or a flat version of YAC is scored against the same reference.

Results with manually corrected tags

For the first evaluation, the authors run YAC using the manually disambiguated word-category tags in NEGRA and add lemma and agreement information from IMSLex. YAC identifies 96,447 noun phrases in this condition. The comparison with the 99,238 noun phrases in the reference yields 81,730 true positives. That corresponds to noun phrase precision of 84.74% and noun phrase recall of 82.36% on the newspaper corpus.

This condition reduces the contribution of errors from automatic tagging. YAC still has to decide which material forms a noun phrase, how far the phrase extends and which candidate constructions satisfy its rules. The reference also retains the uncertainties created by conversion from NEGRA. The scores with corrected tags reflect how the chunker and these other parts of the setup operate when its word-category input has already been checked.

Results with automatic tags

In the automatic evaluation, TreeTagger relies on its usual training corpus and a custom tagging lexicon derived from IMSLex. Its reported tagging precision on NEGRA is 94.82%, with 336,692 tokens correct out of 355,096. This is a token-level measure. The paper attributes most tagging errors to proper nouns that the morphology did not identify correctly. Name recognition is relevant to YAC’s rules because a proper-name tag can trigger the recognition of a special nominal unit.

With automatic tags, the chunker identifies 99,353 noun phrases, of which 78,391 match the reference. It reaches noun phrase precision of 78.90% and noun phrase recall of 78.99%. This is the condition that corresponds to the workflow the authors envisage for an automatically annotated corpus, combining tagging, morphological information and chunking. The authors describe precision and recall close to 80% as an indicator of the usefulness of that workflow for extraction.

The overall number of proposals is greater in the automatic condition than in the manually tagged condition, while the number of reference matches is smaller. That pattern shows why the quantity of output alone gives little indication of recognition quality. Different tags can alter what the rules are able to group. A phrase lost under one reading can be accompanied by a different proposal elsewhere, and the comparable totals do not identify which changes occurred.

YAC with corrected and automatic tags on NEGRA noun phrase precision

Corrected tags give YAC higher precision against the constructed noun phrase reference.

YAC with corrected and automatic tags on NEGRA noun phrase precisionYAC with automatic tags: 78.90YAC with automatic tags78.90YAC with manually corrected tags (this paper): 84.74YAC with manually corrected tags (thispaper)84.74
The numbers
System or settingprecision %
YAC with automatic tags78.90
YAC with manually corrected tags (this paper)84.74

YAC with corrected and automatic tags on NEGRA noun phrase recall

YAC recovers more of the reference noun phrases with corrected tags.

YAC with corrected and automatic tags on NEGRA noun phrase recallYAC with automatic tags: 78.99YAC with automatic tags78.99YAC with manually corrected tags (this paper): 82.36YAC with manually corrected tags (thispaper)82.36
The numbers
System or settingrecall %
YAC with automatic tags78.99
YAC with manually corrected tags (this paper)82.36

How the authors interpret the comparison

The authors say YAC was developed independently of NEGRA. They deliberately avoided changing its rules to suit the peculiarities of the treebank for this evaluation. They regard the results as a picture of how their existing grammar would work on German newspaper text in the setting in which they expected it to be useful. They also argue that the rules could be adapted to particular kinds of text. That claim concerns the flexibility of the grammar design. The experiment measures its use on this corpus with the rules as they stood.

The evaluation also puts two sources of uncertainty in the same comparison. The automatic condition shows what happens when errors from the tagging stage are allowed to reach the grammar. Both conditions depend on the interpretation of the NEGRA trees embodied in the reference stylesheets. A mismatch can consequently arise because YAC made a recognition error or because the resulting reference failed to represent the intended chunk. The authors make this point explicitly when they qualify the evaluation figures.

Head lemmas offer a concrete case of a property the reference cannot resolve directly. NEGRA does not explicitly identify the head lemma for the noun phrases being scored. Evaluating that attribute would require inferring the head from other annotations. The authors leave it out of the evaluation. The phrase scores establish the measured agreement in recognition and give no separate accuracy figure for the lexical information that YAC attaches to those recognized phrases.

What the ablations show

The paper reports no formal component ablations and offers an input comparison, examples of rule reuse, and a worked analysis of how the final checks handle a tentative attachment.

What the tagging comparison isolates

The corrected-tag condition and the automatic-tag condition both run YAC on NEGRA and compare its output with the same noun phrase reference. Their different tagging inputs make the comparison informative about sensitivity to that part of the pipeline. Corrected tags lead to higher precision and recall. This supports the authors’ decision to report a separate automatic result, since a score obtained with manually prepared input would describe a different operating condition from their intended use.

The two measurements also show that automatic input changes the population of proposed chunks. With automatic tags the system produces more noun phrases overall but recovers fewer members of the reference. A tag error can prevent a rule from using an otherwise appropriate analysis, or it can supply the trigger for a grouping that the reference does not contain. Those are ways that tagging errors can matter under the grammar described in the paper. The comparison reports their combined effect on noun phrase recognition without assigning individual misses or false positives to specific rules.

The authors’ observation about proper nouns connects the tagging analysis to a concrete stage of the grammar. First-level rules can use a proper-name tag as evidence for finding a name, and a recognized name can later occupy the head slot of a larger phrase. An error in a name tag thus has a route into the more general rules. The paper gives a diagnosis of many of the tagger’s mistakes. It does not trace those cases to a count of missed noun phrases or identify how many of the chunking errors were caused by incorrect name tags.

What the construction examples establish

The examples with Sprache compare a short modifier with a modifier containing a prepositional phrase. Both can be accommodated by the same noun phrase pattern because the adjective phrase is recognized before it is embedded. The examples with the gable show the same principle for prepositional phrases. The word introducing the prepositional phrase can take a short nominal complement or a nominal complement that itself has several layers. These examples explain why the number of local rules need not mirror the complexity of the complete phrases they build.

That is a demonstration of what the representation allows. It does not give a corpus-wide measure of improvement due to recursion. Such a measure would require scoring conditions that differ in whether they can use embedded phrases, with a reference and breakdown capable of distinguishing the relevant cases. The paper’s motivation for recursion comes from the explicit structural work that an analysis of short chunks leaves unfinished, and from examples showing that YAC can perform that work inside its rules.

The agreement discussion gives another account of how the rules are intended to work. An ambiguous determiner and an ambiguous modifier can still restrict a candidate phrase if only some combinations are shared with its head. A set of surviving readings can then be passed to a larger construction. This explains how agreement can be used across the extent of a long noun phrase, including one with an internally complex modifier. The evaluation does not vary the availability of agreement features, so it cannot identify the share of the measured performance due to this mechanism.

What the tentative attachment example establishes

The rain example is a comparison between local strings that invite the same initial analysis but appear in different enclosing noun phrases. In both cases, the adjective has an immediately preceding prepositional phrase that can satisfy the main level’s permissive pattern. The difference that matters to the last check is whether a secure element precedes the proposed adjective phrase within the noun phrase. The possessive supplies such an element in the drying example. In the other example, the check removes the prepositional phrase from the tentative adjective grouping.

This example explains when information from a larger phrase can correct an earlier proposal. It also shows what happens to the rest of the candidate when that correction is made. The adjective survives as a smaller adjective phrase, and the surrounding noun phrase is shortened to match the surviving material. A correction that simply dropped the entire noun phrase would lose structure the authors still intend to retain. The worked case shows how the successive stages avoid that loss.

The example with quotation marks illustrates a separate rule for apparently similar ambiguity. Paired quotation marks enclosing the entire prepositional phrase give the authors a textual cue for an attachment within the noun phrase. The rain example instead relies on the position of a tentative phrase inside a larger construction. The two mechanisms are different responses to available evidence. The paper demonstrates each through examples and gives aggregate scores for the full system under the two input conditions.

Limitations

Limits identified by the authors

YAC is intended to provide a partial phrase analysis. It leaves discontinuous material in separate structures and stops before a full account of clauses or of the relations among the largest phrases. Coordination is treated selectively, in configurations where it is embedded in a larger chunk. A corpus user can inspect internal structure in the phrases YAC does build, but questions about a complete sentence analysis require additional work.

The authors emphasize reliability in deciding how far to build a phrase. They provide for embedding on both sides of its head, with restrictions on post-head constructions. A genitive modifier can be incorporated, and certain marked nominal expressions can act as modifiers. An ordinary prepositional phrase after a noun is generally left unattached. The rules for bounded quotations are a limited exception. This policy preserves a single partial analysis for querying, while leaving many attachment decisions open.

The authors also flag the reference as imperfect. The stylesheets have to recover nominal expressions from multiple annotation patterns, identify material to remove, and screen categories that do not map neatly to YAC’s definition. Some problematic cases could not be filtered reliably. The authors propose refining the stylesheets and checking critical examples manually so that a future reference would more closely reflect the intended chunk definition. Their plan identifies work remaining after the reported experiment.

Another stated limit is that YAC’s head lemmas are unevaluated. The trees do not explicitly supply the necessary noun phrase head lemmas. Inferring them would introduce a further interpretive step in the reference. The authors therefore leave the property outside the score, although they consider it useful for tasks such as identifying common lexical combinations and preferences.

Limits visible in the evaluation design

The strongest empirical evidence concerns German newspaper text. The system is intended to operate on unrestricted text, and the authors refrain from adjusting it specifically to NEGRA. That makes the experiment informative about applying the existing rules to a corpus outside their development process. The study still reports a single evaluated text type. Its setup leaves open how the rules and input annotations would behave on writing with different vocabulary, punctuation or phrase structures.

The aggregate noun phrase scores also leave the central benefit of recursion only partly measured. Recognizing a phrase span can reflect the successful assembly of a recursive structure. The evaluation does not break out results for deeply embedded phrases, genitive modifiers or expressions recognized by specialized lexical rules. Nor does it report a separate measure for the accuracy of the relationship between an embedded phrase and its parent. The examples give a structural explanation of the proposed advantage, while the corpus results give an overall measure of noun phrase recognition.

A similar distinction applies to the other categories and features. The grammar produces adjective phrases, adverbial phrases, prepositional phrases and verbal complexes, yet the quantitative comparison is restricted to noun phrases. Case, gender and number make important contributions to the described rules, but there is no separate score for the accuracy of their surviving readings. The same holds for lexical and structural annotations such as temporal status or quotation. The experiment therefore cannot establish how reliably any one of those fields can be used in a query.

The paper also does not quantify performance on the downstream extraction tasks that motivate the work. The stylesheet example shows that an extraction can be expressed using the output. It gives a concrete connection between annotation design and a lexical query, while leaving open how many of the extracted pairs would be correct or how many relevant pairs would be missed. A phrase recognition score and the quality of an extracted lexical collection measure different outcomes, since the extraction uses selected categories, features and structural relations.

The framework discussion provides storage figures and describes why indexing and memory mapping suit a repeated-pass process. Those observations explain the authors’ technical choice. The experiments provide no throughput or working-memory comparison with the other parsing approaches discussed. The reader can see how the workflow supports repeated queries and intermediate annotation. Relative speed on equivalent linguistic work remains outside the reported measurements.

Finally, the corrected-tag condition is a comparison of input quality. It still uses the authors’ phrase rules, morphological information and converted reference. It supplies no general ceiling on achievable recognition, since each of those components can influence the results. The automatic condition is the closer fit for the authors’ intended application. Both results depend on what the reference conversion admits as a noun phrase, including in cases where text and treebank conventions make the mapping uncertain.

What came after

The authors identify their next evaluation work as refining the rules used to derive noun phrases from NEGRA and manually checking difficult cases. That would make the reference a closer match for the grammar’s scope and help distinguish a system error from an artifact of the conversion. The plan follows directly from the experiment, where some nominal expressions had to be recovered indirectly and others had to be excluded or shortened. The paper records this as intended work.

No later studies are identified here that establish how other researchers used or extended YAC. The paper itself demonstrates a path from the analysis to further work on a corpus. Its output can be inspected as a tree, queried in the Corpus Workbench or used to extract adjective–noun combinations from structured annotations. The use shown is the immediate purpose for which the authors designed YAC. By retaining recursive phrase structure and making heads and features accessible, they give an extraction query direct access to relationships that would otherwise have to be reconstructed from smaller groups.

Cite

Cite as Hannah Kermes and Stefan Evert. 2002. YAC - A Recursive Chunker for Unrestricted German Text. Proceedings of the Third International Conference on Language Resources and Evaluation (LREC'02).

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

@inproceedings{kermes2002yac,
  title = {{YAC - A Recursive Chunker for Unrestricted German Text}},
  author = {Hannah Kermes and Stefan Evert},
  booktitle = {Proceedings of the Third International Conference on Language Resources and Evaluation (LREC'02)},
  year = {2002},
  doi = {10.63317/4hut4qkhxfy9},
  url = {https://doi.org/10.63317/4hut4qkhxfy9}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/kermes-2002-yac-recursive-chunker-unrestricted-german/