class documentation

class SingleEdgeProbabilisticFundamentalRule(AbstractChartRule): (source)

View In Hierarchy

Undocumented

Method __str__ Undocumented
Method apply Return a generator that will add edges licensed by this rule and the given edges to the chart, one at a time. Each time the generator is resumed, it will either add a new edge and yield that edge; or return.
Constant NUM_EDGES Undocumented
Class Variable _fundamental_rule Undocumented

Inherited from AbstractChartRule:

Method apply_everywhere Return a generator that will add all edges licensed by this rule, given the edges that are currently in the chart, one at a time. Each time the generator is resumed, it will either add a new edge and yield that edge; or return.
def __str__(self): (source)
def apply(self, chart, grammar, edge1): (source)

Return a generator that will add edges licensed by this rule and the given edges to the chart, one at a time. Each time the generator is resumed, it will either add a new edge and yield that edge; or return.

Parameters
chartUndocumented
grammarUndocumented
edge1Undocumented
*edges:list(EdgeI)A set of existing edges. The number of edges that should be passed to apply() is specified by the NUM_EDGES class variable.
Returns
iter(EdgeI)Undocumented
NUM_EDGES: int = (source)

Undocumented

Value
1
_fundamental_rule = (source)

Undocumented