(self, filepath: str, transform_fn: Callable[[str], List[int]])
Instantiating Corpus class

        Args:
            filepath (str): filepath
            transform_fn (Callable): a function that can act as a transformer
Instantiating Corpus class
Instantiating Corpus class
def __init__(self, filepath: str, transform_fn: Callable[[str], List[int]]) -> None:
        """Instantiating Corpus class

        Args:
            filepath (str): filepath
            transform_fn (Callable): a function that can act as a transformer
        """
        self._corpus = pd.read_csv(filepath, sep='\t').loc[:, ['document', 'label']]
        self._transform = transform_fn
def __init__ ( self , filepath : str , transform_fn : Callable [ [ str ] , List [ int ] ] ) -> None : self . _corpus = pd . read_csv ( filepath , sep = '\t' ) . loc [ : , [ 'document' , 'label' ] ] self . _transform = transform_fn