Package nltk :: Module featstruct :: Class SubstituteBindingsSequence
[hide private]
[frames] | no frames]

Class SubstituteBindingsSequence

source code

                   object --+    
                            |    
sem.logic.SubstituteBindingsI --+
                                |
                               SubstituteBindingsSequence
Known Subclasses:

A mixin class for sequence clases that distributes variables() and substitute_bindings() over the object's elements.

Instance Methods [hide private]
 
variables(self)
Returns: A list of all variables in this object.
source code
(any)
substitute_bindings(self, bindings)
Returns: The object that is obtained by replacing each variable bound by bindings with its values.
source code
 
subst(self, v, bindings) source code

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

variables(self)

source code 
Returns:
A list of all variables in this object.
Overrides: sem.logic.SubstituteBindingsI.variables
(inherited documentation)

substitute_bindings(self, bindings)

source code 
Returns: (any)
The object that is obtained by replacing each variable bound by bindings with its values. Aliases are already resolved. (maybe?)
Overrides: sem.logic.SubstituteBindingsI.substitute_bindings
(inherited documentation)