Package nltk :: Module featstruct :: Class RangeFeature
[hide private]
[frames] | no frames]

Class RangeFeature

source code

object --+    
         |    
   Feature --+
             |
            RangeFeature

Instance Methods [hide private]
 
parse_value(self, s, position, reentrances, parser) source code
 
unify_base_values(self, fval1, fval2, bindings)
If possible, return a single value..
source code

Inherited from Feature: __cmp__, __hash__, __init__, __repr__

Inherited from object: __delattr__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Class Variables [hide private]
  RANGE_RE = re.compile(r'(-?\d+):(-?\d+)')
Instance Variables [hide private]

Inherited from Feature (private): _default, _display, _name

Properties [hide private]

Inherited from Feature: default, display, name

Inherited from object: __class__

Method Details [hide private]

parse_value(self, s, position, reentrances, parser)

source code 
Overrides: Feature.parse_value

unify_base_values(self, fval1, fval2, bindings)

source code 

If possible, return a single value.. If not, return the value UnificationFailure.

Overrides: Feature.unify_base_values
(inherited documentation)