udapi.core.bundle module¶
Bundle class represents one sentence.
- class udapi.core.bundle.Bundle(bundle_id=None, document=None)[source]¶
Bases:
object
Bundle represents one sentence in an UD document.
A bundle contains one or more trees. More trees are needed e.g. in case of parallel treebanks where each tree represents a translation of the sentence in a different languages. Trees in one bundle are distinguished by a zone label.
- property bundle_id¶
ID of this bundle.
- property document¶
Returns the document in which the bundle is contained.
- property nodes¶
An iterator over all nodes (excluding empty nodes) in all trees in this bundle.
- number¶
- trees¶