A probabilistic context free grammar production. PCFG
WeightedProductions are essentially just
Productions that have probabilities associated with them.
These probabilities are used to record how likely it is that a given
production will be used. In particular, the probability of a
WeightedProduction records the likelihood that its
right-hand side is the correct instantiation for any given occurance of
its left-hand side.
|
|
|
string
|
|
boolean
|
|
int
|
|
|
Inherited from cfg.Production:
__cmp__,
__ne__,
__repr__,
lhs,
rhs
Inherited from probability.ImmutableProbabilisticMixIn:
set_logprob,
set_prob
Inherited from probability.ProbabilisticMixIn:
logprob,
prob
Inherited from object:
__delattr__,
__getattribute__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__
|