udapi.core.bundle.Bundle = class Bundle(__builtin__.object) |
|
Bundle can be used for embracing two or more Universal Dependency trees that are associated in some way (e.g. parallel translations) inside a document. Unless different zones are differentiated in a bundle, there's only one tree per bundle by default. |
|
Methods defined here:
- __init__(self)
- __iter__(self)
- add_tree(self, root)
- add an existing tree to the bundle
- create_tree(self, zone=None)
- returns the root of a newly added tree whose zone is equal to zone
- document(self)
- returns the document in which the bundle is contained
- get_tree(self, zone)
- returns the tree root whose zone is equal to zone
- remove(self)
- remove a bundle from the document
Data descriptors defined here:
- id
- number
- trees
|