nltk.featstruct.Feature

class nltk.featstruct.Feature[source]

Bases: object

A feature identifier that’s specialized to put additional constraints, default values, etc.

__init__(name, default=None, display=None)[source]
property name

The name of this feature.

property default

Default value for this feature.

property display

Custom display location: can be prefix, or slash.

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.