class documentation

class CustomFeatureValue(object): (source)

View In Hierarchy

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.
def __eq__(self, other): (source)

Undocumented

def __hash__(self): (source)

Undocumented

def __lt__(self, other): (source)

Undocumented

def __ne__(self, other): (source)

Undocumented

def unify(self, other): (source)

If this base value unifies with other, then return the unified value. Otherwise, return UnificationFailure.