Package nltk :: Module grammar :: Class FeatureValueType
[hide private]
[frames] | no frames]

type FeatureValueType

source code

object --+
         |
        FeatureValueType

A helper class for FeatureGrammars, designed to be different from ordinary strings. This is to stop the FeatStruct FOO[] from being compare equal to the terminal "FOO".

Instance Methods [hide private]
 
__init__(self, value) source code
 
__repr__(self) source code
 
__cmp__(self, other) source code
 
__hash__(self) source code
Method Details [hide private]

__init__(self, value)
(Constructor)

source code 
Overrides: object.__init__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 
Overrides: object.__repr__
(inherited documentation)

__hash__(self)
(Hashing function)

source code 
Overrides: object.__hash__
(inherited documentation)