File size: 364 Bytes
8b414b0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
import pandas as pd
class BaseExtractor:
def generate_features(self, data: pd.Series) -> pd.DataFrame:
"""Generates features for model
:param X: Series, that contains texts
:return: Dataframe with columns - features, generated from text
"""
raise NotImplementedError(f"Abstract class {type(self).__name__} is used")
|