File size: 334 Bytes
8b414b0
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import pandas as pd


class BasePreprocessor:

    def preprocess_data(self, data: pd.Series) -> pd.Series:
        """Performs preprocessing of raw texts, returns cleaned texts

        :param X: raw texts
        :return: cleaned texts
        """

        raise NotImplementedError(f"Abstract class {type(self).__name__} is used")