Chapter 3<strong>Learning</strong> with Web-<strong>Scale</strong> N-gramModelsXKCD comic: Dangers, http://xkcd.com/369/3.1 IntroductionMany problems in <strong>Natural</strong> <strong>Language</strong> Processing (NLP) can be viewed as assigning labels toparticular words in text, given the word’s context. If the decision process requires choosinga label from a predefined set of possible choices, called a candidate set or confusion set, theprocess is often referred to as disambiguation [Roth, 1998]. Part-of-speech tagging, spellingcorrection, and word sense disambiguation are all lexical disambiguation processes.0 A version of this chapter has been published as [Bergsma et al., 2008b; 2009b]35
One common disambiguation task is the identification of word-choice errors in text. Alanguage checker can flag an error if a confusable alternative better fits a given context:(1) The system tried to decide {among, between} the two confusable words.Most NLP systems resolve such ambiguity with the help of a large corpus of text. Thecorpus indicates which candidate is more frequent in similar contexts. The larger the corpus,the more accurate the disambiguation [Banko and Brill, 2001]. Since few corpora are aslarge as the world wide web, 1 many systems incorporate web counts into their selectionprocess.For the above example, a typical web-based system would query a search engine withthe sequences “decide among the” and “decide between the” and select the candidate thatreturns the most pages [Lapata and Keller, 2005]. Clearly, this approach fails when morecontext is needed <strong>for</strong> disambiguation.We propose a unified view of using web-scale data <strong>for</strong> lexical disambiguation. Ratherthan using a single context sequence, we use contexts of various lengths and positions.There are five 5-grams, four 4-grams, three trigrams and two bigrams spanning the targetword in Example (1). We gather counts <strong>for</strong> each of these sequences, with each candidatein the target position. We first show how the counts can be used as features in a supervisedclassifier, with a count’s contribution weighted by its context’s size and position. We alsopropose a novel unsupervised system that simply sums a subset of the (log) counts <strong>for</strong> eachcandidate. Surprisingly, this system achieves most of the gains of the supervised approachwithout requiring any training data.Since we make use of features derived from the distribution of patterns in large amountsof unlabeled data, this work is an instance of a semi-supervised approach in the category,“Using Features from Unlabeled Data,” discussed in Chapter 2, Section 2.5.5.In Section 3.2, we discuss the range of problems that fit the lexical disambiguationframework, and also discuss previous work using the web as a corpus. In Section 3.3 wediscuss our general disambiguation methodology. While all disambiguation problems canbe tackled in a common framework, most approaches are developed <strong>for</strong> a specific task.Like Roth [1998] and Cucerzan and Yarowsky [2002], we take a unified view of disambiguation,and apply our systems to preposition selection (Section 3.5), spelling correction(Section 3.6), and non-referential pronoun detection (Section 3.7). In particular we spenda fair amount of time on non-referential pronoun detection. On each of these applications,our systems outper<strong>for</strong>m traditional web-scale approaches.3.2 Related Work3.2.1 Lexical DisambiguationYarowsky [1994] defines lexical disambiguation as a task where a system must “disambiguatetwo or more semantically distinct word-<strong>for</strong>ms which have been conflated into thesame representation in some medium.” Lapata and Keller [2005] divide disambiguationproblems into two groups: generation and analysis. In generation, the confusable candidatesare actual words, like among and between. Generation problems permit learning with1 Google recently announced they are now indexing over 1 trillion unique URLs (http://googleblog.blogspot.com/2008/07/we-knew-web-was-big.html). This figure represents a staggering amount oftextual data.36
- Page 1 and 2: University of AlbertaLarge-Scale Se
- Page 5 and 6: Table of Contents1 Introduction 11.
- Page 7 and 8: 7 Alignment-Based Discriminative St
- Page 9 and 10: List of Figures2.1 The linear class
- Page 11 and 12: drawn in by establishing a partial
- Page 13 and 14: (2) “He saw the trophy won yester
- Page 15 and 16: actual sentence said, “My son’s
- Page 17 and 18: Uses Web-Scale N-grams Auto-Creates
- Page 19 and 20: spelling correction, and the identi
- Page 21 and 22: Chapter 2Supervised and Semi-Superv
- Page 23 and 24: emphasis on “deliverables and eva
- Page 25 and 26: Figure 2.1: The linear classifier h
- Page 27 and 28: The above experimental set-up is so
- Page 29 and 30: and discriminative models therefore
- Page 31 and 32: their slack value). In practice, I
- Page 33 and 34: One way to find a better solution i
- Page 35 and 36: Figure 2.2: Learning from labeled a
- Page 37 and 38: algorithm). Yarowsky used it for wo
- Page 39 and 40: Learning with Natural Automatic Exa
- Page 41 and 42: positive examples from any collecti
- Page 43: generated word clusters. Several re
- Page 47 and 48: 3.2.2 Web-Scale Statistics in NLPEx
- Page 49 and 50: For each target wordv 0 , there are
- Page 51 and 52: ut without counts for the class pri
- Page 53 and 54: Accuracy (%)10090807060SUPERLMSUMLM
- Page 55 and 56: We also follow Carlson et al. [2001
- Page 57 and 58: Set BASE [Golding and Roth, 1999] T
- Page 59 and 60: pronoun (#3) guarantees that at the
- Page 61 and 62: 807876F-Score747270Stemmed patterns
- Page 63 and 64: anaphoricity by [Denis and Baldridg
- Page 65 and 66: ter, we present a simple technique
- Page 67 and 68: We seek weights such that the class
- Page 69 and 70: each optimum performance is at most
- Page 71 and 72: We now show that ¯w T (diag(¯p)
- Page 73 and 74: Training ExamplesSystem 10 100 1K 1
- Page 75 and 76: Since we wanted the system to learn
- Page 77 and 78: Chapter 5Creating Robust Supervised
- Page 79 and 80: § In-Domain (IN) Out-of-Domain #1
- Page 81 and 82: Adjective ordering is also needed i
- Page 83 and 84: Accuracy (%)10095908580757065601001
- Page 85 and 86: System IN O1 O2Baseline 66.9 44.6 6
- Page 87 and 88: 90% of the time in Gutenberg. The L
- Page 89 and 90: VBN/VBD distinction by providing re
- Page 91 and 92: other tasks we only had a handful o
- Page 93 and 94: without the need for manual annotat
- Page 95 and 96:
DSP uses these labels to identify o
- Page 97 and 98:
Semantic classesMotivated by previo
- Page 99 and 100:
empirical Pr(n|v) in Equation (6.2)
- Page 101 and 102:
Verb Plaus./Implaus. Resnik Dagan e
- Page 103 and 104:
SystemAccMost-Recent Noun 17.9%Maxi
- Page 105 and 106:
Chapter 7Alignment-Based Discrimina
- Page 107 and 108:
ious measures to learn the recurren
- Page 109 and 110:
how labeled word pairs can be colle
- Page 111 and 112:
Figure 7.1: LCSR histogram and poly
- Page 113 and 114:
0.711-pt Average Precision0.60.50.4
- Page 115 and 116:
Fr-En Bitext Es-En Bitext De-En Bit
- Page 117 and 118:
Chapter 8Conclusions and Future Wor
- Page 119 and 120:
8.3 Future WorkThis section outline
- Page 121 and 122:
My focus is thus on enabling robust
- Page 123 and 124:
[Bergsma and Cherry, 2010] Shane Be
- Page 125 and 126:
[Church and Mercer, 1993] Kenneth W
- Page 127 and 128:
[Grefenstette, 1999] Gregory Grefen
- Page 129 and 130:
[Koehn, 2005] Philipp Koehn. Europa
- Page 131 and 132:
[Mihalcea and Moldovan, 1999] Rada
- Page 133 and 134:
[Ristad and Yianilos, 1998] Eric Sv
- Page 135 and 136:
[Wang et al., 2008] Qin Iris Wang,
- Page 137:
NNP noun, proper, singular Motown V