udapi.core.feats module

Feats class for storing morphological features of nodes in UD trees.

class udapi.core.feats.Feats(value=None, **kwargs)[source]

Bases: DualDict

Feats class for storing morphological features of nodes in UD trees.

See http://universaldependencies.org/u/feat/index.html for the specification of possible feature names and values.

is_plural()[source]

Is the grammatical number plural (feats[‘Number’] contains ‘Plur’)?

is_singular()[source]

Is the grammatical number singular (feats[‘Number’] contains ‘Sing’)?