def METHOD_NAME(self, X, y=None):
    """Fits component to data.
    Args:
        X (pd.DataFrame or np.ndarray): The input training data of shape [n_samples, n_features]
        y (pd.Series): The target training data of length [n_samples]
    Returns:
        self
    """
    X = infer_feature_types(X)
    self._text_columns = self._get_text_columns(X)
    if len(self._text_columns) == 0:
        return self
    self._lsa.METHOD_NAME(X)
    es = self._make_entity_set(X, self._text_columns)
    self._features = ft.dfs(
        entityset=es,
        target_dataframe_name="X",
        trans_primitives=self._trans,
        max_depth=1,
        features_only=True,
    )
    return self