class documentation
class CustomFeatureValue(object): (source)
An abstract base class for base values that define a custom unification method. The custom unification method of CustomFeatureValue will be used during unification if:
- The CustomFeatureValue is unified with another base value.
- The CustomFeatureValue is not the value of a customized Feature (which defines its own unification method).
If two CustomFeatureValue objects are unified with one another during feature structure unification, then the unified base values they return must be equal; otherwise, an AssertionError will be raised.
Subclasses must define unify(), __eq__() and __lt__(). Subclasses may also wish to define __hash__().
Method | __eq__ |
Undocumented |
Method | __hash__ |
Undocumented |
Method | __lt__ |
Undocumented |
Method | __ne__ |
Undocumented |
Method | unify |
If this base value unifies with other, then return the unified value. Otherwise, return UnificationFailure. |