udapi.core.mwt module

MWT class represents a multi-word token.

class udapi.core.mwt.MWT(words=None, form=None, misc=None, root=None)[source]

Bases: object

Class for representing multi-word tokens in UD trees.

address()[source]

Full (document-wide) id of the multi-word token.

form
property misc

Property for MISC attributes stored as a DualDict object.

See udapi.core.node.Node for details.

property ord_range

Return a string suitable for the first column of CoNLL-U.

remove()[source]

Delete this multi-word token (but keep its words).

root
words