linguask / src /feature_extractors /base_extractor.py
GitHub Action
refs/heads/ci-cd/hugging-face
8b414b0
raw
history blame contribute delete
364 Bytes
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")