Esempio n. 1
0
 def __init__(self, node, children, **prob_kwargs):
     ProbabilisticMixIn.__init__(self, **prob_kwargs)
     ImmutableTree.__init__(self, node, children)
Esempio n. 2
0
 def __init__(self, node, children, **prob_kwargs):
     ProbabilisticMixIn.__init__(self, **prob_kwargs)
     ImmutableTree.__init__(self, node, children)
Esempio n. 3
0
 def __init__(self, node, children=None, **prob_kwargs):
     Tree.__init__(self, node, children)
     ProbabilisticMixIn.__init__(self, **prob_kwargs)
Esempio n. 4
0
 def __init__(self, node, children=None, **prob_kwargs):
     ImmutableTree.__init__(self, node, children)
     ProbabilisticMixIn.__init__(self, **prob_kwargs)
     self._hash = hash((self._label, tuple(self), self.prob()))