Elamur Research

Using Web-scale N-grams to Improve Base NP Parsing Performance

Paper · 2010 · Emily Pitler, Shane Bergsma, Dekang Lin et al.

Summary

The words in a noun phrase do not necessarily combine in the order in which they appear. In “retired science teacher,” the natural grouping makes “science teacher” a unit modified by “retired.” In “social science teacher,” “social science” instead forms the relevant internal unit. Identifying these groups matters for interpreting the phrase: recognizing that “washed baby carrots” concerns carrots rather than babies could help a search system retrieve appropriate material. This paper studies how to recover such internal structure from large collections of word counts, while using supervised learning to decide which statistical associations actually support a particular grouping.

The task is base noun phrase parsing. A base noun phrase has no embedded noun phrase, but its internal words can still require brackets that explain how they combine. The input is an already identified phrase; the output is its internal parse tree. Earlier research often concentrated on compounds consisting of three nouns, where only a left-grouped and a right-grouped analysis compete. The authors broaden the task to naturally occurring phrases containing adjectives, determiners, possessives, and conjunctions, as well as nouns. They also handle longer phrases, where several individually plausible decisions must fit into a coherent structure.

Their method separates scoring from structural selection. A classifier examines each possible internal span—a continuous stretch of words—and estimates whether it should form a constituent. Its evidence includes the words themselves, their written shapes, their positions, and association statistics derived from web-scale n-grams, meaning recorded sequences of words with occurrence counts. Every candidate span is assessed in the context of the whole noun phrase. A chart parser then selects the complete tree with the highest combined score. This avoids committing to a sequence of local brackets whose early mistakes can constrain everything that follows.

On the annotated Penn Treebank test material, the complete system achieves 95.4% exact agreement with the reference parse, compared with 72.6% for a consistently right-branching baseline. Removing the n-gram features reduces accuracy to 94.0%. The external statistics matter especially for phrases containing conjunctions: accuracy is 89.7% with all features and 84.0% without the n-gram features. These are results for internal parsing of supplied base noun phrases, instead of an evaluation of an entire search system or a complete sentence-processing pipeline.

A second contribution concerns the relationship between data quantity, data preparation, and accuracy. The authors vary the frequency threshold used to retain n-grams and compare several sources of counts. Across the tested settings, accuracy generally follows a approximately linear relationship with the logarithm of the number of distinct retained n-grams. Raw corpus size is less informative than this retained variety. Data quality also matters: the older web collection eventually shows declining performance, whereas the revised collection, which removes duplicate sentences and filters likely noise, avoids that deterioration. The practical lesson is to measure useful statistical coverage alongside storage requirements, while checking whether repetition has inflated unreliable evidence.

Interesting ideas

Score parts with the whole input in view. A local decision need not depend only on nearby words. The same short sequence can require different treatment when its surrounding phrase changes. Here, each proposed constituent receives features from the complete noun phrase. This principle transfers to segmentation, attachment, and other structured tasks where a small ambiguous region becomes understandable only through a larger context. It preserves a manageable decision unit without pretending that the unit is informationally independent.

Delay commitment until a complete structure can be compared. The authors score candidate constituents before choosing a tree. Dynamic programming then finds the best compatible combination under their scoring rule. This is useful whenever an early greedy decision can exclude a better overall solution. The transferable idea is to distinguish producing evidence for alternatives from admitting a final structure, and to make the compatibility constraints explicit.

Treat large unannotated collections as statistical evidence. Web counts supply information about word combinations without requiring those combinations to have been manually parsed. Supervision teaches the classifier how to use that evidence for a particular structural decision. The arrangement is valuable beyond noun phrases: plentiful observations can provide features, while a smaller annotated resource determines what those observations mean for the task. Frequency supports a decision without becoming a substitute for task-specific validation.

Represent the relation being tested. Ordinary adjacent-word association does not directly describe coordination. The paper therefore measures associations across “and,” using the surrounding expressions to investigate which words are likely to be coordinated. A useful general lesson is that the statistical query should reflect the construction of interest. A generic co-occurrence measure may miss the very relation that an application needs to distinguish.

Preserve different reasons for missing evidence. An association score may be unavailable because a word pair is absent, or because an individual word lacks a usable probability estimate. The authors distinguish these cases with separate indicator features. Similar distinctions help in dictionaries, retrieval, and knowledge systems: an unseen relationship, an unknown item, and an observed low score should not silently collapse into the same representation.

Measure retained variety and storage together. Increasing a frequency cutoff saves space but removes distinct observations. By reporting both parsing accuracy and the number of surviving n-grams, the paper makes that tradeoff visible. This approach applies wherever a large statistical resource must fit a practical storage budget. Counting source words alone can obscure how much usable information survives preprocessing.

Evaluate the difficult slice explicitly. Conjunction-bearing phrases and longer phrases expose weaknesses that an aggregate score can conceal. The paper reports results for these conditions separately and tests feature removal within them. This is a reusable evaluation strategy: identify the constructions most likely to require the proposed mechanism, then check whether its contribution appears there. Such analysis helps explain a result rather than merely announcing a better overall score.

Deep dive: Using Web-scale N-grams to Improve Base NP Parsing Performance

How web-scale word counts improve noun phrase bracketing, why conjunctions benefit, and what the experiments reveal about data quality. · about 34 minutes to read

How Mova uses it

Mova is a transparent language system implemented in Rust. Its documented language pipeline builds dependency trees, derives frames, and maintains a world of the text. That differs from the constituency-bracketing task studied here, so the paper does not supply a ready-made replacement for Mova’s parser. Its strongest connections concern explicit statistical evidence, bounded structural alternatives, corpus preparation, and evaluation. The status marks below are proposals grounded in the documented mechanisms; they do not establish that this paper has already caused an implementation or a measured improvement.

Idea: Assess a local structural choice using the wider phrase. Where: Sections 2.2, 5, and 6.1.1. Area: syntax. Mova: частково є (en parsing and prag frame construction, described in docs/architecture.md). Mova already constructs sentence structure, but the digest does not establish a noun-phrase constituent scorer with the paper’s whole-phrase features. A proposed extension could inspect competing modifier attachments using associations elsewhere in the same phrase, retaining the exact words and positions that support the choice. Whether this improves native parsing is unknown and would require held-out evaluation.

Idea: Keep structural alternatives until their compatibility can be checked. Where: Sections 2.2 and 5. Area: syntax and search. Mova: частково є (beam search in en; bounded alternatives in math, described in docs/architecture.md). The paper’s separation between constituent scoring and tree selection fits Mova’s preference for explicit intermediate decisions. A noun-phrase experiment could retain several attachment candidates and compare complete compatible structures before applying a repair. This would be a specific new use of existing search principles, rather than evidence that Mova already performs the paper’s chart parsing.

Idea: Use unannotated corpus observations as features rather than as answers. Where: Sections 4 and 6.1. Area: data and statistics. Mova: частково є (tools/dictindex/README.md). The dictionary occurrence index already extracts explained statistical candidates from existing parses, while keeping them separate from admitted definitions. The paper suggests a parallel syntax use: corpus associations could support an attachment hypothesis without overriding grammatical checks or becoming a trusted fact. The dictionary mechanism is documented; a corresponding web-count parser feature is not established.

Idea: Build statistical queries around a particular construction. Where: Section 6.1.2. Area: syntax. Mova: частково є (en/src/french_rules.rs and tools/dictindex/README.md). Mova has construction-specific French rules and structural selectors in its occurrence index. A coordination-focused selector could ask which candidate heads appear in a matching conjunction pattern instead of relying on undifferentiated co-occurrence. This would require separate validation for each supported construction. The paper’s evidence concerns English noun phrases containing “and,” so it does not establish the value of transferring the same pattern to French.

Idea: Distinguish an unknown word from an unobserved combination. Where: Section 6.1.1. Area: statistics and diagnostics. Mova: нове (the exact statistical distinction is not established in the digest). A proposed association interface could return separate outcomes for missing lexical evidence and missing pair evidence, preserving both for later decisions. It should also retain an observed score as a different outcome. Why Mova: Explicit absence categories would help the native system explain uncertainty and send the right kind of gap to corpus collection or lexical review.

Idea: Calibrate storage choices against task accuracy. Where: Section 8.3, Table 3, and Figure 2. Area: data and evaluation. Mova: частково є (pack storage and tools/dictindex/README.md). Mova already measures stored size and retains compressed evidence, but the documented index does not establish the paper’s frequency-threshold experiment for parsing. A bounded study could compare retained feature variety, retrieval cost, and native parsing accuracy as low-frequency observations are removed. Compression and statistical filtering should be evaluated separately because they change different properties of the resource.

Idea: Report construction-specific results alongside aggregate results. Where: Sections 8.1 and 8.2, Table 2, and Figure 1. Area: evaluation. Mova: вже є (dated construction-specific French results for en/src/french_rules.rs). The documented French applications already separate auxiliary subtypes and impersonal-subject constructions instead of reporting only a broad parsing score. The paper reinforces that practice for other difficult slices, particularly coordination and long noun phrases. Any new slice should be defined before interpreting its result, and its reference conventions should remain visible.

Idea: Deduplicate sentences before estimating association strength. Where: Section 4 and the Google V1 analysis in Section 8.3. Area: data quality. Mova: нове (this exact preprocessing stage is not established for the documented index). A proposed statistical corpus epoch could distinguish repeated sentence occurrences from distinct textual evidence before computing lexical associations. It would need a declared policy because repetition and genuine frequency are not interchangeable. Why Mova: Removing copied material from an association resource could prevent boilerplate from receiving the apparent authority of many independent observations.

Idea: Preserve source identity while comparing statistical resources. Where: Section 8.3 and Table 4. Area: provenance and evaluation. Mova: вже є (tools/dictindex/README.md and tools/sources/README.md). Mova’s index records source credits and requires separately named versions when indexed inputs change. This supports an honest comparison of alternative corpora without silently rewriting the evidence behind an old result. The paper supplies a concrete experimental motivation: different sources should be compared at a declared amount of retained statistical material, rather than judged only by their original volume.

Idea: Extract reusable counts once and answer bounded queries from them. Where: Section 4. Area: data processing. Mova: частково є (tools/dictindex/README.md). The paper uses n-gram counts as a compact interface to much larger text collections. Mova’s index similarly provides targeted occurrence and feature queries without re-running a parser for each request. The proposed syntax transfer is to expose a small, deterministic association-query interface over admitted sources. This would preserve Mova’s explicit operational boundaries, although its coverage and latency would still need measurement.

Idea: Align positional features with a declared structural expectation. Where: Section 6. Area: syntax and feature design. Mova: нове (right-relative noun-phrase association features are not established). The authors index positions from the phrase’s right edge because that edge frequently contains the semantic head in their setting. Mova could test similarly explicit positional features for a narrowly defined English construction, documenting the assumption instead of hiding it in a general rule. Why Mova: A small positional feature family could offer an inspectable statistical signal without requiring an opaque replacement for the native parser.

Idea: Let the same observation mean different things at different candidate locations. Where: Section 6. Area: statistics. Mova: нове (the paper’s candidate-position feature separation is not established). High association inside a proposed constituent may support it, while association crossing its boundary may count against it. A Mova experiment could attach candidate identity to each statistical observation so the decision distinguishes those roles. Why Mova: This would keep a reusable corpus statistic from being treated as universally positive evidence, while making its effect on each structural proposal traceable.

Idea: Keep a structural prior separate from lexical evidence. Where: Section 6.4 and Table 2. Area: syntax and evaluation. Mova: нове (an explicit base-NP bracketing prior is not established). The paper includes candidate position independently of the actual words. Mova could test a similarly isolated prior when ranking attachment candidates, then remove it during evaluation to see whether it helps beyond lexical and grammatical signals. Why Mova: Separating the prior would make it easier to detect when a common structural habit is overriding stronger evidence for an unusual phrase.

Idea: Derive written-shape evidence from the input itself. Where: Section 6.3. Area: morphology and lexical processing. Mova: нове (the paper’s shape-feature use is not established). The authors replace unavailable ideal named-entity information with deterministic patterns of capitalization and punctuation. Mova could evaluate comparable input-derived indicators for names, abbreviations, and hyphenated modifiers, keeping the transformation visible in the trace. Why Mova: Such indicators may supply inexpensive evidence while avoiding a hidden requirement for trusted entity labels at inference time.

Idea: Learn lexical exceptions without turning them into unconditional rules. Where: Section 6.2 and Table 2. Area: lexical syntax. Mova: частково є (the en lexicon and closed lexical French repair rules). The paper’s lexical features can learn that a particular word tends to occupy a certain structural position. Mova already uses lexical evidence, but a statistical tendency should remain distinguishable from a formally admitted grammatical rule. A proposed attachment feature could report its corpus support and retain the baseline analysis when the relevant construction falls outside its validated scope.

Idea: Reject oracle information from practical evaluation. Where: Sections 3, 5, and 6.3. Area: evaluation. Mova: вже є (teacher-separated assessment in README.md and docs/architecture.md). The authors avoid gold part-of-speech and named-entity features in the evaluated classifier. Mova’s existing separation between offline teaching and native assessment follows the same practical concern: the measured system should use only evidence available during its actual operation. A future phrase-parsing experiment should state which boundaries, tags, or candidate attachments are supplied and which are predicted.

Idea: Evaluate a structural component separately from the complete structure. Where: Sections 7.1 and 8.1. Area: evaluation. Mova: частково є (parser checks, reader diagnostics, and retained-reading analyses). The paper reports constituent classification separately from exact phrase parsing. Mova could likewise measure candidate attachment decisions and the final resulting tree, then follow their effects into frames or world answers. This would help localize a failure without assuming that a good component score guarantees a good end result.

Idea: Make exact structural agreement an explicit test target. Where: Section 7.1 and Figure 1. Area: evaluation. Mova: частково є (tree validation in tools/treeagree and deterministic comparison practices). Mova checks tree well-formedness, but a valid dependency tree can still encode the wrong grouping. A targeted noun-phrase evaluation could require the complete intended internal structure, alongside more local attachment measures. The reference representation would need to be defined carefully because the paper’s constituency brackets do not directly equal Universal Dependencies relations.

Idea: Train and select settings on material separated from the final test. Where: Section 7.1. Area: evaluation design. Mova: вже є (held-out gates and release-test separation in README.md and docs/architecture.md). The paper chooses its regularization setting using development data and evaluates on a separate test section. Mova already documents held-out checks and restricted access to release tests. The useful transfer is to preserve that separation when tuning a statistical repair or a corpus cutoff, including when the proposed change appears small and transparent.

Idea: Compare auxiliary sources at matched retained variety. Where: Section 8.3 and Figure 2. Area: statistics. Mova: нове (this controlled comparison is not established). A proposed Mova study could compare association resources after matching the number of retained feature types, while retaining their individual source identities. This would investigate whether a gain comes from broader observed combinations or from a particular source. Why Mova: It could guide source acquisition using measured task value rather than assuming that the largest raw collection is automatically the best investment.

Idea: Use a rare-observation threshold as an experimental control. Where: Section 8.3 and Table 3. Area: statistics and resource planning. Mova: частково є (support thresholds and bounded feature reporting in tools/dictindex/README.md). The occurrence index already constrains which statistical proposals it reports. The paper suggests measuring the consequences of those constraints systematically, instead of treating a support cutoff only as an implementation convenience. A Mova experiment should preserve the underlying epoch and vary the selection policy so that coverage losses can be attributed to the cutoff.

Idea: Verify that additional evidence continues to help. Where: Section 8.3, Google V1 analysis. Area: data quality and evaluation. Mova: вже є (regression gates and logged negative experiments in README.md). The older web resource shows that expanding a statistical inventory can eventually reduce accuracy. Mova’s documented regression discipline already allows a proposed extension to fail. Applying that discipline to corpus growth would mean measuring each new statistical resource rather than admitting it solely because it increases coverage.

Idea: Offer intermediate evidence through an explicit interface. Where: Section 5. Area: system architecture. Mova: частково є (layers interfaces and source-bound groupants in docs/architecture.md and docs/hybrid-system.md). The paper treats its span scores as potentially reusable inputs to another parser. Mova could expose attachment candidates with their observations, assumptions, and failure states, leaving final admission to a separate structural consumer. That is a proposed interface design, not evidence that automatic composition of such components is already implemented.

Idea: Preserve the boundary between observed language and admitted knowledge. Where: Sections 4 and 6.1. Area: lexical evidence and knowledge representation. Mova: вже є (tools/dictindex/README.md and tools/enrich/README.md). An n-gram count establishes an observed expression, not the truth of a statement containing it. Mova’s dictionary and enrichment paths already keep statistical proposals and staged teaching material separate from admitted knowledge. This boundary is particularly important if phrase evidence is later reused by a world reader: a useful association must not silently become a narrative fact or a general law.

The problem and its context

A phrase can be flat on paper and structured in meaning

A noun phrase may look like a simple row of modifiers followed by a noun. Yet its interpretation depends on which words combine first. The contrast between “retired science teacher” and “social science teacher” illustrates why part-of-speech tagging alone cannot settle the problem. The relevant grammatical categories can have the same sequence while the intended internal grouping changes. A parser therefore needs evidence about the particular words and their relationships.

The authors connect this structural issue to information retrieval. They cite research reporting that about 70% of web queries are noun phrases. A search system that can identify the internal unit in a multiword query has a potential basis for deciding which words should stay together during retrieval, expansion, or substitution. Their carrot example makes the distinction concrete: the interpretation concerns washed carrots of a particular kind, instead of a washed baby.

These are motivations for the task, not demonstrated downstream outcomes. The paper does not evaluate a search engine with and without its parser. Its direct contribution is a method for recovering internal phrase structure and an experimental investigation of the lexical statistics that support that method. Keeping this distinction clear matters because parsing accuracy and retrieval usefulness are different measurements.

Base noun phrases also create an annotation problem. The original Penn Treebank gives them a flat internal representation. A sentence parser trained on such structures is not being taught the distinctions this paper wants to recover. The authors use the additional annotations produced by Vadas and Curran, which mark internal groupings and thereby make the task measurable.

Why compounds consisting of three nouns were too narrow

Much earlier work treated noun-phrase parsing as a choice between alternative brackets for three-word compounds. The paper describes Lauer’s collection of 244 compounds from an encyclopedia as a commonly used resource. In that collection, two-thirds favor the left-grouped analysis. This creates a compact problem, but it also limits the forms of ambiguity that can appear.

The paper argues that noun sequences of that particular kind cover only a small part of natural base noun phrases. Sequences containing three nouns account for less than 1% of the base phrases of at least three words in the authors’ natural-text setting. Real phrases also include words that signal possession, modification, determination, and coordination. A method designed only for noun sequences can therefore miss much of the task even when it performs well on its chosen benchmark.

Length changes the problem further. A phrase with three words offers two binary trees, giving a chance baseline of 50%. At length six, the paper identifies forty-two alternatives and a chance level of 2%. Longer phrases are not simply more examples of the same binary classification problem. Their decisions interact, and a complete answer must select a compatible set of brackets.

The authors report that phrases beyond the three-word case make up 29% of their test set. This gives longer structures practical importance within their evaluation, even though the shortest included phrases remain the largest group. It also motivates an algorithm that can compare complete trees rather than merely extend a decision rule built for a short compound.

Association statistics and their structural interpretation

Earlier approaches often compare how strongly different pairs of words associate. Under the adjacency approach described in the paper, the choice depends on comparing the initial adjacent pair with the final adjacent pair. Under the dependency approach, the comparison instead involves possible attachment relationships between the initial word and alternative later words.

These approaches are useful because lexical association can reveal combinations that grammatical categories leave ambiguous. The paper reports that Lauer found the dependency approach more accurate in his comparison. It also describes work by Nakov and Hearst using several association measures and linguistically motivated paraphrases, and work by Lapata and Keller finding web-derived associations more effective than those from a smaller corpus.

The present paper retains the value of association but changes how it enters the decision. Instead of requiring a single pairwise comparison to choose a whole parse, the authors expose many associations to a supervised classifier. The classifier learns how those observations relate to each candidate constituent. The relationship between an association and a structural claim is therefore learned in context.

For longer phrases, the paper contrasts this with Barker’s sequential procedure and its supervised adaptation by Vadas and Curran. Those approaches insert brackets through a series of short local decisions. A problem arises when a choice that looks reasonable in a small window is wrong in the complete phrase, or when an early mistake changes the remaining possibilities. The authors respond with whole-phrase features and global structural selection.

Their coordination examples show why this matters. The ending “and television producers” appears in phrases whose earlier words imply different scopes for “and.” Identical local material does not guarantee an identical grouping. The full phrase supplies information that a fixed local window can omit.

The method, step by step

The method begins with a bounded input: a known base noun phrase. It does not initially attempt to find every noun phrase in an unrestricted sentence. Within that supplied phrase, it generates candidate internal constituents, assigns them scores, and searches for a compatible tree. The statistical resource and the annotated training data play different roles throughout this process.

From web counts to a noun phrase tree

The steps in order.

From web counts to a noun phrase treeStep 1: Clean text and collect n-gram counts1. Clean text and collect n-gram countsStep 2: Read annotated base noun phrases2. Read annotated base noun phrasesStep 3: Enumerate candidate internal spans3. Enumerate candidate internal spansStep 4: Describe spans using whole-phrase evidence4. Describe spans using whole-phrase evidenceStep 5: Train and apply the constituent classifier5. Train and apply the constituent classifierStep 6: Select the highest-scoring tree with CYK6. Select the highest-scoring tree with CYK

Prepare counts that represent lexical combinations

The authors use Google V2, a revised web n-gram collection described in their discussion of unlabeled data. It contains sequences of length 1-5 and originates from the same 1 trillion word web snapshot used for Google V1. Before extracting counts, the preparation removes duplicate sentences and filters text judged likely to be noise.

The noise filters concern such properties as an unusually large amount of non-alphanumeric material and extreme sentence length. The paper emphasizes duplicates because copied boilerplate, automatically produced pages, and repeated disclaimers can make a rarely authored expression appear extremely frequent. For association statistics, this is not merely a storage issue: repetition can alter the apparent relationship between words.

N-gram counts provide a compressed statistical view of the source collection. The parser does not read the original web text each time it evaluates a noun phrase. It looks up counts and derives probability estimates from them. Frequency thresholds keep the retained inventory manageable by discarding sequences that occur too rarely.

The authors use suffix-array tools described by Lin and colleagues to extract the counts efficiently. The paper names this data-processing resource, but its parsing contribution does not require the reader to understand the internal implementation of those tools. What matters for the method is that the resulting collection supplies consistent occurrence statistics for words and short expressions.

Turn annotated phrases into constituent decisions

The reference annotations add internal grouping to noun phrases that were flat in the original treebank. Vadas and Curran’s convention explicitly marks left groupings, with rightward grouping understood where an additional annotation is absent. The reported agreement between annotators is 98.5% when the criterion is complete bracket agreement for a phrase.

For training, the authors expand every phrase into examples corresponding to possible internal spans. Each example asks whether a particular continuous sequence of words belongs together as a constituent. A candidate receives a positive label when it agrees with the reference bracketing and a negative label otherwise.

This changes the learning problem from selecting a complete tree directly to scoring its possible parts. The parts are easier to describe with a fixed feature representation, while the later parsing stage handles their structural compatibility. Importantly, splitting the training examples does not mean restricting the evidence to the candidate’s own words.

In “French television and movie producers,” for instance, the authors consider possible groupings such as “French television” and “movie producers,” along with longer spans. The same whole phrase provides context for each candidate. A score for “movie producers” can therefore depend on associations involving “television,” even though that word lies outside the proposed constituent.

Describe word pairs through pointwise mutual information

The central external feature is pointwise mutual information, linked by the authors to Church and Hanks’s work on word association. It compares the estimated probability of an ordered word pair with the product of the individual word probabilities.

PMI(x, y) = log[p(“x y”) / (p(“x”)p(“y”))]

Here, x and y are words from the noun phrase. The expression p(“x y”) is the estimated probability of their adjacent sequence in the n-gram resource. The terms p(“x”) and p(“y”) are the corresponding individual word probabilities. PMI is the resulting association score, and log denotes the logarithm. The paper’s displayed definition does not specify a logarithm base.

The observed bigram in this formula need not be adjacent in the noun phrase currently being parsed. The authors calculate a separate association feature for every pair of phrase words. This allows the representation to include the kinds of relationships used by both adjacency-based and dependency-based approaches.

The interpretation of a high score depends on the candidate structure. Strong association between words inside a proposed span may favor the constituent. Strong association connecting an internal word to an external word may instead suggest that the proposed boundary cuts through a more natural grouping. The classifier learns these relationships instead of applying a universal association threshold.

An undefined score is not simply replaced with an ordinary numerical value. The representation distinguishes a missing pair probability from missing individual-word probabilities through separate binary indicators. This lets the learner respond differently to lack of evidence for a combination and lack of evidence about the vocabulary itself.

Add a statistic that specifically describes coordination

Ordinary pair association does not necessarily reveal that two words are natural alternatives in a coordination. “Television” and “movie” can be commonly linked by “and” without the ordinary adjacent bigram carrying the needed signal. The paper therefore introduces another association measure.

PMI_and(x, y) = log[p(“x and y”) / (p(“x and”)p(“and y”))]

The symbols x and y again denote candidate words. The numerator estimates the probability of the complete expression containing both words around “and.” The denominator uses the probabilities of the expressions ending and beginning with that conjunction. PMI_and is the construction-specific association score, and log again denotes the logarithm.

The feature design makes a particular structural assumption. The word immediately preceding “and” is treated as the head of a candidate coordinated item. Its coordination association is then measured with each word to the right. The learner can use these alternatives to judge which later word is the likely head of the other item.

For the running example, this means comparing evidence involving “television” with “movie” against evidence involving “television” with “producers.” The paper explains that the former association supports the narrower coordination. In another example involving French TV and British radio stars, the relevant heads can be separated by modifiers, so the same design can consider a later candidate head rather than only the immediately following word.

This feature is targeted, not a general account of every coordination construction. Its usefulness comes in part from making the statistical question resemble the ambiguity being resolved. The precise assumption about the pre-conjunction head also creates a boundary on what the feature represents.

Make every feature sensitive to the candidate’s position

The authors report that position-specific features worked better during development. Positions are measured from the right edge of the complete noun phrase, motivated by the tendency for its semantic head to occur toward that edge.

Each feature is then combined with the position of the proposed bracketing. Consequently, an association appearing in different candidate configurations receives independently learnable treatment. The same numerical observation is not forced to have an identical effect wherever a bracket is proposed.

This representation can be understood as dividing the evidence into position-conditioned decision spaces. A learner can acquire one pattern for associations supporting an internal group and another for associations crossing its boundary. It also means that the design is more specialized than simply supplying a bag of pairwise association scores.

The classifier additionally receives the position of the proposed span itself. This acts as a structural prior: some bracket locations may be more common than others before the actual lexical items are considered. The separate position feature makes that baseline tendency available alongside the more specific evidence.

Add lexical identity and observable written shape

Lexical indicator features record which word appears at each position. These permit the classifier to learn recurring patterns associated with particular vocabulary. The paper gives “Inc.” as an example of an item whose position in names can help predict bracket boundaries.

Written-shape features offer another source of information. The transformation collapses runs of upper-case letters into “A” and lower-case runs into “a,” while retaining the pattern created by punctuation and capitalization. “Saudi-born,” for instance, yields the indicator “Aa-a.”

The goal is to capture useful information about names, abbreviations, and hyphenated modifiers without relying on reference named-entity tags. This keeps the feature tied to the input string itself. It is an expedient substitute for some information that ideal entity annotations could provide, instead of a claim that shape fully identifies names.

These lexical and shape cues complement the external statistics. The complete representation does not ask web association to solve every ambiguity. It allows direct word identity, observable orthography, structural position, and corpus association to contribute separately.

Train a linear classifier and select a complete tree

Training uses LIBLINEAR with a linear support vector machine. The authors choose an L2-loss setting and tune the regularization parameter on development data, finding C=1. They convert the classifier’s outputs into probabilities for use in the parsing stage.

At test time, each candidate span is expanded into the same feature representation used during training. Its estimated constituent probability enters a chart. The parser scores a complete tree by multiplying the probabilities attached to its constituent spans, then uses CYK to find the highest-scoring tree under this rule.

This is a global optimum for the declared scoring procedure. It does not mean that the chosen tree is guaranteed to be linguistically correct, nor that the span probabilities represent every dependency among decisions. The advantage is narrower and concrete: the search does not have to commit greedily to an early local bracket.

The authors also discuss interfaces to larger parsers. Span scores could serve as features in the kind of structured parser associated with Max-Margin Parsing. Their feature representation could also be used in feature-based conditional random field parsing or in discriminative reranking. These are proposed integration routes; the reported experiments evaluate the base noun phrase component itself.

Experiments and results

The annotated task and its splits

The experiments include base noun phrases longer than two words. This excludes cases whose internal structure would not present the same nontrivial bracketing decision. The authors use standard Penn Treebank sections for training, development, and testing, with the added internal noun-phrase annotations.

SplitPTB sectionBase noun phrases
Training2-2259,238
Development242084
Test233522

The training material contains 41,353 phrases of length three, 12,067 of length four, 3930 of length five, 1272 of length six, and 616 longer phrases. The development material has 1428, 445, 148, 34, and 29 phrases in those respective categories. The test material contains 2498, 673, 236, 81, and 34.

This distribution matters for interpretation. The aggregate result is dominated by relatively short phrases, but the evaluation still contains a range of longer structures. Reporting performance by length therefore adds information that the overall score cannot supply. A parser may do very well on the most common short cases while continuing to struggle with longer phrases.

The principal metric is exact parsing accuracy: a phrase counts as correct only when its proposed internal structure matches the reference structure completely. This is stricter than counting individual brackets independently. An otherwise plausible tree with a wrong internal grouping fails the phrase-level test.

Overall parsing accuracy

The complete system achieves 95.4% accuracy on the test set. The simple right-branching baseline reaches 72.6%. The comparison shows that a fixed default structure leaves substantial ambiguity unresolved, while the learned classifier and global tree selection recover most of the annotated structures.

Base noun phrase parsing on the PTB test set

The complete feature set performs best, while lexical and n-gram removal both weaken accuracy.

Base noun phrase parsing on the PTB test setRight-branching baseline: 72.6Right-branching baseline72.6Without lexical features: 92.2Without lexical features92.2Without n-gram features: 94.0Without n-gram features94.0Without shape features: 94.9Without shape features94.9Without position features: 95.3Without position features95.3All features (this paper): 95.4All features (this paper)95.4
The numbers
System or settingaccuracy %
Right-branching baseline72.6
Without lexical features92.2
Without n-gram features94.0
Without shape features94.9
Without position features95.3
All features (this paper)95.4

The constituent classifier, evaluated before complete-tree selection, reaches 96.1% accuracy. This is a separate result over constituent decisions, not another way of reporting phrase-level exact match. The distinction matters because individual span predictions must ultimately be assembled into a compatible structure.

The paper identifies 93.0% as the most comparable earlier accuracy reported by Vadas and Curran. It also gives reasons to avoid treating this as a controlled direct comparison: the earlier work used a different noun-phrase set and reference part-of-speech and named-entity information. The stronger comparison within the present experiment is therefore between the full feature set, its ablated versions, and the stated structural baseline on the same task.

Length and conjunctions

Performance falls as phrases become longer. At length three, the authors report 98.5% exact accuracy. At length six, they report 79.0%. Longer phrases require more structural decisions to be simultaneously correct, so this decline is expected under an exact-match criterion.

Their length analysis compares the proposed method with both right branching and chance. The authors report that the method deteriorates less sharply than either baseline as length increases. The available textual results support the stated endpoint accuracies and this qualitative comparison; they do not justify reconstructing additional exact values from the plotted curves.

Conjunction-bearing phrases form a particularly informative subset. With all features, accuracy is 89.7%. Without n-gram features, it is 84.0%. The authors describe this contribution as a 36% relative reduction in error.

Conjunction-bearing base noun phrases on the PTB test set

N-gram removal causes the strongest feature-class loss on conjunction-bearing phrases.

Conjunction-bearing base noun phrases on the PTB test setRight-branching baseline: 58.3Right-branching baseline58.3Without n-gram features: 84.0Without n-gram features84.0Without lexical features: 87.4Without lexical features87.4Without shape features: 89.7Without shape features89.7Without position features: 89.7Without position features89.7All features (this paper): 89.7All features (this paper)89.7
The numbers
System or settingaccuracy %
Right-branching baseline58.3
Without n-gram features84.0
Without lexical features87.4
Without shape features89.7
Without position features89.7
All features (this paper)89.7

The corresponding full-system score for phrases without conjunctions is 95.7%, and removing n-gram features gives 94.5%. External association statistics therefore help both subsets, while their contribution is especially pronounced in the coordination setting emphasized by the feature design.

Frequency thresholds and retained statistical variety

The authors vary which n-grams are available to the PMI features while leaving lexical, shape, and position features unchanged. The lowest tested count threshold retains the full Google V2 resource used in the main experiment. Raising the cutoff progressively removes less frequent observations.

Google V2 count thresholds and PTB base noun phrase accuracy

Retaining rarer n-grams generally improves accuracy, with a storage trade-off.

Google V2 count thresholds and PTB base noun phrase accuracyThreshold 10 (this paper): 95.4Threshold 10 (this paper)95.4Threshold 100: 95.3Threshold 10095.3Threshold 1,000: 95.2Threshold 1,00095.2Threshold 10,000: 94.8Threshold 10,00094.8Threshold 100,000: 94.8Threshold 100,00094.8Threshold 1,000,000: 94.4Threshold 1,000,00094.4Threshold 10,000,000: 94.0Threshold 10,000,00094.0
The numbers
System or settingaccuracy %
Threshold 10 (this paper)95.4
Threshold 10095.3
Threshold 1,00095.2
Threshold 10,00094.8
Threshold 100,00094.8
Threshold 1,000,00094.4
Threshold 10,000,00094.0

The corresponding distinct n-gram inventories are 4,145,972,000, 391,344,991, 39,368,488, 3,924,478, 386,639, 37,567, and 3,317. Reporting these counts makes the storage question concrete. The experiment does not merely compare vaguely larger and smaller resources; it identifies how much statistical variety survives each selection policy.

The authors describe the relation between cutoff and retained types as closely following Zipf’s law. They also report that accuracy scales roughly linearly with the logarithm of the number of distinct n-grams. This is an empirical pattern over the tested resources and thresholds.

Comparing sources

The additional sources are NEWS, built from news material including Reuters and Gigaword, and Google V1, the earlier web n-gram collection. Table 4 reports source token totals of 3.2 B for NEWS, 1,024.9 B for Google V1, and 207.4 B for Google V2. Their frequency thresholds are 1, 40, and 10, respectively. The retained type totals are 3.7 B, 3.4 B, and 4.1 B.

At a given number of distinct n-grams, the authors find broadly similar parsing performance across sources. Google V1 is the important exception to a consistently improving trend: beyond about 100 million distinct n-grams, its curve begins to decline.

The authors attribute that behavior to duplicated web material making unreliable expressions appear frequent. Google V2 combines sentence deduplication with other cleaning and does not show the same decline. This comparison supports careful preparation of large statistical resources, while also showing why raw source volume is an incomplete measure of their usefulness.

What the ablations show

Lexical identity remains central

Removing lexical features produces the largest overall reduction among the feature-class ablations: accuracy becomes 92.2%. The full result should therefore not be understood as an achievement of web counts alone. Direct information about which words appear, and where they appear, contributes strongly.

This observation fits the task’s motivating examples. Grammatical categories do not determine whether a phrase should group like “retired science teacher” or “social science teacher.” The identity of the words matters. The learned lexical indicators provide one way to capture recurring choices directly, while corpus association offers evidence about combinations that may not be sufficiently represented in the annotated training phrases.

The ablation does not reveal how much of the lexical contribution comes from memorized expressions, recurring individual words, or broader interactions with position. Those possibilities are not separated experimentally. What it establishes is that removing this entire feature family hurts the evaluated system.

External counts add information beyond lexical features

Removing n-gram features gives 94.0%, compared with 95.4% using the complete representation. Because lexical, shape, and position features remain available, this is evidence that the external statistics add useful information beyond those input-derived cues.

The paper reports McNemar’s test with p < 0.05 for this overall comparison. That supports the authors’ statement that the n-gram contribution is statistically significant under their test. It does not establish significance for every length group or every ablation row, since the paper does not report the same statistical claim for all of them.

The experiment also helps clarify the role of unannotated data. Its value is measured through improved decisions on held-out annotated phrases. The mere presence of many counts is not treated as success. The downstream structural task determines whether those counts are useful.

Coordination changes which evidence matters most

For conjunction-bearing phrases, n-gram removal is more damaging than lexical removal. The latter leaves accuracy at 87.4%, while the former gives 84.0%. This differs from the aggregate ordering, where lexical features have the strongest ablation effect.

That reversal is informative. It indicates that the relative importance of feature families depends on the construction being analyzed. Coordination scope is especially dependent on evidence about plausible combinations, which is the reason the authors added their construction-specific association features.

However, Table 2 removes n-gram features as a class. It does not separately remove ordinary PMI and the association across “and.” The results therefore support the combined statistical feature family, not a precise measurement of the isolated benefit from the coordination formula.

Shape and position offer smaller aggregate contributions

Removing shape features produces 94.9% overall accuracy. Removing the separate position features produces 95.3%. These comparisons suggest useful but smaller contributions than those from lexical identity or the n-gram family in the aggregate evaluation.

On conjunction-bearing phrases, both removals leave the reported score at 89.7%. This means the table does not show a change at its stated precision for that subset. It does not establish that these features can never affect an individual coordination decision or that they would be irrelevant in another dataset.

The position ablation also needs careful interpretation. The method separately describes position-conditioned feature identities and a feature expressing the proposed bracket’s position. The paper does not provide a full controlled comparison between the entire position-specific design and a shared, position-independent representation. Its development observation about increasing specificity should therefore be kept distinct from the narrower reported removal.

Thresholding tests evidence availability rather than classifier redesign

The count-cutoff experiment is particularly controlled because the other feature families remain unchanged. It alters the external statistical evidence available to the same overall task. This makes it more informative about the value of retained lexical coverage than a comparison in which training data, classifier, and features all change together.

The experiment also reveals that filtering is not the same as ordinary compression. Discarding low-frequency n-grams changes which associations can be estimated. A compact lossless representation could reduce storage without making that same evidence unavailable. The reported curve concerns evidence selection through count thresholds.

Finally, the source comparison tests whether the relationship depends completely on a particular collection. The broadly similar trends across NEWS and the web resources support the authors’ emphasis on distinct n-grams. The Google V1 decline supplies an equally important qualification: added statistical material can be harmful when its apparent frequency reflects duplication.

Limitations

Limits the authors identify

The authors explicitly frame their input as a supplied base noun phrase. They argue that such chunks can be identified accurately and cite 95.8% chunking accuracy from Kudo and Matsumoto’s support-vector approach. That earlier result motivates the component boundary; it is not a measured end-to-end score for their own parser.

They also acknowledge that the most comparable previous noun-phrase result uses different material and privileged annotations. Their discussion of practical applicability emphasizes that requiring already resolved attachment sites can make a parsing experiment unrealistic. These qualifications are part of the paper’s rationale for choosing base phrases and input-derived features.

The threshold investigation has an explicit operational constraint. Once an n-gram resource has been created with a cutoff, the authors cannot recover lower-frequency sequences merely by changing a later setting. They can raise the threshold and remove more material, but lowering it would require access to observations that were not retained. The experiments therefore explore reductions from existing resources rather than unrestricted movement across all possible count cutoffs.

The paper presents a predictable storage–accuracy relationship as a practical opportunity. That claim is grounded in the observed curves, not a formal guarantee. The authors’ own Google V1 analysis supplies a case in which greater retained variety eventually ceases to help.

Boundaries visible in the experimental setup

A careful reader should distinguish the evaluation target from full natural-language analysis. The system recovers internal brackets for selected English noun phrases. It does not demonstrate complete sentence understanding, a general treatment of coordination, or reliable interpretation of unrestricted text.

The reference data come from the Penn Treebank with added noun-phrase annotations. The paper does not report evaluation on a separate collection of live search queries, even though search is a main motivation. Different spelling conventions, abbreviated wording, or phrase distributions could matter, but their effects are not measured here.

Similarly, the retrieval examples explain potential value without testing it. Correctly grouping a query could assist retrieval or expansion, but the paper does not show improved search relevance, advertisement selection, or substitution quality. Those remain applications suggested by the structural analysis.

The aggregate score also needs its denominator. It concerns nontrivial base phrases longer than two words, with the supplied distribution heavily weighted toward the shortest included length. It should not be restated as accuracy over all noun phrases, all tokens, or all possible nominal constructions.

The score is exact, but the probabilities have a narrower role

The parser multiplies constituent probabilities to choose a complete tree. That defines a useful search objective, but the paper does not show that the resulting products are calibrated probabilities over complete trees. Nor does a constituent’s estimated probability account explicitly for every dependence between neighboring structural decisions.

This does not invalidate the exact-match result. The held-out comparison directly measures the output trees. It limits a different interpretation: the numbers used to rank trees should not automatically be treated as comprehensive uncertainty estimates about phrase meaning.

The paper also reports that converted support-vector outputs outperform the logistic-regression alternative on development data. It does not provide a detailed probability-calibration analysis or a separate numerical test-set comparison for that choice. The supported conclusion is a development preference within this setup.

Some design choices are motivated more fully than they are isolated

The authors motivate whole-phrase context and dynamic programming through weaknesses of earlier local procedures. They do not report an ablation that holds their feature representation fixed while replacing CYK with a greedy algorithm. The experiment therefore establishes the performance of the combined design more directly than the independent size of the search algorithm’s contribution.

Likewise, the coordination feature assumes a particular candidate head before “and.” The paper demonstrates useful aggregate behavior for phrases with conjunctions, but does not provide a taxonomy of cases where that assumption succeeds or fails. It also does not test an unrestricted set of conjunction-specific patterns.

The cleaning comparison has a related attribution limit. Google V2 differs from Google V1 through deduplication and additional noise filtering, as well as the retained count inventory. The authors give duplication as their explanation for the older resource’s declining curve. Without a separate cleaning ablation, the experiments do not isolate every preprocessing decision’s contribution.

Scaling is an observed tendency, not an unlimited promise

The paper connects its results with Banko and Brill’s large-corpus study and with Brants and colleagues’ machine-translation work. These connections support a broader research interest in exploiting more text. They do not make the noun-phrase curve a universal law.

In particular, a nearly log-linear relationship over tested resources cannot establish indefinite improvement. The experiment covers particular corpora, thresholds, features, and reference annotations. It also reports a quality-related exception. Any projection beyond those conditions remains a hypothesis.

The paper’s final discussion anticipates continued gains as available text and computing capacity grow. That is the authors’ forward-looking argument. The directly demonstrated result is more bounded: within the evaluated range, retaining more distinct, suitably prepared n-grams generally improves exact base noun phrase parsing, and those gains can be compared with storage requirements.

What came after

No later citing work is identified here, so a documented account of subsequent extensions is unavailable. The earlier studies discussed by the authors should not be recast as descendants of this contribution, and the proposed integration routes should not be described as completed follow-up experiments.

The paper itself leaves several concrete questions open. Its span scores could be evaluated inside a full sentence parser. Its internal structures could be tested for retrieval and query reformulation. The construction-specific association idea could also be examined beyond the particular coordination representation used here. These are directions suggested by the method and discussion, rather than claims about later achievements.

Its enduring research question is clear within those limits: when a structural learner benefits from external text, what matters most—the amount collected, the distinct evidence retained, or the reliability of the counting process? The experiments make those factors separately visible and show why a strong aggregate parsing result becomes more informative when accompanied by construction-level analysis and a measured account of the underlying data.

Cite

Cite as Emily Pitler, Shane Bergsma, Dekang Lin and Kenneth Church. 2010. Using Web-scale N-grams to Improve Base NP Parsing Performance. Proceedings of the 23rd International Conference on Computational Linguistics (Coling 2010).

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

@inproceedings{pitler2010using,
  title = {{Using Web-scale N-grams to Improve Base NP Parsing Performance}},
  author = {Emily Pitler, Shane Bergsma, Dekang Lin and Kenneth Church},
  booktitle = {Proceedings of the 23rd International Conference on Computational Linguistics (Coling 2010)},
  year = {2010},
  url = {https://aclanthology.org/C10-1100/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/pitler-2010-web-scale-n-grams-improve/