|
@@ -17,13 +17,13 @@ class FeatureExtractor(ABC): |
|
|
"""Feature extractor interface.""" |
|
|
"""Feature extractor interface.""" |
|
|
# TODO: #API -- decide if .features will be a member variable |
|
|
# TODO: #API -- decide if .features will be a member variable |
|
|
def setup(self): |
|
|
def setup(self): |
|
|
pass |
|
|
|
|
|
|
|
|
"""Setup the feature extractor -- validate input files & config""" |
|
|
|
|
|
|
|
|
def run(self): |
|
|
def run(self): |
|
|
pass |
|
|
|
|
|
|
|
|
"""Run the feature extractor -- extract features""" |
|
|
|
|
|
|
|
|
def teardown(self): |
|
|
def teardown(self): |
|
|
pass |
|
|
|
|
|
|
|
|
"""Teardown the feature extractor -- clean up any temporary files created during setup""" |
|
|
|
|
|
|
|
|
class LaughterFeatureExtractor(FeatureExtractor): |
|
|
class LaughterFeatureExtractor(FeatureExtractor): |
|
|
"""Feature extractor for laughter detection. |
|
|
"""Feature extractor for laughter detection. |
|
|