nltk.featstruct.RangeFeature

class nltk.featstruct.RangeFeature[source]

Bases: Feature

RANGE_RE = re.compile('(-?\\d+):(-?\\d+)')
read_value(s, position, reentrances, parser)[source]
unify_base_values(fval1, fval2, bindings)[source]

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

__init__(name, default=None, display=None)
property default

Default value for this feature.

property display

Custom display location: can be prefix, or slash.

property name

The name of this feature.