Home | Trees | Indices | Help |
|
---|
|
|
|||
WeightedProduction A probabilistic context free grammar production. |
|||
WeightedGrammar A probabilistic context-free grammar. |
|
|||
|
|||
|
|||
|
|||
|
|
|||
_PARSE_RE = re.compile(r'
|
|||
_SPLIT_RE = re.compile(r'
|
|||
toy1 = <Grammar with 17 productions>
|
|||
toy2 = <Grammar with 23 productions>
|
|
Induce a PCFG grammar from a list of productions. The probability of a production A -> B C in a PCFG is: | count(A -> B C) | P(B, C | A) = --------------- where * is any right hand side | count(A -> *)
|
|
_PARSE_RE
|
_SPLIT_RE
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Wed May 16 22:47:19 2007 | http://epydoc.sourceforge.net |