|
__init__(self,
**features)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
|
|
|
Nonterminal
|
__div__(self,
other)
Returns:
A new Category based on this one, with its / feature set
to other . |
source code
|
|
bool
|
__eq__(self,
other)
Returns:
True if self and other assign the same
value to to every feature. |
source code
|
|
boolean
|
__ne__(self,
other)
Returns:
True if this non-terminal is not equal to other . |
source code
|
|
|
|
|
freeze(self)
Freezing a Category memoizes its hash value, to make comparisons on
it faster. |
source code
|
|
bool
|
frozen(self)
Returns whether this Category is frozen (immutable). |
source code
|
|
|
|
Category
|
|
str or None
|
head(self)
Returns:
The head of this category (the value shown outside the brackets in
its string representation). |
source code
|
|
|
|
list of FeatureStructure
|
reentrances(self)
Returns:
A list of all feature structures that can be reached from
self by multiple feature paths. |
source code
|
|
list of string
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_repr(self,
reentrances,
reentrance_ids)
Returns:
A string representation of this feature structure. |
source code
|
|
|
_str(self,
reentrances,
reentrance_ids)
Returns:
A list of lines composing a string representation of this feature
structure. |
source code
|
|
Inherited from featurestructure.FeatureStructure :
__getitem__ ,
__str__ ,
apply_bindings ,
equal_values ,
rename_variables ,
subsumes ,
unify
Inherited from object :
__delattr__ ,
__getattribute__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__
|