Package nltk :: Package sem :: Module drt_resolve_anaphora :: Class PossibleAntecedents
[hide private]
[frames] | no frames]

Class PossibleAntecedents

source code

                   object --+    
                            |    
                         list --+
                                |
               object --+       |
                        |       |
logic.SubstituteBindingsI --+   |
                            |   |
             logic.Expression --+
                                |
                               PossibleAntecedents

Instance Methods [hide private]
 
free(self, indvar_only=True)
Set of free variables.
source code
 
replace(self, variable, expression, replace_bound=False)
Replace all instances of variable v with expression E in self, where v is free in self.
source code
 
simplify(self) source code
 
str(self, syntax=1) source code

Inherited from list: __add__, __contains__, __delitem__, __delslice__, __eq__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __hash__, __iadd__, __imul__, __init__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __new__, __repr__, __reversed__, __rmul__, __setitem__, __setslice__, append, count, extend, index, insert, pop, remove, reverse, sort

Inherited from logic.Expression: __and__, __call__, __neg__, __or__, __str__, applyto, negate, substitute_bindings, tp_equals, variables

Inherited from object: __delattr__, __reduce__, __reduce_ex__, __setattr__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

free(self, indvar_only=True)

source code 

Set of free variables.

Parameters:
  • indvar_only - boolean only return individual variables?
Returns:
set of Variables
Overrides: logic.Expression.free