def __init__(self, docgraph, remove_redundant_layers=True):
        """
        Parameters
        ----------
        docgraph : DiscourseDocumentGraph
            the document graph to be converted
        """
        self.toknode2id = {node_id: i
                           for i, node_id in enumerate(docgraph.tokens)}
        self.E = ElementMaker()
        self.tier_count = 0
        self.tree = self.__add_document_structure(docgraph,
                                                  remove_redundant_layers)
def __init__ ( self , docgraph , remove_redundant_layers = True ) : self . toknode2id = { node_id : i for i , node_id in enumerate ( docgraph . tokens ) } self . E = ElementMaker ( ) self . tier_count = 0 self . tree = self . __add_document_structure ( docgraph , remove_redundant_layers )
Parameters
        ----------
        docgraph : DiscourseDocumentGraph
            the document graph to be converted