# Path: unstyle/features/featregister.py
# def register_feat(func):


from unstyle.features.featregister import featregistry


class FeatureSetExtractor:

    """Superclass that all feature sets should extend."""

    def __init__(self):
        self.features = []

    def extract(self, text):
        """The procedure to extract all of the features from a body of text.
        Returns a list of extracted features.
        """
        self.extractor = None
        self.extractedFeatures = []
        #print("\nNext feature extract cycle: ")
        for feature in self.features:

# Path: unstyle/features/featregister.py
# def register_feat(func):


# Path: unstyle/featuresets/feature_extract.py
from unstyle.features.featregister import featregistry



class FeatureSetExtractor:

    """Superclass that all feature sets should extend."""

    def __init__(self):
        self.features = []

    def extract(self, text):
        """The procedure to extract all of the features from a body of text.
        Returns a list of extracted features.
        """
        self.extractor = None
        self.extractedFeatures = []
        #print("\nNext feature extract cycle: ")
        for feature in self.features:

            self.extractor = featregistry[feature]