Package nltk_lite :: Package contrib :: Module tree
[hide private]
[frames] | no frames]

Module tree

source code

This module defines three classes, extending the xml.etree.ElementTree module:

Note: Mixing of etree implementations is not supported. I.e., you should never construct a tree that combines elements from ParentedTree with elements from MultiParentedTree, or elements from either of these implementations with elements from any other implementation. Doing so may result in incorrect parent pointers and ValueError exceptions.

Classes [hide private]
  _AbstractElement
An abstract base class for Elements.
  _AbstractParentedElement
An abstract base class for (multi)parented element tree Elements.
  _ParentedElement
A specialized version of etree.ElementTree.Element that keeps track of a single parent pointer per element.
  _MultiParentedElement
A specialized version of etree.ElementTree.Element that keeps track of a list of parent pointers for each element.
  ElementTreeImplementation
Instances of this class can be used as drop-in replacements for the xml.etree.ElementTree module.
Functions [hide private]
 
is_parented_element(element) source code
 
is_multiparented_element(element) source code
 
demo() source code
Variables [hide private]
  Tree = ElementTreeImplementation(_AbstractElement)
  ParentedTree = ElementTreeImplementation(_ParentedElement)
  MultiParentedTree = ElementTreeImplementation(_MultiParentedEl...
Variables Details [hide private]

MultiParentedTree

Value:
ElementTreeImplementation(_MultiParentedElement)