def remove_timex3s(self, list_timex_ids):
        """
        Removes a list of terms from the layer
        @type list_timex_ids: list (of strings)
        @param list_timex_ids: list of timex identifier to be removed
        """
        nodes_to_remove = set()
        for timex in self:
            if timex.get_id() in list_timex_ids:
                nodes_to_remove.add(timex.get_node())
                #for removing the previous comment (expected the layer will look like termlayer)
                prv = timex.get_node().getprevious()
                if prv is not None:
                    nodes_to_remove.add(prv)

        for node in nodes_to_remove:
            self.node.remove(node)
def remove_timex3s ( self , list_timex_ids ) : nodes_to_remove = set ( ) for timex in self : if timex . get_id ( ) in list_timex_ids : nodes_to_remove . add ( timex . get_node ( ) ) prv = timex . get_node ( ) . getprevious ( ) if prv is not None : nodes_to_remove . add ( prv ) for node in nodes_to_remove : self . node . remove ( node )
Removes a list of terms from the layer
        @type list_timex_ids: list (of strings)
        @param list_timex_ids: list of timex identifier to be removed