sourced.ml.core.extractors.id_sequence¶
Module Contents¶
-
class
sourced.ml.core.extractors.id_sequence.IdSequenceExtractor(split_stem=False, **kwargs)[source]¶ Bases:
sourced.ml.core.extractors.bags_extractor.BagsExtractorExtractor wrapper for Uast2RoleIdPairs algorithm. Note that this is unusual BagsExtractor since it returns iterable instead of bag.
The class did not wrap with @register_extractor because it does not produce bags as others do. So nobody outside code will see it or use it directly. For the same reason we a free to override NAMESPACE, NAME, OPTS fields with any value we want.
TODO(zurk): Split BagsExtractor into two clases: Extractor and BagsExtractor(Extractor), re-inherit this class from Extractor, delete explanations from docstring.