请输入您要查询的百科知识:

 

词条 Kneser–Ney smoothing
释义

  1. Method

  2. References

Kneser–Ney smoothing is a method primarily used to calculate the probability distribution of n-grams in a document based on their histories.[1] It is widely considered the most effective method of smoothing due to its use of absolute discounting by subtracting a fixed value from the probability's lower order terms to omit n-grams with lower frequencies. This approach has been considered equally effective for both higher and lower order n-grams. The method was proposed in a 1994 paper by Reinhard Kneser, Ute Essen and {{ill|Hermann Ney|de}}.[2]

A common example that illustrates the concept behind this method is the frequency of the bigram "San Francisco". If it appears several times in a training corpus, the frequency of the unigram "Francisco" will also be high. Relying on only the unigram frequency to predict the frequencies of n-grams leads to skewed results;[3] however, Kneser–Ney smoothing corrects this by considering the frequency of the unigram in relation to possible words preceding it.

Method

Let be the number of occurrences of the word followed by the word in the corpus.

The equation for bigram probabilities is as follows:

[4]

Where the unigram probability depends on how likely it is to see the word in an unfamiliar context, which is estimated as the number of times it appears after any other word divided by the number of distinct pairs of consecutive words in the corpus:

Please note that is a proper distribution, as the values defined in above way are non-negative and sum to one.

The parameter is a constant which denotes the discount value subtracted from the count of each n-gram, usually between 0 and 1.

The value of the normalizing constant is calculated to make the sum of conditional probabilities over all equal to one.

Observe that (provided ) for each which occurs at least once in the context of in the corpus we discount the probability by exactly the same constant amount ,

so the total discount depends linearly on the number of unique words that can occur after .

This total discount is a budget we can spread over all proportionally to .

As the values of sum to one, we can simply define to be equal to this total discount:

This equation can be extended to n-grams. Let be the words before :

[5]

This model uses the concept of absolute-discounting interpolation which incorporates information from higher and lower order language models. The addition of the term for lower order n-grams adds more weight to the overall probability when the count for the higher order n-grams is zero.[6] Similarly, the weight of the lower order model decreases when the count of the n-gram is non zero.

References

1. ^'A Bayesian Interpretation of Interpolated Kneser-Ney NUS School of Computing Technical Report TRA2/06'
2. ^{{cite journal |last1=Ney |first1=Hermann |last2=Essen |first2=Ute |last3=Kneser |first3=Reinhard |title=On structuring probabilistic dependences in stochastic language modelling |journal=Computer Speech & Language |date=January 1994 |volume=8 |issue=1 |pages=1–38 |doi=10.1006/csla.1994.1001}}
3. ^'Brown University: Introduction to Computational Linguistics '
4. ^'Kneser Ney Smoothing Explained'
5. ^'NLP Tutorial: Smoothing'
6. ^'An empirical study of smoothing techniques for language modeling'
{{DEFAULTSORT:Kneser-Ney smoothing}}

2 : Statistical methods|Language modeling

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/30 3:29:14