Inside–outside algorithm

In computer science, the inside–outside algorithm is a way of re-estimating production probabilities in a probabilistic context-free grammar. It was introduced James K. Baker in 1979 as a generalization of the forward–backward algorithm for parameter estimation on hidden Markov models to stochastic context-free grammars. It is used to compute expectations, for example as part of the expectation–maximization algorithm (an unsupervised learning algorithm).

Inside and outside probabilities

The inside probability is the total probability of generating words , given the root nonterminal and a grammar :[1]

The outside probability is the total probability of beginning with the start symbol and generating the nonterminal and all the words outside , given a grammar :[1]

Computing Inside probabilities

Base Case:

General Case:

Suppose there is a rule in the grammar, then the probability of generating starting with a subtree rooted at is:

The inside probability is just the sum over all such possible rules:

Computing Outside probabilities

Base Case:

Here the start symbol is .

References

  1. 1 2 Manning, Christopher D.; Hinrich Schütze (1999). Foundations of Statistical Natural Language Processing. Cambridge, MA, USA: MIT Press. pp. 388–402. ISBN 0-262-13360-1.

External links

This article is issued from Wikipedia - version of the 6/29/2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.