def __init__(self, doc, parent, position): """ :param doc: the document this paragraph belongs to :param parent: the parent object in the hierarchy :param position: the actual location of this item """ #str.__init__(self) Node.__init__(self, self.__class__.__name__, parent=parent) Location.__init__(self, doc, position) #self.doc=doc self.parent = parent self._dataProvider = None # actual data this comes from #self.location=None # start and end character location within self.dataProvider self._words = None # a cache self._sentences = None # a cache self._paragraphs = None # a cache self.include = True # use this to skip a doc frag when compiling document