← 学习库 Speech and Language Processing 本册目录

4.9.3 Language Model Adaptation and Using the Web

One of the most exciting recent developments in language modeling is language model adaptation. This is relevant when we have only a small amount of in-domain training data, but a large amount of data from some other domain. We can train on the larger out-of-domain dataset and adapt our models to the small in-domain set. (Iyer and Ostendorf, 1997, 1999a, 1999b; Bacchiani and Roark, 2003; Bacchiani et al., 2004).

An obvious large data source for this type of adaptation is the web. Indeed, use of the web does seem to be helpful in language modeling. The simplest way to apply the web to improve, say, trigram language models is to use search engines to get counts for $ w_{1}w_{2}w_{3} $ and $ w_{1}w_{2}w_{3} $, and then compute:

$$ \hat{p}_{web}=\frac{c_{web}(w_{1}w_{2}w_{3})}{c_{web}(w_{1}w_{2})} $$

We can then mix $ \hat{p}_{web} $ with a conventional N-gram (Berger and Miller, 1998; Zhu and Rosenfeld, 2001). We can also use more sophisticated combination methods that make use of topic or class dependencies, to find domain-relevant data on the web data (Bulyko et al., 2003).

In practice it is difficult or impossible to download every page from the web in order to compute N-grams. For this reason most uses of web data rely on page counts from search engines. Page counts are only an approximation to actual counts for many reasons: a page may contain an N-gram multiple times, most search engines round off their counts, punctuation is deleted, and the counts themselves may be adjusted due to link and other information. It seems that this kind of noise does not hugely affect the results of using the web as a corpus (Keller and Lapata, 2003; Nakov and Hearst, 2005), although it is possible to perform specific adjustments, such as fitting a regression to predict actual word counts from page counts (Zhu and Rosenfeld, 2001).

← 4.9.2 Class-based N-grams4.9.4 Using Longer Distance Information: A Brief Summary →