def __init__(self, docfreq_threshold=None, **kwargs): original_kwargs = kwargs uast2bag_kwargs = filter_kwargs(kwargs, Uast2GraphletBag.__init__) for k in uast2bag_kwargs: kwargs.pop(k) super().__init__(docfreq_threshold, **kwargs) self._log.debug("__init__ %s", original_kwargs) uast2bag_kwargs = filter_kwargs(kwargs, Uast2GraphletBag.__init__) self.uast2bag = Uast2GraphletBag(**uast2bag_kwargs)
def __init__(self, docfreq_threshold=None, **kwargs): original_kwargs = kwargs uast2bag_kwargs = filter_kwargs(kwargs, Uast2QuantizedChildren.__init__) for k in uast2bag_kwargs: kwargs.pop(k) super().__init__(docfreq_threshold, **kwargs) self._log.debug("__init__ %s", original_kwargs) self.uast_to_bag = Uast2QuantizedChildren(**uast2bag_kwargs)