sourced.ml.core.extractors.children

Module Contents

class sourced.ml.core.extractors.children.ChildrenBagExtractor(docfreq_threshold=None, **kwargs)[source]

Bases:sourced.ml.core.extractors.bags_extractor.BagsExtractor

Converts a UAST to the bag of pairs (internal type, quantized number of children).

NAME = children[source]
NAMESPACE = c.[source]
OPTS[source]
npartitions[source]
levels[source]
extract(self, uast)[source]
quantize(self, frequencies: Iterable[Tuple[str, Iterable[Tuple[int, int]]]])[source]